
/**
 * Client
**/

import * as runtime from './runtime/library.js';
import $Types = runtime.Types // general types
import $Public = runtime.Types.Public
import $Utils = runtime.Types.Utils
import $Extensions = runtime.Types.Extensions
import $Result = runtime.Types.Result

export type PrismaPromise<T> = $Public.PrismaPromise<T>


/**
 * Model User
 * 
 */
export type User = $Result.DefaultSelection<Prisma.$UserPayload>
/**
 * Model UserDetail
 * 
 */
export type UserDetail = $Result.DefaultSelection<Prisma.$UserDetailPayload>
/**
 * Model Designation
 * 
 */
export type Designation = $Result.DefaultSelection<Prisma.$DesignationPayload>
/**
 * Model Department
 * 
 */
export type Department = $Result.DefaultSelection<Prisma.$DepartmentPayload>
/**
 * Model RequestLog
 * 
 */
export type RequestLog = $Result.DefaultSelection<Prisma.$RequestLogPayload>
/**
 * Model FinancialYear
 * 
 */
export type FinancialYear = $Result.DefaultSelection<Prisma.$FinancialYearPayload>
/**
 * Model DocumentSequence
 * 
 */
export type DocumentSequence = $Result.DefaultSelection<Prisma.$DocumentSequencePayload>
/**
 * Model AuditLog
 * 
 */
export type AuditLog = $Result.DefaultSelection<Prisma.$AuditLogPayload>
/**
 * Model Permissions
 * 
 */
export type Permissions = $Result.DefaultSelection<Prisma.$PermissionsPayload>
/**
 * Model Role
 * 
 */
export type Role = $Result.DefaultSelection<Prisma.$RolePayload>
/**
 * Model RolePermissions
 * 
 */
export type RolePermissions = $Result.DefaultSelection<Prisma.$RolePermissionsPayload>
/**
 * Model UserRoles
 * 
 */
export type UserRoles = $Result.DefaultSelection<Prisma.$UserRolesPayload>
/**
 * Model UserPermissions
 * 
 */
export type UserPermissions = $Result.DefaultSelection<Prisma.$UserPermissionsPayload>
/**
 * Model Otp
 * 
 */
export type Otp = $Result.DefaultSelection<Prisma.$OtpPayload>
/**
 * Model Language
 * 
 */
export type Language = $Result.DefaultSelection<Prisma.$LanguagePayload>
/**
 * Model LanguageContent
 * 
 */
export type LanguageContent = $Result.DefaultSelection<Prisma.$LanguageContentPayload>
/**
 * Model Menus
 * 
 */
export type Menus = $Result.DefaultSelection<Prisma.$MenusPayload>
/**
 * Model MenuItems
 * 
 */
export type MenuItems = $Result.DefaultSelection<Prisma.$MenuItemsPayload>
/**
 * Model ActionType
 * 
 */
export type ActionType = $Result.DefaultSelection<Prisma.$ActionTypePayload>
/**
 * Model EntityType
 * 
 */
export type EntityType = $Result.DefaultSelection<Prisma.$EntityTypePayload>
/**
 * Model WizardGroup
 * 
 */
export type WizardGroup = $Result.DefaultSelection<Prisma.$WizardGroupPayload>
/**
 * Model WizardType
 * 
 */
export type WizardType = $Result.DefaultSelection<Prisma.$WizardTypePayload>
/**
 * Model MasterEntity
 * 
 */
export type MasterEntity = $Result.DefaultSelection<Prisma.$MasterEntityPayload>
/**
 * Model MasterEntityLineItem
 * 
 */
export type MasterEntityLineItem = $Result.DefaultSelection<Prisma.$MasterEntityLineItemPayload>
/**
 * Model FieldType
 * 
 */
export type FieldType = $Result.DefaultSelection<Prisma.$FieldTypePayload>
/**
 * Model menuType
 * 
 */
export type menuType = $Result.DefaultSelection<Prisma.$menuTypePayload>
/**
 * Model EmailTemplateProcess
 * 
 */
export type EmailTemplateProcess = $Result.DefaultSelection<Prisma.$EmailTemplateProcessPayload>
/**
 * Model EmailTemplateTag
 * 
 */
export type EmailTemplateTag = $Result.DefaultSelection<Prisma.$EmailTemplateTagPayload>
/**
 * Model EmailTemplateRecipientTag
 * 
 */
export type EmailTemplateRecipientTag = $Result.DefaultSelection<Prisma.$EmailTemplateRecipientTagPayload>
/**
 * Model EmailTemplateProcessTagsMapping
 * 
 */
export type EmailTemplateProcessTagsMapping = $Result.DefaultSelection<Prisma.$EmailTemplateProcessTagsMappingPayload>
/**
 * Model EmailTemplate
 * 
 */
export type EmailTemplate = $Result.DefaultSelection<Prisma.$EmailTemplatePayload>
/**
 * Model EmailTemplateAssignment
 * 
 */
export type EmailTemplateAssignment = $Result.DefaultSelection<Prisma.$EmailTemplateAssignmentPayload>
/**
 * Model EmailProcessJob
 * 
 */
export type EmailProcessJob = $Result.DefaultSelection<Prisma.$EmailProcessJobPayload>
/**
 * Model NotificationJob
 * 
 */
export type NotificationJob = $Result.DefaultSelection<Prisma.$NotificationJobPayload>
/**
 * Model ImportTemplate
 * 
 */
export type ImportTemplate = $Result.DefaultSelection<Prisma.$ImportTemplatePayload>
/**
 * Model ImportTemplateLineItem
 * 
 */
export type ImportTemplateLineItem = $Result.DefaultSelection<Prisma.$ImportTemplateLineItemPayload>
/**
 * Model ImportTemplateQueries
 * 
 */
export type ImportTemplateQueries = $Result.DefaultSelection<Prisma.$ImportTemplateQueriesPayload>
/**
 * Model ImportJob
 * 
 */
export type ImportJob = $Result.DefaultSelection<Prisma.$ImportJobPayload>
/**
 * Model ImportJobLineItem
 * 
 */
export type ImportJobLineItem = $Result.DefaultSelection<Prisma.$ImportJobLineItemPayload>
/**
 * Model ExportTemplate
 * 
 */
export type ExportTemplate = $Result.DefaultSelection<Prisma.$ExportTemplatePayload>
/**
 * Model ExportTemplateLineItem
 * 
 */
export type ExportTemplateLineItem = $Result.DefaultSelection<Prisma.$ExportTemplateLineItemPayload>
/**
 * Model ExportTemplateQueries
 * 
 */
export type ExportTemplateQueries = $Result.DefaultSelection<Prisma.$ExportTemplateQueriesPayload>
/**
 * Model Status
 * 
 */
export type Status = $Result.DefaultSelection<Prisma.$StatusPayload>
/**
 * Model CategoryTypes
 * 
 */
export type CategoryTypes = $Result.DefaultSelection<Prisma.$CategoryTypesPayload>
/**
 * Model Categories
 * 
 */
export type Categories = $Result.DefaultSelection<Prisma.$CategoriesPayload>
/**
 * Model Configurations
 * 
 */
export type Configurations = $Result.DefaultSelection<Prisma.$ConfigurationsPayload>
/**
 * Model FileUploadLog
 * 
 */
export type FileUploadLog = $Result.DefaultSelection<Prisma.$FileUploadLogPayload>
/**
 * Model DataTransferQueries
 * 
 */
export type DataTransferQueries = $Result.DefaultSelection<Prisma.$DataTransferQueriesPayload>
/**
 * Model DeviceRegistration
 * 
 */
export type DeviceRegistration = $Result.DefaultSelection<Prisma.$DeviceRegistrationPayload>

/**
 * ##  Prisma Client ʲˢ
 * 
 * Type-safe database client for TypeScript & Node.js
 * @example
 * ```
 * const prisma = new PrismaClient()
 * // Fetch zero or more Users
 * const users = await prisma.user.findMany()
 * ```
 *
 * 
 * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
 */
export class PrismaClient<
  ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
  U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
  ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }

    /**
   * ##  Prisma Client ʲˢ
   * 
   * Type-safe database client for TypeScript & Node.js
   * @example
   * ```
   * const prisma = new PrismaClient()
   * // Fetch zero or more Users
   * const users = await prisma.user.findMany()
   * ```
   *
   * 
   * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
   */

  constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
  $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): void;

  /**
   * Connect with the database
   */
  $connect(): $Utils.JsPromise<void>;

  /**
   * Disconnect from the database
   */
  $disconnect(): $Utils.JsPromise<void>;

  /**
   * Add a middleware
   * @deprecated since 4.16.0. For new code, prefer client extensions instead.
   * @see https://pris.ly/d/extensions
   */
  $use(cb: Prisma.Middleware): void

/**
   * Executes a prepared raw query and returns the number of affected rows.
   * @example
   * ```
   * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
   * ```
   * 
   * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
   */
  $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;

  /**
   * Executes a raw query and returns the number of affected rows.
   * Susceptible to SQL injections, see documentation.
   * @example
   * ```
   * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
   * ```
   * 
   * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
   */
  $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;

  /**
   * Performs a prepared raw query and returns the `SELECT` data.
   * @example
   * ```
   * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
   * ```
   * 
   * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
   */
  $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;

  /**
   * Performs a raw query and returns the `SELECT` data.
   * Susceptible to SQL injections, see documentation.
   * @example
   * ```
   * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
   * ```
   * 
   * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
   */
  $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;


  /**
   * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
   * @example
   * ```
   * const [george, bob, alice] = await prisma.$transaction([
   *   prisma.user.create({ data: { name: 'George' } }),
   *   prisma.user.create({ data: { name: 'Bob' } }),
   *   prisma.user.create({ data: { name: 'Alice' } }),
   * ])
   * ```
   * 
   * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
   */
  $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>

  $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>


  $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, 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<ExtArgs>;

  /**
   * `prisma.userDetail`: Exposes CRUD operations for the **UserDetail** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more UserDetails
    * const userDetails = await prisma.userDetail.findMany()
    * ```
    */
  get userDetail(): Prisma.UserDetailDelegate<ExtArgs>;

  /**
   * `prisma.designation`: Exposes CRUD operations for the **Designation** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Designations
    * const designations = await prisma.designation.findMany()
    * ```
    */
  get designation(): Prisma.DesignationDelegate<ExtArgs>;

  /**
   * `prisma.department`: Exposes CRUD operations for the **Department** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Departments
    * const departments = await prisma.department.findMany()
    * ```
    */
  get department(): Prisma.DepartmentDelegate<ExtArgs>;

  /**
   * `prisma.requestLog`: Exposes CRUD operations for the **RequestLog** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more RequestLogs
    * const requestLogs = await prisma.requestLog.findMany()
    * ```
    */
  get requestLog(): Prisma.RequestLogDelegate<ExtArgs>;

  /**
   * `prisma.financialYear`: Exposes CRUD operations for the **FinancialYear** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more FinancialYears
    * const financialYears = await prisma.financialYear.findMany()
    * ```
    */
  get financialYear(): Prisma.FinancialYearDelegate<ExtArgs>;

  /**
   * `prisma.documentSequence`: Exposes CRUD operations for the **DocumentSequence** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more DocumentSequences
    * const documentSequences = await prisma.documentSequence.findMany()
    * ```
    */
  get documentSequence(): Prisma.DocumentSequenceDelegate<ExtArgs>;

  /**
   * `prisma.auditLog`: Exposes CRUD operations for the **AuditLog** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more AuditLogs
    * const auditLogs = await prisma.auditLog.findMany()
    * ```
    */
  get auditLog(): Prisma.AuditLogDelegate<ExtArgs>;

  /**
   * `prisma.permissions`: Exposes CRUD operations for the **Permissions** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Permissions
    * const permissions = await prisma.permissions.findMany()
    * ```
    */
  get permissions(): Prisma.PermissionsDelegate<ExtArgs>;

  /**
   * `prisma.role`: Exposes CRUD operations for the **Role** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Roles
    * const roles = await prisma.role.findMany()
    * ```
    */
  get role(): Prisma.RoleDelegate<ExtArgs>;

  /**
   * `prisma.rolePermissions`: Exposes CRUD operations for the **RolePermissions** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more RolePermissions
    * const rolePermissions = await prisma.rolePermissions.findMany()
    * ```
    */
  get rolePermissions(): Prisma.RolePermissionsDelegate<ExtArgs>;

  /**
   * `prisma.userRoles`: Exposes CRUD operations for the **UserRoles** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more UserRoles
    * const userRoles = await prisma.userRoles.findMany()
    * ```
    */
  get userRoles(): Prisma.UserRolesDelegate<ExtArgs>;

  /**
   * `prisma.userPermissions`: Exposes CRUD operations for the **UserPermissions** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more UserPermissions
    * const userPermissions = await prisma.userPermissions.findMany()
    * ```
    */
  get userPermissions(): Prisma.UserPermissionsDelegate<ExtArgs>;

  /**
   * `prisma.otp`: Exposes CRUD operations for the **Otp** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Otps
    * const otps = await prisma.otp.findMany()
    * ```
    */
  get otp(): Prisma.OtpDelegate<ExtArgs>;

  /**
   * `prisma.language`: Exposes CRUD operations for the **Language** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Languages
    * const languages = await prisma.language.findMany()
    * ```
    */
  get language(): Prisma.LanguageDelegate<ExtArgs>;

  /**
   * `prisma.languageContent`: Exposes CRUD operations for the **LanguageContent** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more LanguageContents
    * const languageContents = await prisma.languageContent.findMany()
    * ```
    */
  get languageContent(): Prisma.LanguageContentDelegate<ExtArgs>;

  /**
   * `prisma.menus`: Exposes CRUD operations for the **Menus** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Menus
    * const menus = await prisma.menus.findMany()
    * ```
    */
  get menus(): Prisma.MenusDelegate<ExtArgs>;

  /**
   * `prisma.menuItems`: Exposes CRUD operations for the **MenuItems** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more MenuItems
    * const menuItems = await prisma.menuItems.findMany()
    * ```
    */
  get menuItems(): Prisma.MenuItemsDelegate<ExtArgs>;

  /**
   * `prisma.actionType`: Exposes CRUD operations for the **ActionType** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more ActionTypes
    * const actionTypes = await prisma.actionType.findMany()
    * ```
    */
  get actionType(): Prisma.ActionTypeDelegate<ExtArgs>;

  /**
   * `prisma.entityType`: Exposes CRUD operations for the **EntityType** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more EntityTypes
    * const entityTypes = await prisma.entityType.findMany()
    * ```
    */
  get entityType(): Prisma.EntityTypeDelegate<ExtArgs>;

  /**
   * `prisma.wizardGroup`: Exposes CRUD operations for the **WizardGroup** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more WizardGroups
    * const wizardGroups = await prisma.wizardGroup.findMany()
    * ```
    */
  get wizardGroup(): Prisma.WizardGroupDelegate<ExtArgs>;

  /**
   * `prisma.wizardType`: Exposes CRUD operations for the **WizardType** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more WizardTypes
    * const wizardTypes = await prisma.wizardType.findMany()
    * ```
    */
  get wizardType(): Prisma.WizardTypeDelegate<ExtArgs>;

  /**
   * `prisma.masterEntity`: Exposes CRUD operations for the **MasterEntity** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more MasterEntities
    * const masterEntities = await prisma.masterEntity.findMany()
    * ```
    */
  get masterEntity(): Prisma.MasterEntityDelegate<ExtArgs>;

  /**
   * `prisma.masterEntityLineItem`: Exposes CRUD operations for the **MasterEntityLineItem** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more MasterEntityLineItems
    * const masterEntityLineItems = await prisma.masterEntityLineItem.findMany()
    * ```
    */
  get masterEntityLineItem(): Prisma.MasterEntityLineItemDelegate<ExtArgs>;

  /**
   * `prisma.fieldType`: Exposes CRUD operations for the **FieldType** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more FieldTypes
    * const fieldTypes = await prisma.fieldType.findMany()
    * ```
    */
  get fieldType(): Prisma.FieldTypeDelegate<ExtArgs>;

  /**
   * `prisma.menuType`: Exposes CRUD operations for the **menuType** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more MenuTypes
    * const menuTypes = await prisma.menuType.findMany()
    * ```
    */
  get menuType(): Prisma.menuTypeDelegate<ExtArgs>;

  /**
   * `prisma.emailTemplateProcess`: Exposes CRUD operations for the **EmailTemplateProcess** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more EmailTemplateProcesses
    * const emailTemplateProcesses = await prisma.emailTemplateProcess.findMany()
    * ```
    */
  get emailTemplateProcess(): Prisma.EmailTemplateProcessDelegate<ExtArgs>;

  /**
   * `prisma.emailTemplateTag`: Exposes CRUD operations for the **EmailTemplateTag** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more EmailTemplateTags
    * const emailTemplateTags = await prisma.emailTemplateTag.findMany()
    * ```
    */
  get emailTemplateTag(): Prisma.EmailTemplateTagDelegate<ExtArgs>;

  /**
   * `prisma.emailTemplateRecipientTag`: Exposes CRUD operations for the **EmailTemplateRecipientTag** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more EmailTemplateRecipientTags
    * const emailTemplateRecipientTags = await prisma.emailTemplateRecipientTag.findMany()
    * ```
    */
  get emailTemplateRecipientTag(): Prisma.EmailTemplateRecipientTagDelegate<ExtArgs>;

  /**
   * `prisma.emailTemplateProcessTagsMapping`: Exposes CRUD operations for the **EmailTemplateProcessTagsMapping** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more EmailTemplateProcessTagsMappings
    * const emailTemplateProcessTagsMappings = await prisma.emailTemplateProcessTagsMapping.findMany()
    * ```
    */
  get emailTemplateProcessTagsMapping(): Prisma.EmailTemplateProcessTagsMappingDelegate<ExtArgs>;

  /**
   * `prisma.emailTemplate`: Exposes CRUD operations for the **EmailTemplate** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more EmailTemplates
    * const emailTemplates = await prisma.emailTemplate.findMany()
    * ```
    */
  get emailTemplate(): Prisma.EmailTemplateDelegate<ExtArgs>;

  /**
   * `prisma.emailTemplateAssignment`: Exposes CRUD operations for the **EmailTemplateAssignment** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more EmailTemplateAssignments
    * const emailTemplateAssignments = await prisma.emailTemplateAssignment.findMany()
    * ```
    */
  get emailTemplateAssignment(): Prisma.EmailTemplateAssignmentDelegate<ExtArgs>;

  /**
   * `prisma.emailProcessJob`: Exposes CRUD operations for the **EmailProcessJob** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more EmailProcessJobs
    * const emailProcessJobs = await prisma.emailProcessJob.findMany()
    * ```
    */
  get emailProcessJob(): Prisma.EmailProcessJobDelegate<ExtArgs>;

  /**
   * `prisma.notificationJob`: Exposes CRUD operations for the **NotificationJob** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more NotificationJobs
    * const notificationJobs = await prisma.notificationJob.findMany()
    * ```
    */
  get notificationJob(): Prisma.NotificationJobDelegate<ExtArgs>;

  /**
   * `prisma.importTemplate`: Exposes CRUD operations for the **ImportTemplate** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more ImportTemplates
    * const importTemplates = await prisma.importTemplate.findMany()
    * ```
    */
  get importTemplate(): Prisma.ImportTemplateDelegate<ExtArgs>;

  /**
   * `prisma.importTemplateLineItem`: Exposes CRUD operations for the **ImportTemplateLineItem** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more ImportTemplateLineItems
    * const importTemplateLineItems = await prisma.importTemplateLineItem.findMany()
    * ```
    */
  get importTemplateLineItem(): Prisma.ImportTemplateLineItemDelegate<ExtArgs>;

  /**
   * `prisma.importTemplateQueries`: Exposes CRUD operations for the **ImportTemplateQueries** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more ImportTemplateQueries
    * const importTemplateQueries = await prisma.importTemplateQueries.findMany()
    * ```
    */
  get importTemplateQueries(): Prisma.ImportTemplateQueriesDelegate<ExtArgs>;

  /**
   * `prisma.importJob`: Exposes CRUD operations for the **ImportJob** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more ImportJobs
    * const importJobs = await prisma.importJob.findMany()
    * ```
    */
  get importJob(): Prisma.ImportJobDelegate<ExtArgs>;

  /**
   * `prisma.importJobLineItem`: Exposes CRUD operations for the **ImportJobLineItem** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more ImportJobLineItems
    * const importJobLineItems = await prisma.importJobLineItem.findMany()
    * ```
    */
  get importJobLineItem(): Prisma.ImportJobLineItemDelegate<ExtArgs>;

  /**
   * `prisma.exportTemplate`: Exposes CRUD operations for the **ExportTemplate** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more ExportTemplates
    * const exportTemplates = await prisma.exportTemplate.findMany()
    * ```
    */
  get exportTemplate(): Prisma.ExportTemplateDelegate<ExtArgs>;

  /**
   * `prisma.exportTemplateLineItem`: Exposes CRUD operations for the **ExportTemplateLineItem** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more ExportTemplateLineItems
    * const exportTemplateLineItems = await prisma.exportTemplateLineItem.findMany()
    * ```
    */
  get exportTemplateLineItem(): Prisma.ExportTemplateLineItemDelegate<ExtArgs>;

  /**
   * `prisma.exportTemplateQueries`: Exposes CRUD operations for the **ExportTemplateQueries** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more ExportTemplateQueries
    * const exportTemplateQueries = await prisma.exportTemplateQueries.findMany()
    * ```
    */
  get exportTemplateQueries(): Prisma.ExportTemplateQueriesDelegate<ExtArgs>;

  /**
   * `prisma.status`: Exposes CRUD operations for the **Status** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Statuses
    * const statuses = await prisma.status.findMany()
    * ```
    */
  get status(): Prisma.StatusDelegate<ExtArgs>;

  /**
   * `prisma.categoryTypes`: Exposes CRUD operations for the **CategoryTypes** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more CategoryTypes
    * const categoryTypes = await prisma.categoryTypes.findMany()
    * ```
    */
  get categoryTypes(): Prisma.CategoryTypesDelegate<ExtArgs>;

  /**
   * `prisma.categories`: Exposes CRUD operations for the **Categories** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Categories
    * const categories = await prisma.categories.findMany()
    * ```
    */
  get categories(): Prisma.CategoriesDelegate<ExtArgs>;

  /**
   * `prisma.configurations`: Exposes CRUD operations for the **Configurations** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more Configurations
    * const configurations = await prisma.configurations.findMany()
    * ```
    */
  get configurations(): Prisma.ConfigurationsDelegate<ExtArgs>;

  /**
   * `prisma.fileUploadLog`: Exposes CRUD operations for the **FileUploadLog** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more FileUploadLogs
    * const fileUploadLogs = await prisma.fileUploadLog.findMany()
    * ```
    */
  get fileUploadLog(): Prisma.FileUploadLogDelegate<ExtArgs>;

  /**
   * `prisma.dataTransferQueries`: Exposes CRUD operations for the **DataTransferQueries** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more DataTransferQueries
    * const dataTransferQueries = await prisma.dataTransferQueries.findMany()
    * ```
    */
  get dataTransferQueries(): Prisma.DataTransferQueriesDelegate<ExtArgs>;

  /**
   * `prisma.deviceRegistration`: Exposes CRUD operations for the **DeviceRegistration** model.
    * Example usage:
    * ```ts
    * // Fetch zero or more DeviceRegistrations
    * const deviceRegistrations = await prisma.deviceRegistration.findMany()
    * ```
    */
  get deviceRegistration(): Prisma.DeviceRegistrationDelegate<ExtArgs>;
}

export namespace Prisma {
  export import DMMF = runtime.DMMF

  export type PrismaPromise<T> = $Public.PrismaPromise<T>

  /**
   * Validator
   */
  export import validator = runtime.Public.validator

  /**
   * Prisma Errors
   */
  export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
  export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
  export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
  export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
  export import PrismaClientValidationError = runtime.PrismaClientValidationError
  export import NotFoundError = runtime.NotFoundError

  /**
   * Re-export of sql-template-tag
   */
  export import sql = runtime.sqltag
  export import empty = runtime.empty
  export import join = runtime.join
  export import raw = runtime.raw
  export import Sql = runtime.Sql



  /**
   * Decimal.js
   */
  export import Decimal = runtime.Decimal

  export type DecimalJsLike = runtime.DecimalJsLike

  /**
   * Metrics 
   */
  export type Metrics = runtime.Metrics
  export type Metric<T> = runtime.Metric<T>
  export type MetricHistogram = runtime.MetricHistogram
  export type MetricHistogramBucket = runtime.MetricHistogramBucket

  /**
  * Extensions
  */
  export import Extension = $Extensions.UserArgs
  export import getExtensionContext = runtime.Extensions.getExtensionContext
  export import Args = $Public.Args
  export import Payload = $Public.Payload
  export import Result = $Public.Result
  export import Exact = $Public.Exact

  /**
   * Prisma Client JS version: 5.22.0
   * Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
   */
  export type PrismaVersion = {
    client: string
  }

  export const prismaVersion: PrismaVersion 

  /**
   * Utility Types
   */


  export import JsonObject = runtime.JsonObject
  export import JsonArray = runtime.JsonArray
  export import JsonValue = runtime.JsonValue
  export import InputJsonObject = runtime.InputJsonObject
  export import InputJsonArray = runtime.InputJsonArray
  export import InputJsonValue = runtime.InputJsonValue

  /**
   * Types of the values used to represent different kinds of `null` values when working with JSON fields.
   * 
   * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
   */
  namespace NullTypes {
    /**
    * Type of `Prisma.DbNull`.
    * 
    * You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
    * 
    * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
    */
    class DbNull {
      private DbNull: never
      private constructor()
    }

    /**
    * Type of `Prisma.JsonNull`.
    * 
    * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
    * 
    * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
    */
    class JsonNull {
      private JsonNull: never
      private constructor()
    }

    /**
    * Type of `Prisma.AnyNull`.
    * 
    * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
    * 
    * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
    */
    class AnyNull {
      private AnyNull: never
      private constructor()
    }
  }

  /**
   * Helper for filtering JSON entries that have `null` on the database (empty on the db)
   * 
   * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
   */
  export const DbNull: NullTypes.DbNull

  /**
   * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
   * 
   * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
   */
  export const JsonNull: NullTypes.JsonNull

  /**
   * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
   * 
   * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
   */
  export const AnyNull: NullTypes.AnyNull

  type SelectAndInclude = {
    select: any
    include: any
  }

  type SelectAndOmit = {
    select: any
    omit: any
  }

  /**
   * Get the type of the value, that the Promise holds.
   */
  export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;

  /**
   * Get the return type of a function which returns a Promise.
   */
  export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>

  /**
   * From T, pick a set of properties whose keys are in the union K
   */
  type Prisma__Pick<T, K extends keyof T> = {
      [P in K]: T[P];
  };


  export type Enumerable<T> = T | Array<T>;

  export type RequiredKeys<T> = {
    [K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
  }[keyof T]

  export type TruthyKeys<T> = keyof {
    [K in keyof T as T[K] extends false | undefined | null ? never : K]: K
  }

  export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>

  /**
   * Subset
   * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
   */
  export type Subset<T, U> = {
    [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<T, U> = {
    [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<T, U, K> = {
    [key in keyof T]: key extends keyof U ? T[key] : never
  } &
    K

  type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: 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, U> =
    T extends object ?
    U extends object ?
      (Without<T, U> & U) | (Without<U, T> & T)
    : U : T


  /**
   * Is T a Record?
   */
  type IsObject<T extends any> = T extends Array<any>
  ? 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 unknown> = T extends Array<infer U> ? U : T

  /**
   * From ts-toolbelt
   */

  type __Either<O extends object, K extends Key> = Omit<O, K> &
    {
      // Merge all but K
      [P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
    }[K]

  type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>

  type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>

  type _Either<
    O extends object,
    K extends Key,
    strict extends Boolean
  > = {
    1: EitherStrict<O, K>
    0: EitherLoose<O, K>
  }[strict]

  type Either<
    O extends object,
    K extends Key,
    strict extends Boolean = 1
  > = O extends unknown ? _Either<O, K, strict> : never

  export type Union = any

  type PatchUndefined<O extends object, O1 extends object> = {
    [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
  } & {}

  /** Helper Types for "Merge" **/
  export type IntersectOf<U extends Union> = (
    U extends unknown ? (k: U) => void : never
  ) extends (k: infer I) => void
    ? I
    : never

  export type Overwrite<O extends object, O1 extends object> = {
      [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
  } & {};

  type _Merge<U extends object> = IntersectOf<Overwrite<U, {
      [K in keyof U]-?: At<U, K>;
  }>>;

  type Key = string | number | symbol;
  type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
  type AtStrict<O extends object, K extends Key> = O[K & keyof O];
  type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
  export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
      1: AtStrict<O, K>;
      0: AtLoose<O, K>;
  }[strict];

  export type ComputeRaw<A extends any> = A extends Function ? A : {
    [K in keyof A]: A[K];
  } & {};

  export type OptionalFlat<O> = {
    [K in keyof O]?: O[K];
  } & {};

  type _Record<K extends keyof any, T> = {
    [P in K]: T;
  };

  // cause typescript not to expand types and preserve names
  type NoExpand<T> = T extends unknown ? T : never;

  // this type assumes the passed object is entirely optional
  type AtLeast<O extends object, K extends string> = NoExpand<
    O extends unknown
    ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
      | {[P in keyof O as P extends K ? K : never]-?: O[P]} & O
    : never>;

  type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;

  export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
  /** End Helper Types for "Merge" **/

  export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;

  /**
  A [[Boolean]]
  */
  export type Boolean = True | False

  // /**
  // 1
  // */
  export type True = 1

  /**
  0
  */
  export type False = 0

  export type Not<B extends Boolean> = {
    0: 1
    1: 0
  }[B]

  export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
    ? 0 // anything `never` is false
    : A1 extends A2
    ? 1
    : 0

  export type Has<U extends Union, U1 extends Union> = Not<
    Extends<Exclude<U1, U>, U1>
  >

  export type Or<B1 extends Boolean, B2 extends Boolean> = {
    0: {
      0: 0
      1: 1
    }
    1: {
      0: 1
      1: 1
    }
  }[B1][B2]

  export type Keys<U extends Union> = U extends unknown ? keyof U : never

  type Cast<A, B> = A extends B ? A : B;

  export const type: unique symbol;



  /**
   * Used by group by
   */

  export type GetScalarType<T, O> = O extends object ? {
    [P in keyof T]: P extends keyof O
      ? O[P]
      : never
  } : never

  type FieldPaths<
    T,
    U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
  > = IsObject<T> extends True ? U : T

  type GetHavingFields<T> = {
    [K in keyof T]: Or<
      Or<Extends<'OR', K>, 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<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
        : never
      : {} extends FieldPaths<T[K]>
      ? never
      : K
  }[keyof T]

  /**
   * Convert tuple to union
   */
  type _TupleToUnion<T> = T extends (infer E)[] ? E : never
  type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
  type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T

  /**
   * Like `Pick`, but additionally can also accept an array of keys
   */
  type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>

  /**
   * Exclude all keys with underscores
   */
  type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T


  export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>

  type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>


  export const ModelName: {
    User: 'User',
    UserDetail: 'UserDetail',
    Designation: 'Designation',
    Department: 'Department',
    RequestLog: 'RequestLog',
    FinancialYear: 'FinancialYear',
    DocumentSequence: 'DocumentSequence',
    AuditLog: 'AuditLog',
    Permissions: 'Permissions',
    Role: 'Role',
    RolePermissions: 'RolePermissions',
    UserRoles: 'UserRoles',
    UserPermissions: 'UserPermissions',
    Otp: 'Otp',
    Language: 'Language',
    LanguageContent: 'LanguageContent',
    Menus: 'Menus',
    MenuItems: 'MenuItems',
    ActionType: 'ActionType',
    EntityType: 'EntityType',
    WizardGroup: 'WizardGroup',
    WizardType: 'WizardType',
    MasterEntity: 'MasterEntity',
    MasterEntityLineItem: 'MasterEntityLineItem',
    FieldType: 'FieldType',
    menuType: 'menuType',
    EmailTemplateProcess: 'EmailTemplateProcess',
    EmailTemplateTag: 'EmailTemplateTag',
    EmailTemplateRecipientTag: 'EmailTemplateRecipientTag',
    EmailTemplateProcessTagsMapping: 'EmailTemplateProcessTagsMapping',
    EmailTemplate: 'EmailTemplate',
    EmailTemplateAssignment: 'EmailTemplateAssignment',
    EmailProcessJob: 'EmailProcessJob',
    NotificationJob: 'NotificationJob',
    ImportTemplate: 'ImportTemplate',
    ImportTemplateLineItem: 'ImportTemplateLineItem',
    ImportTemplateQueries: 'ImportTemplateQueries',
    ImportJob: 'ImportJob',
    ImportJobLineItem: 'ImportJobLineItem',
    ExportTemplate: 'ExportTemplate',
    ExportTemplateLineItem: 'ExportTemplateLineItem',
    ExportTemplateQueries: 'ExportTemplateQueries',
    Status: 'Status',
    CategoryTypes: 'CategoryTypes',
    Categories: 'Categories',
    Configurations: 'Configurations',
    FileUploadLog: 'FileUploadLog',
    DataTransferQueries: 'DataTransferQueries',
    DeviceRegistration: 'DeviceRegistration'
  };

  export type ModelName = (typeof ModelName)[keyof typeof ModelName]


  export type Datasources = {
    db?: Datasource
  }

  interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record<string, any>> {
    returns: Prisma.TypeMap<this['params']['extArgs'], this['params']['clientOptions']>
  }

  export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
    meta: {
      modelProps: "user" | "userDetail" | "designation" | "department" | "requestLog" | "financialYear" | "documentSequence" | "auditLog" | "permissions" | "role" | "rolePermissions" | "userRoles" | "userPermissions" | "otp" | "language" | "languageContent" | "menus" | "menuItems" | "actionType" | "entityType" | "wizardGroup" | "wizardType" | "masterEntity" | "masterEntityLineItem" | "fieldType" | "menuType" | "emailTemplateProcess" | "emailTemplateTag" | "emailTemplateRecipientTag" | "emailTemplateProcessTagsMapping" | "emailTemplate" | "emailTemplateAssignment" | "emailProcessJob" | "notificationJob" | "importTemplate" | "importTemplateLineItem" | "importTemplateQueries" | "importJob" | "importJobLineItem" | "exportTemplate" | "exportTemplateLineItem" | "exportTemplateQueries" | "status" | "categoryTypes" | "categories" | "configurations" | "fileUploadLog" | "dataTransferQueries" | "deviceRegistration"
      txIsolationLevel: Prisma.TransactionIsolationLevel
    }
    model: {
      User: {
        payload: Prisma.$UserPayload<ExtArgs>
        fields: Prisma.UserFieldRefs
        operations: {
          findUnique: {
            args: Prisma.UserFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPayload>
          }
          findFirst: {
            args: Prisma.UserFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPayload>
          }
          findMany: {
            args: Prisma.UserFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
          }
          create: {
            args: Prisma.UserCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPayload>
          }
          createMany: {
            args: Prisma.UserCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.UserDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPayload>
          }
          update: {
            args: Prisma.UserUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPayload>
          }
          deleteMany: {
            args: Prisma.UserDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.UserUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.UserUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPayload>
          }
          aggregate: {
            args: Prisma.UserAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateUser>
          }
          groupBy: {
            args: Prisma.UserGroupByArgs<ExtArgs>
            result: $Utils.Optional<UserGroupByOutputType>[]
          }
          count: {
            args: Prisma.UserCountArgs<ExtArgs>
            result: $Utils.Optional<UserCountAggregateOutputType> | number
          }
        }
      }
      UserDetail: {
        payload: Prisma.$UserDetailPayload<ExtArgs>
        fields: Prisma.UserDetailFieldRefs
        operations: {
          findUnique: {
            args: Prisma.UserDetailFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserDetailPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.UserDetailFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserDetailPayload>
          }
          findFirst: {
            args: Prisma.UserDetailFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserDetailPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.UserDetailFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserDetailPayload>
          }
          findMany: {
            args: Prisma.UserDetailFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserDetailPayload>[]
          }
          create: {
            args: Prisma.UserDetailCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserDetailPayload>
          }
          createMany: {
            args: Prisma.UserDetailCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.UserDetailDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserDetailPayload>
          }
          update: {
            args: Prisma.UserDetailUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserDetailPayload>
          }
          deleteMany: {
            args: Prisma.UserDetailDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.UserDetailUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.UserDetailUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserDetailPayload>
          }
          aggregate: {
            args: Prisma.UserDetailAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateUserDetail>
          }
          groupBy: {
            args: Prisma.UserDetailGroupByArgs<ExtArgs>
            result: $Utils.Optional<UserDetailGroupByOutputType>[]
          }
          count: {
            args: Prisma.UserDetailCountArgs<ExtArgs>
            result: $Utils.Optional<UserDetailCountAggregateOutputType> | number
          }
        }
      }
      Designation: {
        payload: Prisma.$DesignationPayload<ExtArgs>
        fields: Prisma.DesignationFieldRefs
        operations: {
          findUnique: {
            args: Prisma.DesignationFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DesignationPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.DesignationFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DesignationPayload>
          }
          findFirst: {
            args: Prisma.DesignationFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DesignationPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.DesignationFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DesignationPayload>
          }
          findMany: {
            args: Prisma.DesignationFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DesignationPayload>[]
          }
          create: {
            args: Prisma.DesignationCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DesignationPayload>
          }
          createMany: {
            args: Prisma.DesignationCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.DesignationDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DesignationPayload>
          }
          update: {
            args: Prisma.DesignationUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DesignationPayload>
          }
          deleteMany: {
            args: Prisma.DesignationDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.DesignationUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.DesignationUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DesignationPayload>
          }
          aggregate: {
            args: Prisma.DesignationAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateDesignation>
          }
          groupBy: {
            args: Prisma.DesignationGroupByArgs<ExtArgs>
            result: $Utils.Optional<DesignationGroupByOutputType>[]
          }
          count: {
            args: Prisma.DesignationCountArgs<ExtArgs>
            result: $Utils.Optional<DesignationCountAggregateOutputType> | number
          }
        }
      }
      Department: {
        payload: Prisma.$DepartmentPayload<ExtArgs>
        fields: Prisma.DepartmentFieldRefs
        operations: {
          findUnique: {
            args: Prisma.DepartmentFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DepartmentPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.DepartmentFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DepartmentPayload>
          }
          findFirst: {
            args: Prisma.DepartmentFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DepartmentPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.DepartmentFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DepartmentPayload>
          }
          findMany: {
            args: Prisma.DepartmentFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DepartmentPayload>[]
          }
          create: {
            args: Prisma.DepartmentCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DepartmentPayload>
          }
          createMany: {
            args: Prisma.DepartmentCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.DepartmentDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DepartmentPayload>
          }
          update: {
            args: Prisma.DepartmentUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DepartmentPayload>
          }
          deleteMany: {
            args: Prisma.DepartmentDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.DepartmentUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.DepartmentUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DepartmentPayload>
          }
          aggregate: {
            args: Prisma.DepartmentAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateDepartment>
          }
          groupBy: {
            args: Prisma.DepartmentGroupByArgs<ExtArgs>
            result: $Utils.Optional<DepartmentGroupByOutputType>[]
          }
          count: {
            args: Prisma.DepartmentCountArgs<ExtArgs>
            result: $Utils.Optional<DepartmentCountAggregateOutputType> | number
          }
        }
      }
      RequestLog: {
        payload: Prisma.$RequestLogPayload<ExtArgs>
        fields: Prisma.RequestLogFieldRefs
        operations: {
          findUnique: {
            args: Prisma.RequestLogFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RequestLogPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.RequestLogFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RequestLogPayload>
          }
          findFirst: {
            args: Prisma.RequestLogFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RequestLogPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.RequestLogFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RequestLogPayload>
          }
          findMany: {
            args: Prisma.RequestLogFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RequestLogPayload>[]
          }
          create: {
            args: Prisma.RequestLogCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RequestLogPayload>
          }
          createMany: {
            args: Prisma.RequestLogCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.RequestLogDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RequestLogPayload>
          }
          update: {
            args: Prisma.RequestLogUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RequestLogPayload>
          }
          deleteMany: {
            args: Prisma.RequestLogDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.RequestLogUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.RequestLogUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RequestLogPayload>
          }
          aggregate: {
            args: Prisma.RequestLogAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateRequestLog>
          }
          groupBy: {
            args: Prisma.RequestLogGroupByArgs<ExtArgs>
            result: $Utils.Optional<RequestLogGroupByOutputType>[]
          }
          count: {
            args: Prisma.RequestLogCountArgs<ExtArgs>
            result: $Utils.Optional<RequestLogCountAggregateOutputType> | number
          }
        }
      }
      FinancialYear: {
        payload: Prisma.$FinancialYearPayload<ExtArgs>
        fields: Prisma.FinancialYearFieldRefs
        operations: {
          findUnique: {
            args: Prisma.FinancialYearFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FinancialYearPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.FinancialYearFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FinancialYearPayload>
          }
          findFirst: {
            args: Prisma.FinancialYearFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FinancialYearPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.FinancialYearFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FinancialYearPayload>
          }
          findMany: {
            args: Prisma.FinancialYearFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FinancialYearPayload>[]
          }
          create: {
            args: Prisma.FinancialYearCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FinancialYearPayload>
          }
          createMany: {
            args: Prisma.FinancialYearCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.FinancialYearDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FinancialYearPayload>
          }
          update: {
            args: Prisma.FinancialYearUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FinancialYearPayload>
          }
          deleteMany: {
            args: Prisma.FinancialYearDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.FinancialYearUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.FinancialYearUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FinancialYearPayload>
          }
          aggregate: {
            args: Prisma.FinancialYearAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateFinancialYear>
          }
          groupBy: {
            args: Prisma.FinancialYearGroupByArgs<ExtArgs>
            result: $Utils.Optional<FinancialYearGroupByOutputType>[]
          }
          count: {
            args: Prisma.FinancialYearCountArgs<ExtArgs>
            result: $Utils.Optional<FinancialYearCountAggregateOutputType> | number
          }
        }
      }
      DocumentSequence: {
        payload: Prisma.$DocumentSequencePayload<ExtArgs>
        fields: Prisma.DocumentSequenceFieldRefs
        operations: {
          findUnique: {
            args: Prisma.DocumentSequenceFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DocumentSequencePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.DocumentSequenceFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DocumentSequencePayload>
          }
          findFirst: {
            args: Prisma.DocumentSequenceFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DocumentSequencePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.DocumentSequenceFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DocumentSequencePayload>
          }
          findMany: {
            args: Prisma.DocumentSequenceFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DocumentSequencePayload>[]
          }
          create: {
            args: Prisma.DocumentSequenceCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DocumentSequencePayload>
          }
          createMany: {
            args: Prisma.DocumentSequenceCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.DocumentSequenceDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DocumentSequencePayload>
          }
          update: {
            args: Prisma.DocumentSequenceUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DocumentSequencePayload>
          }
          deleteMany: {
            args: Prisma.DocumentSequenceDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.DocumentSequenceUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.DocumentSequenceUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DocumentSequencePayload>
          }
          aggregate: {
            args: Prisma.DocumentSequenceAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateDocumentSequence>
          }
          groupBy: {
            args: Prisma.DocumentSequenceGroupByArgs<ExtArgs>
            result: $Utils.Optional<DocumentSequenceGroupByOutputType>[]
          }
          count: {
            args: Prisma.DocumentSequenceCountArgs<ExtArgs>
            result: $Utils.Optional<DocumentSequenceCountAggregateOutputType> | number
          }
        }
      }
      AuditLog: {
        payload: Prisma.$AuditLogPayload<ExtArgs>
        fields: Prisma.AuditLogFieldRefs
        operations: {
          findUnique: {
            args: Prisma.AuditLogFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$AuditLogPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.AuditLogFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
          }
          findFirst: {
            args: Prisma.AuditLogFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$AuditLogPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.AuditLogFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
          }
          findMany: {
            args: Prisma.AuditLogFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>[]
          }
          create: {
            args: Prisma.AuditLogCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
          }
          createMany: {
            args: Prisma.AuditLogCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.AuditLogDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
          }
          update: {
            args: Prisma.AuditLogUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
          }
          deleteMany: {
            args: Prisma.AuditLogDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.AuditLogUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.AuditLogUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$AuditLogPayload>
          }
          aggregate: {
            args: Prisma.AuditLogAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateAuditLog>
          }
          groupBy: {
            args: Prisma.AuditLogGroupByArgs<ExtArgs>
            result: $Utils.Optional<AuditLogGroupByOutputType>[]
          }
          count: {
            args: Prisma.AuditLogCountArgs<ExtArgs>
            result: $Utils.Optional<AuditLogCountAggregateOutputType> | number
          }
        }
      }
      Permissions: {
        payload: Prisma.$PermissionsPayload<ExtArgs>
        fields: Prisma.PermissionsFieldRefs
        operations: {
          findUnique: {
            args: Prisma.PermissionsFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$PermissionsPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.PermissionsFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$PermissionsPayload>
          }
          findFirst: {
            args: Prisma.PermissionsFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$PermissionsPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.PermissionsFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$PermissionsPayload>
          }
          findMany: {
            args: Prisma.PermissionsFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$PermissionsPayload>[]
          }
          create: {
            args: Prisma.PermissionsCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$PermissionsPayload>
          }
          createMany: {
            args: Prisma.PermissionsCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.PermissionsDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$PermissionsPayload>
          }
          update: {
            args: Prisma.PermissionsUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$PermissionsPayload>
          }
          deleteMany: {
            args: Prisma.PermissionsDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.PermissionsUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.PermissionsUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$PermissionsPayload>
          }
          aggregate: {
            args: Prisma.PermissionsAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregatePermissions>
          }
          groupBy: {
            args: Prisma.PermissionsGroupByArgs<ExtArgs>
            result: $Utils.Optional<PermissionsGroupByOutputType>[]
          }
          count: {
            args: Prisma.PermissionsCountArgs<ExtArgs>
            result: $Utils.Optional<PermissionsCountAggregateOutputType> | number
          }
        }
      }
      Role: {
        payload: Prisma.$RolePayload<ExtArgs>
        fields: Prisma.RoleFieldRefs
        operations: {
          findUnique: {
            args: Prisma.RoleFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.RoleFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePayload>
          }
          findFirst: {
            args: Prisma.RoleFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.RoleFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePayload>
          }
          findMany: {
            args: Prisma.RoleFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePayload>[]
          }
          create: {
            args: Prisma.RoleCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePayload>
          }
          createMany: {
            args: Prisma.RoleCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.RoleDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePayload>
          }
          update: {
            args: Prisma.RoleUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePayload>
          }
          deleteMany: {
            args: Prisma.RoleDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.RoleUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.RoleUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePayload>
          }
          aggregate: {
            args: Prisma.RoleAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateRole>
          }
          groupBy: {
            args: Prisma.RoleGroupByArgs<ExtArgs>
            result: $Utils.Optional<RoleGroupByOutputType>[]
          }
          count: {
            args: Prisma.RoleCountArgs<ExtArgs>
            result: $Utils.Optional<RoleCountAggregateOutputType> | number
          }
        }
      }
      RolePermissions: {
        payload: Prisma.$RolePermissionsPayload<ExtArgs>
        fields: Prisma.RolePermissionsFieldRefs
        operations: {
          findUnique: {
            args: Prisma.RolePermissionsFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePermissionsPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.RolePermissionsFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePermissionsPayload>
          }
          findFirst: {
            args: Prisma.RolePermissionsFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePermissionsPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.RolePermissionsFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePermissionsPayload>
          }
          findMany: {
            args: Prisma.RolePermissionsFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePermissionsPayload>[]
          }
          create: {
            args: Prisma.RolePermissionsCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePermissionsPayload>
          }
          createMany: {
            args: Prisma.RolePermissionsCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.RolePermissionsDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePermissionsPayload>
          }
          update: {
            args: Prisma.RolePermissionsUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePermissionsPayload>
          }
          deleteMany: {
            args: Prisma.RolePermissionsDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.RolePermissionsUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.RolePermissionsUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$RolePermissionsPayload>
          }
          aggregate: {
            args: Prisma.RolePermissionsAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateRolePermissions>
          }
          groupBy: {
            args: Prisma.RolePermissionsGroupByArgs<ExtArgs>
            result: $Utils.Optional<RolePermissionsGroupByOutputType>[]
          }
          count: {
            args: Prisma.RolePermissionsCountArgs<ExtArgs>
            result: $Utils.Optional<RolePermissionsCountAggregateOutputType> | number
          }
        }
      }
      UserRoles: {
        payload: Prisma.$UserRolesPayload<ExtArgs>
        fields: Prisma.UserRolesFieldRefs
        operations: {
          findUnique: {
            args: Prisma.UserRolesFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserRolesPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.UserRolesFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserRolesPayload>
          }
          findFirst: {
            args: Prisma.UserRolesFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserRolesPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.UserRolesFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserRolesPayload>
          }
          findMany: {
            args: Prisma.UserRolesFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserRolesPayload>[]
          }
          create: {
            args: Prisma.UserRolesCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserRolesPayload>
          }
          createMany: {
            args: Prisma.UserRolesCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.UserRolesDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserRolesPayload>
          }
          update: {
            args: Prisma.UserRolesUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserRolesPayload>
          }
          deleteMany: {
            args: Prisma.UserRolesDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.UserRolesUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.UserRolesUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserRolesPayload>
          }
          aggregate: {
            args: Prisma.UserRolesAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateUserRoles>
          }
          groupBy: {
            args: Prisma.UserRolesGroupByArgs<ExtArgs>
            result: $Utils.Optional<UserRolesGroupByOutputType>[]
          }
          count: {
            args: Prisma.UserRolesCountArgs<ExtArgs>
            result: $Utils.Optional<UserRolesCountAggregateOutputType> | number
          }
        }
      }
      UserPermissions: {
        payload: Prisma.$UserPermissionsPayload<ExtArgs>
        fields: Prisma.UserPermissionsFieldRefs
        operations: {
          findUnique: {
            args: Prisma.UserPermissionsFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPermissionsPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.UserPermissionsFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPermissionsPayload>
          }
          findFirst: {
            args: Prisma.UserPermissionsFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPermissionsPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.UserPermissionsFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPermissionsPayload>
          }
          findMany: {
            args: Prisma.UserPermissionsFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPermissionsPayload>[]
          }
          create: {
            args: Prisma.UserPermissionsCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPermissionsPayload>
          }
          createMany: {
            args: Prisma.UserPermissionsCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.UserPermissionsDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPermissionsPayload>
          }
          update: {
            args: Prisma.UserPermissionsUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPermissionsPayload>
          }
          deleteMany: {
            args: Prisma.UserPermissionsDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.UserPermissionsUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.UserPermissionsUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$UserPermissionsPayload>
          }
          aggregate: {
            args: Prisma.UserPermissionsAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateUserPermissions>
          }
          groupBy: {
            args: Prisma.UserPermissionsGroupByArgs<ExtArgs>
            result: $Utils.Optional<UserPermissionsGroupByOutputType>[]
          }
          count: {
            args: Prisma.UserPermissionsCountArgs<ExtArgs>
            result: $Utils.Optional<UserPermissionsCountAggregateOutputType> | number
          }
        }
      }
      Otp: {
        payload: Prisma.$OtpPayload<ExtArgs>
        fields: Prisma.OtpFieldRefs
        operations: {
          findUnique: {
            args: Prisma.OtpFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$OtpPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.OtpFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$OtpPayload>
          }
          findFirst: {
            args: Prisma.OtpFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$OtpPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.OtpFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$OtpPayload>
          }
          findMany: {
            args: Prisma.OtpFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$OtpPayload>[]
          }
          create: {
            args: Prisma.OtpCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$OtpPayload>
          }
          createMany: {
            args: Prisma.OtpCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.OtpDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$OtpPayload>
          }
          update: {
            args: Prisma.OtpUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$OtpPayload>
          }
          deleteMany: {
            args: Prisma.OtpDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.OtpUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.OtpUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$OtpPayload>
          }
          aggregate: {
            args: Prisma.OtpAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateOtp>
          }
          groupBy: {
            args: Prisma.OtpGroupByArgs<ExtArgs>
            result: $Utils.Optional<OtpGroupByOutputType>[]
          }
          count: {
            args: Prisma.OtpCountArgs<ExtArgs>
            result: $Utils.Optional<OtpCountAggregateOutputType> | number
          }
        }
      }
      Language: {
        payload: Prisma.$LanguagePayload<ExtArgs>
        fields: Prisma.LanguageFieldRefs
        operations: {
          findUnique: {
            args: Prisma.LanguageFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguagePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.LanguageFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguagePayload>
          }
          findFirst: {
            args: Prisma.LanguageFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguagePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.LanguageFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguagePayload>
          }
          findMany: {
            args: Prisma.LanguageFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguagePayload>[]
          }
          create: {
            args: Prisma.LanguageCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguagePayload>
          }
          createMany: {
            args: Prisma.LanguageCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.LanguageDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguagePayload>
          }
          update: {
            args: Prisma.LanguageUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguagePayload>
          }
          deleteMany: {
            args: Prisma.LanguageDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.LanguageUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.LanguageUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguagePayload>
          }
          aggregate: {
            args: Prisma.LanguageAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateLanguage>
          }
          groupBy: {
            args: Prisma.LanguageGroupByArgs<ExtArgs>
            result: $Utils.Optional<LanguageGroupByOutputType>[]
          }
          count: {
            args: Prisma.LanguageCountArgs<ExtArgs>
            result: $Utils.Optional<LanguageCountAggregateOutputType> | number
          }
        }
      }
      LanguageContent: {
        payload: Prisma.$LanguageContentPayload<ExtArgs>
        fields: Prisma.LanguageContentFieldRefs
        operations: {
          findUnique: {
            args: Prisma.LanguageContentFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguageContentPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.LanguageContentFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguageContentPayload>
          }
          findFirst: {
            args: Prisma.LanguageContentFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguageContentPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.LanguageContentFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguageContentPayload>
          }
          findMany: {
            args: Prisma.LanguageContentFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguageContentPayload>[]
          }
          create: {
            args: Prisma.LanguageContentCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguageContentPayload>
          }
          createMany: {
            args: Prisma.LanguageContentCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.LanguageContentDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguageContentPayload>
          }
          update: {
            args: Prisma.LanguageContentUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguageContentPayload>
          }
          deleteMany: {
            args: Prisma.LanguageContentDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.LanguageContentUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.LanguageContentUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$LanguageContentPayload>
          }
          aggregate: {
            args: Prisma.LanguageContentAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateLanguageContent>
          }
          groupBy: {
            args: Prisma.LanguageContentGroupByArgs<ExtArgs>
            result: $Utils.Optional<LanguageContentGroupByOutputType>[]
          }
          count: {
            args: Prisma.LanguageContentCountArgs<ExtArgs>
            result: $Utils.Optional<LanguageContentCountAggregateOutputType> | number
          }
        }
      }
      Menus: {
        payload: Prisma.$MenusPayload<ExtArgs>
        fields: Prisma.MenusFieldRefs
        operations: {
          findUnique: {
            args: Prisma.MenusFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenusPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.MenusFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenusPayload>
          }
          findFirst: {
            args: Prisma.MenusFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenusPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.MenusFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenusPayload>
          }
          findMany: {
            args: Prisma.MenusFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenusPayload>[]
          }
          create: {
            args: Prisma.MenusCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenusPayload>
          }
          createMany: {
            args: Prisma.MenusCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.MenusDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenusPayload>
          }
          update: {
            args: Prisma.MenusUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenusPayload>
          }
          deleteMany: {
            args: Prisma.MenusDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.MenusUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.MenusUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenusPayload>
          }
          aggregate: {
            args: Prisma.MenusAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateMenus>
          }
          groupBy: {
            args: Prisma.MenusGroupByArgs<ExtArgs>
            result: $Utils.Optional<MenusGroupByOutputType>[]
          }
          count: {
            args: Prisma.MenusCountArgs<ExtArgs>
            result: $Utils.Optional<MenusCountAggregateOutputType> | number
          }
        }
      }
      MenuItems: {
        payload: Prisma.$MenuItemsPayload<ExtArgs>
        fields: Prisma.MenuItemsFieldRefs
        operations: {
          findUnique: {
            args: Prisma.MenuItemsFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenuItemsPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.MenuItemsFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenuItemsPayload>
          }
          findFirst: {
            args: Prisma.MenuItemsFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenuItemsPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.MenuItemsFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenuItemsPayload>
          }
          findMany: {
            args: Prisma.MenuItemsFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenuItemsPayload>[]
          }
          create: {
            args: Prisma.MenuItemsCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenuItemsPayload>
          }
          createMany: {
            args: Prisma.MenuItemsCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.MenuItemsDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenuItemsPayload>
          }
          update: {
            args: Prisma.MenuItemsUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenuItemsPayload>
          }
          deleteMany: {
            args: Prisma.MenuItemsDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.MenuItemsUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.MenuItemsUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MenuItemsPayload>
          }
          aggregate: {
            args: Prisma.MenuItemsAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateMenuItems>
          }
          groupBy: {
            args: Prisma.MenuItemsGroupByArgs<ExtArgs>
            result: $Utils.Optional<MenuItemsGroupByOutputType>[]
          }
          count: {
            args: Prisma.MenuItemsCountArgs<ExtArgs>
            result: $Utils.Optional<MenuItemsCountAggregateOutputType> | number
          }
        }
      }
      ActionType: {
        payload: Prisma.$ActionTypePayload<ExtArgs>
        fields: Prisma.ActionTypeFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ActionTypeFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ActionTypePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ActionTypeFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ActionTypePayload>
          }
          findFirst: {
            args: Prisma.ActionTypeFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ActionTypePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ActionTypeFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ActionTypePayload>
          }
          findMany: {
            args: Prisma.ActionTypeFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ActionTypePayload>[]
          }
          create: {
            args: Prisma.ActionTypeCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ActionTypePayload>
          }
          createMany: {
            args: Prisma.ActionTypeCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ActionTypeDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ActionTypePayload>
          }
          update: {
            args: Prisma.ActionTypeUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ActionTypePayload>
          }
          deleteMany: {
            args: Prisma.ActionTypeDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ActionTypeUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ActionTypeUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ActionTypePayload>
          }
          aggregate: {
            args: Prisma.ActionTypeAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateActionType>
          }
          groupBy: {
            args: Prisma.ActionTypeGroupByArgs<ExtArgs>
            result: $Utils.Optional<ActionTypeGroupByOutputType>[]
          }
          count: {
            args: Prisma.ActionTypeCountArgs<ExtArgs>
            result: $Utils.Optional<ActionTypeCountAggregateOutputType> | number
          }
        }
      }
      EntityType: {
        payload: Prisma.$EntityTypePayload<ExtArgs>
        fields: Prisma.EntityTypeFieldRefs
        operations: {
          findUnique: {
            args: Prisma.EntityTypeFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EntityTypePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.EntityTypeFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EntityTypePayload>
          }
          findFirst: {
            args: Prisma.EntityTypeFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EntityTypePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.EntityTypeFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EntityTypePayload>
          }
          findMany: {
            args: Prisma.EntityTypeFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EntityTypePayload>[]
          }
          create: {
            args: Prisma.EntityTypeCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EntityTypePayload>
          }
          createMany: {
            args: Prisma.EntityTypeCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.EntityTypeDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EntityTypePayload>
          }
          update: {
            args: Prisma.EntityTypeUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EntityTypePayload>
          }
          deleteMany: {
            args: Prisma.EntityTypeDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.EntityTypeUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.EntityTypeUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EntityTypePayload>
          }
          aggregate: {
            args: Prisma.EntityTypeAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateEntityType>
          }
          groupBy: {
            args: Prisma.EntityTypeGroupByArgs<ExtArgs>
            result: $Utils.Optional<EntityTypeGroupByOutputType>[]
          }
          count: {
            args: Prisma.EntityTypeCountArgs<ExtArgs>
            result: $Utils.Optional<EntityTypeCountAggregateOutputType> | number
          }
        }
      }
      WizardGroup: {
        payload: Prisma.$WizardGroupPayload<ExtArgs>
        fields: Prisma.WizardGroupFieldRefs
        operations: {
          findUnique: {
            args: Prisma.WizardGroupFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardGroupPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.WizardGroupFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardGroupPayload>
          }
          findFirst: {
            args: Prisma.WizardGroupFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardGroupPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.WizardGroupFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardGroupPayload>
          }
          findMany: {
            args: Prisma.WizardGroupFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardGroupPayload>[]
          }
          create: {
            args: Prisma.WizardGroupCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardGroupPayload>
          }
          createMany: {
            args: Prisma.WizardGroupCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.WizardGroupDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardGroupPayload>
          }
          update: {
            args: Prisma.WizardGroupUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardGroupPayload>
          }
          deleteMany: {
            args: Prisma.WizardGroupDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.WizardGroupUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.WizardGroupUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardGroupPayload>
          }
          aggregate: {
            args: Prisma.WizardGroupAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateWizardGroup>
          }
          groupBy: {
            args: Prisma.WizardGroupGroupByArgs<ExtArgs>
            result: $Utils.Optional<WizardGroupGroupByOutputType>[]
          }
          count: {
            args: Prisma.WizardGroupCountArgs<ExtArgs>
            result: $Utils.Optional<WizardGroupCountAggregateOutputType> | number
          }
        }
      }
      WizardType: {
        payload: Prisma.$WizardTypePayload<ExtArgs>
        fields: Prisma.WizardTypeFieldRefs
        operations: {
          findUnique: {
            args: Prisma.WizardTypeFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardTypePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.WizardTypeFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardTypePayload>
          }
          findFirst: {
            args: Prisma.WizardTypeFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardTypePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.WizardTypeFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardTypePayload>
          }
          findMany: {
            args: Prisma.WizardTypeFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardTypePayload>[]
          }
          create: {
            args: Prisma.WizardTypeCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardTypePayload>
          }
          createMany: {
            args: Prisma.WizardTypeCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.WizardTypeDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardTypePayload>
          }
          update: {
            args: Prisma.WizardTypeUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardTypePayload>
          }
          deleteMany: {
            args: Prisma.WizardTypeDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.WizardTypeUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.WizardTypeUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$WizardTypePayload>
          }
          aggregate: {
            args: Prisma.WizardTypeAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateWizardType>
          }
          groupBy: {
            args: Prisma.WizardTypeGroupByArgs<ExtArgs>
            result: $Utils.Optional<WizardTypeGroupByOutputType>[]
          }
          count: {
            args: Prisma.WizardTypeCountArgs<ExtArgs>
            result: $Utils.Optional<WizardTypeCountAggregateOutputType> | number
          }
        }
      }
      MasterEntity: {
        payload: Prisma.$MasterEntityPayload<ExtArgs>
        fields: Prisma.MasterEntityFieldRefs
        operations: {
          findUnique: {
            args: Prisma.MasterEntityFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.MasterEntityFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityPayload>
          }
          findFirst: {
            args: Prisma.MasterEntityFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.MasterEntityFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityPayload>
          }
          findMany: {
            args: Prisma.MasterEntityFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityPayload>[]
          }
          create: {
            args: Prisma.MasterEntityCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityPayload>
          }
          createMany: {
            args: Prisma.MasterEntityCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.MasterEntityDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityPayload>
          }
          update: {
            args: Prisma.MasterEntityUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityPayload>
          }
          deleteMany: {
            args: Prisma.MasterEntityDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.MasterEntityUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.MasterEntityUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityPayload>
          }
          aggregate: {
            args: Prisma.MasterEntityAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateMasterEntity>
          }
          groupBy: {
            args: Prisma.MasterEntityGroupByArgs<ExtArgs>
            result: $Utils.Optional<MasterEntityGroupByOutputType>[]
          }
          count: {
            args: Prisma.MasterEntityCountArgs<ExtArgs>
            result: $Utils.Optional<MasterEntityCountAggregateOutputType> | number
          }
        }
      }
      MasterEntityLineItem: {
        payload: Prisma.$MasterEntityLineItemPayload<ExtArgs>
        fields: Prisma.MasterEntityLineItemFieldRefs
        operations: {
          findUnique: {
            args: Prisma.MasterEntityLineItemFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityLineItemPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.MasterEntityLineItemFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityLineItemPayload>
          }
          findFirst: {
            args: Prisma.MasterEntityLineItemFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityLineItemPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.MasterEntityLineItemFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityLineItemPayload>
          }
          findMany: {
            args: Prisma.MasterEntityLineItemFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityLineItemPayload>[]
          }
          create: {
            args: Prisma.MasterEntityLineItemCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityLineItemPayload>
          }
          createMany: {
            args: Prisma.MasterEntityLineItemCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.MasterEntityLineItemDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityLineItemPayload>
          }
          update: {
            args: Prisma.MasterEntityLineItemUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityLineItemPayload>
          }
          deleteMany: {
            args: Prisma.MasterEntityLineItemDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.MasterEntityLineItemUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.MasterEntityLineItemUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$MasterEntityLineItemPayload>
          }
          aggregate: {
            args: Prisma.MasterEntityLineItemAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateMasterEntityLineItem>
          }
          groupBy: {
            args: Prisma.MasterEntityLineItemGroupByArgs<ExtArgs>
            result: $Utils.Optional<MasterEntityLineItemGroupByOutputType>[]
          }
          count: {
            args: Prisma.MasterEntityLineItemCountArgs<ExtArgs>
            result: $Utils.Optional<MasterEntityLineItemCountAggregateOutputType> | number
          }
        }
      }
      FieldType: {
        payload: Prisma.$FieldTypePayload<ExtArgs>
        fields: Prisma.FieldTypeFieldRefs
        operations: {
          findUnique: {
            args: Prisma.FieldTypeFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FieldTypePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.FieldTypeFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FieldTypePayload>
          }
          findFirst: {
            args: Prisma.FieldTypeFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FieldTypePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.FieldTypeFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FieldTypePayload>
          }
          findMany: {
            args: Prisma.FieldTypeFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FieldTypePayload>[]
          }
          create: {
            args: Prisma.FieldTypeCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FieldTypePayload>
          }
          createMany: {
            args: Prisma.FieldTypeCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.FieldTypeDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FieldTypePayload>
          }
          update: {
            args: Prisma.FieldTypeUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FieldTypePayload>
          }
          deleteMany: {
            args: Prisma.FieldTypeDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.FieldTypeUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.FieldTypeUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FieldTypePayload>
          }
          aggregate: {
            args: Prisma.FieldTypeAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateFieldType>
          }
          groupBy: {
            args: Prisma.FieldTypeGroupByArgs<ExtArgs>
            result: $Utils.Optional<FieldTypeGroupByOutputType>[]
          }
          count: {
            args: Prisma.FieldTypeCountArgs<ExtArgs>
            result: $Utils.Optional<FieldTypeCountAggregateOutputType> | number
          }
        }
      }
      menuType: {
        payload: Prisma.$menuTypePayload<ExtArgs>
        fields: Prisma.menuTypeFieldRefs
        operations: {
          findUnique: {
            args: Prisma.menuTypeFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$menuTypePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.menuTypeFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$menuTypePayload>
          }
          findFirst: {
            args: Prisma.menuTypeFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$menuTypePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.menuTypeFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$menuTypePayload>
          }
          findMany: {
            args: Prisma.menuTypeFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$menuTypePayload>[]
          }
          create: {
            args: Prisma.menuTypeCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$menuTypePayload>
          }
          createMany: {
            args: Prisma.menuTypeCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.menuTypeDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$menuTypePayload>
          }
          update: {
            args: Prisma.menuTypeUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$menuTypePayload>
          }
          deleteMany: {
            args: Prisma.menuTypeDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.menuTypeUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.menuTypeUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$menuTypePayload>
          }
          aggregate: {
            args: Prisma.MenuTypeAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateMenuType>
          }
          groupBy: {
            args: Prisma.menuTypeGroupByArgs<ExtArgs>
            result: $Utils.Optional<MenuTypeGroupByOutputType>[]
          }
          count: {
            args: Prisma.menuTypeCountArgs<ExtArgs>
            result: $Utils.Optional<MenuTypeCountAggregateOutputType> | number
          }
        }
      }
      EmailTemplateProcess: {
        payload: Prisma.$EmailTemplateProcessPayload<ExtArgs>
        fields: Prisma.EmailTemplateProcessFieldRefs
        operations: {
          findUnique: {
            args: Prisma.EmailTemplateProcessFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.EmailTemplateProcessFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessPayload>
          }
          findFirst: {
            args: Prisma.EmailTemplateProcessFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.EmailTemplateProcessFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessPayload>
          }
          findMany: {
            args: Prisma.EmailTemplateProcessFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessPayload>[]
          }
          create: {
            args: Prisma.EmailTemplateProcessCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessPayload>
          }
          createMany: {
            args: Prisma.EmailTemplateProcessCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.EmailTemplateProcessDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessPayload>
          }
          update: {
            args: Prisma.EmailTemplateProcessUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessPayload>
          }
          deleteMany: {
            args: Prisma.EmailTemplateProcessDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.EmailTemplateProcessUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.EmailTemplateProcessUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessPayload>
          }
          aggregate: {
            args: Prisma.EmailTemplateProcessAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateEmailTemplateProcess>
          }
          groupBy: {
            args: Prisma.EmailTemplateProcessGroupByArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateProcessGroupByOutputType>[]
          }
          count: {
            args: Prisma.EmailTemplateProcessCountArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateProcessCountAggregateOutputType> | number
          }
        }
      }
      EmailTemplateTag: {
        payload: Prisma.$EmailTemplateTagPayload<ExtArgs>
        fields: Prisma.EmailTemplateTagFieldRefs
        operations: {
          findUnique: {
            args: Prisma.EmailTemplateTagFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateTagPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.EmailTemplateTagFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateTagPayload>
          }
          findFirst: {
            args: Prisma.EmailTemplateTagFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateTagPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.EmailTemplateTagFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateTagPayload>
          }
          findMany: {
            args: Prisma.EmailTemplateTagFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateTagPayload>[]
          }
          create: {
            args: Prisma.EmailTemplateTagCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateTagPayload>
          }
          createMany: {
            args: Prisma.EmailTemplateTagCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.EmailTemplateTagDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateTagPayload>
          }
          update: {
            args: Prisma.EmailTemplateTagUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateTagPayload>
          }
          deleteMany: {
            args: Prisma.EmailTemplateTagDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.EmailTemplateTagUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.EmailTemplateTagUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateTagPayload>
          }
          aggregate: {
            args: Prisma.EmailTemplateTagAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateEmailTemplateTag>
          }
          groupBy: {
            args: Prisma.EmailTemplateTagGroupByArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateTagGroupByOutputType>[]
          }
          count: {
            args: Prisma.EmailTemplateTagCountArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateTagCountAggregateOutputType> | number
          }
        }
      }
      EmailTemplateRecipientTag: {
        payload: Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>
        fields: Prisma.EmailTemplateRecipientTagFieldRefs
        operations: {
          findUnique: {
            args: Prisma.EmailTemplateRecipientTagFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateRecipientTagPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.EmailTemplateRecipientTagFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateRecipientTagPayload>
          }
          findFirst: {
            args: Prisma.EmailTemplateRecipientTagFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateRecipientTagPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.EmailTemplateRecipientTagFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateRecipientTagPayload>
          }
          findMany: {
            args: Prisma.EmailTemplateRecipientTagFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateRecipientTagPayload>[]
          }
          create: {
            args: Prisma.EmailTemplateRecipientTagCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateRecipientTagPayload>
          }
          createMany: {
            args: Prisma.EmailTemplateRecipientTagCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.EmailTemplateRecipientTagDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateRecipientTagPayload>
          }
          update: {
            args: Prisma.EmailTemplateRecipientTagUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateRecipientTagPayload>
          }
          deleteMany: {
            args: Prisma.EmailTemplateRecipientTagDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.EmailTemplateRecipientTagUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.EmailTemplateRecipientTagUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateRecipientTagPayload>
          }
          aggregate: {
            args: Prisma.EmailTemplateRecipientTagAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateEmailTemplateRecipientTag>
          }
          groupBy: {
            args: Prisma.EmailTemplateRecipientTagGroupByArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateRecipientTagGroupByOutputType>[]
          }
          count: {
            args: Prisma.EmailTemplateRecipientTagCountArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateRecipientTagCountAggregateOutputType> | number
          }
        }
      }
      EmailTemplateProcessTagsMapping: {
        payload: Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>
        fields: Prisma.EmailTemplateProcessTagsMappingFieldRefs
        operations: {
          findUnique: {
            args: Prisma.EmailTemplateProcessTagsMappingFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessTagsMappingPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.EmailTemplateProcessTagsMappingFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessTagsMappingPayload>
          }
          findFirst: {
            args: Prisma.EmailTemplateProcessTagsMappingFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessTagsMappingPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.EmailTemplateProcessTagsMappingFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessTagsMappingPayload>
          }
          findMany: {
            args: Prisma.EmailTemplateProcessTagsMappingFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessTagsMappingPayload>[]
          }
          create: {
            args: Prisma.EmailTemplateProcessTagsMappingCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessTagsMappingPayload>
          }
          createMany: {
            args: Prisma.EmailTemplateProcessTagsMappingCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.EmailTemplateProcessTagsMappingDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessTagsMappingPayload>
          }
          update: {
            args: Prisma.EmailTemplateProcessTagsMappingUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessTagsMappingPayload>
          }
          deleteMany: {
            args: Prisma.EmailTemplateProcessTagsMappingDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.EmailTemplateProcessTagsMappingUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.EmailTemplateProcessTagsMappingUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateProcessTagsMappingPayload>
          }
          aggregate: {
            args: Prisma.EmailTemplateProcessTagsMappingAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateEmailTemplateProcessTagsMapping>
          }
          groupBy: {
            args: Prisma.EmailTemplateProcessTagsMappingGroupByArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateProcessTagsMappingGroupByOutputType>[]
          }
          count: {
            args: Prisma.EmailTemplateProcessTagsMappingCountArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateProcessTagsMappingCountAggregateOutputType> | number
          }
        }
      }
      EmailTemplate: {
        payload: Prisma.$EmailTemplatePayload<ExtArgs>
        fields: Prisma.EmailTemplateFieldRefs
        operations: {
          findUnique: {
            args: Prisma.EmailTemplateFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplatePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.EmailTemplateFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplatePayload>
          }
          findFirst: {
            args: Prisma.EmailTemplateFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplatePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.EmailTemplateFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplatePayload>
          }
          findMany: {
            args: Prisma.EmailTemplateFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplatePayload>[]
          }
          create: {
            args: Prisma.EmailTemplateCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplatePayload>
          }
          createMany: {
            args: Prisma.EmailTemplateCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.EmailTemplateDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplatePayload>
          }
          update: {
            args: Prisma.EmailTemplateUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplatePayload>
          }
          deleteMany: {
            args: Prisma.EmailTemplateDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.EmailTemplateUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.EmailTemplateUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplatePayload>
          }
          aggregate: {
            args: Prisma.EmailTemplateAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateEmailTemplate>
          }
          groupBy: {
            args: Prisma.EmailTemplateGroupByArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateGroupByOutputType>[]
          }
          count: {
            args: Prisma.EmailTemplateCountArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateCountAggregateOutputType> | number
          }
        }
      }
      EmailTemplateAssignment: {
        payload: Prisma.$EmailTemplateAssignmentPayload<ExtArgs>
        fields: Prisma.EmailTemplateAssignmentFieldRefs
        operations: {
          findUnique: {
            args: Prisma.EmailTemplateAssignmentFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateAssignmentPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.EmailTemplateAssignmentFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateAssignmentPayload>
          }
          findFirst: {
            args: Prisma.EmailTemplateAssignmentFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateAssignmentPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.EmailTemplateAssignmentFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateAssignmentPayload>
          }
          findMany: {
            args: Prisma.EmailTemplateAssignmentFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateAssignmentPayload>[]
          }
          create: {
            args: Prisma.EmailTemplateAssignmentCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateAssignmentPayload>
          }
          createMany: {
            args: Prisma.EmailTemplateAssignmentCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.EmailTemplateAssignmentDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateAssignmentPayload>
          }
          update: {
            args: Prisma.EmailTemplateAssignmentUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateAssignmentPayload>
          }
          deleteMany: {
            args: Prisma.EmailTemplateAssignmentDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.EmailTemplateAssignmentUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.EmailTemplateAssignmentUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailTemplateAssignmentPayload>
          }
          aggregate: {
            args: Prisma.EmailTemplateAssignmentAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateEmailTemplateAssignment>
          }
          groupBy: {
            args: Prisma.EmailTemplateAssignmentGroupByArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateAssignmentGroupByOutputType>[]
          }
          count: {
            args: Prisma.EmailTemplateAssignmentCountArgs<ExtArgs>
            result: $Utils.Optional<EmailTemplateAssignmentCountAggregateOutputType> | number
          }
        }
      }
      EmailProcessJob: {
        payload: Prisma.$EmailProcessJobPayload<ExtArgs>
        fields: Prisma.EmailProcessJobFieldRefs
        operations: {
          findUnique: {
            args: Prisma.EmailProcessJobFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailProcessJobPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.EmailProcessJobFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailProcessJobPayload>
          }
          findFirst: {
            args: Prisma.EmailProcessJobFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailProcessJobPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.EmailProcessJobFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailProcessJobPayload>
          }
          findMany: {
            args: Prisma.EmailProcessJobFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailProcessJobPayload>[]
          }
          create: {
            args: Prisma.EmailProcessJobCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailProcessJobPayload>
          }
          createMany: {
            args: Prisma.EmailProcessJobCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.EmailProcessJobDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailProcessJobPayload>
          }
          update: {
            args: Prisma.EmailProcessJobUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailProcessJobPayload>
          }
          deleteMany: {
            args: Prisma.EmailProcessJobDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.EmailProcessJobUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.EmailProcessJobUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$EmailProcessJobPayload>
          }
          aggregate: {
            args: Prisma.EmailProcessJobAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateEmailProcessJob>
          }
          groupBy: {
            args: Prisma.EmailProcessJobGroupByArgs<ExtArgs>
            result: $Utils.Optional<EmailProcessJobGroupByOutputType>[]
          }
          count: {
            args: Prisma.EmailProcessJobCountArgs<ExtArgs>
            result: $Utils.Optional<EmailProcessJobCountAggregateOutputType> | number
          }
        }
      }
      NotificationJob: {
        payload: Prisma.$NotificationJobPayload<ExtArgs>
        fields: Prisma.NotificationJobFieldRefs
        operations: {
          findUnique: {
            args: Prisma.NotificationJobFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$NotificationJobPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.NotificationJobFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$NotificationJobPayload>
          }
          findFirst: {
            args: Prisma.NotificationJobFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$NotificationJobPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.NotificationJobFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$NotificationJobPayload>
          }
          findMany: {
            args: Prisma.NotificationJobFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$NotificationJobPayload>[]
          }
          create: {
            args: Prisma.NotificationJobCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$NotificationJobPayload>
          }
          createMany: {
            args: Prisma.NotificationJobCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.NotificationJobDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$NotificationJobPayload>
          }
          update: {
            args: Prisma.NotificationJobUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$NotificationJobPayload>
          }
          deleteMany: {
            args: Prisma.NotificationJobDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.NotificationJobUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.NotificationJobUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$NotificationJobPayload>
          }
          aggregate: {
            args: Prisma.NotificationJobAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateNotificationJob>
          }
          groupBy: {
            args: Prisma.NotificationJobGroupByArgs<ExtArgs>
            result: $Utils.Optional<NotificationJobGroupByOutputType>[]
          }
          count: {
            args: Prisma.NotificationJobCountArgs<ExtArgs>
            result: $Utils.Optional<NotificationJobCountAggregateOutputType> | number
          }
        }
      }
      ImportTemplate: {
        payload: Prisma.$ImportTemplatePayload<ExtArgs>
        fields: Prisma.ImportTemplateFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ImportTemplateFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplatePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ImportTemplateFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplatePayload>
          }
          findFirst: {
            args: Prisma.ImportTemplateFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplatePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ImportTemplateFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplatePayload>
          }
          findMany: {
            args: Prisma.ImportTemplateFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplatePayload>[]
          }
          create: {
            args: Prisma.ImportTemplateCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplatePayload>
          }
          createMany: {
            args: Prisma.ImportTemplateCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ImportTemplateDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplatePayload>
          }
          update: {
            args: Prisma.ImportTemplateUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplatePayload>
          }
          deleteMany: {
            args: Prisma.ImportTemplateDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ImportTemplateUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ImportTemplateUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplatePayload>
          }
          aggregate: {
            args: Prisma.ImportTemplateAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateImportTemplate>
          }
          groupBy: {
            args: Prisma.ImportTemplateGroupByArgs<ExtArgs>
            result: $Utils.Optional<ImportTemplateGroupByOutputType>[]
          }
          count: {
            args: Prisma.ImportTemplateCountArgs<ExtArgs>
            result: $Utils.Optional<ImportTemplateCountAggregateOutputType> | number
          }
        }
      }
      ImportTemplateLineItem: {
        payload: Prisma.$ImportTemplateLineItemPayload<ExtArgs>
        fields: Prisma.ImportTemplateLineItemFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ImportTemplateLineItemFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateLineItemPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ImportTemplateLineItemFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateLineItemPayload>
          }
          findFirst: {
            args: Prisma.ImportTemplateLineItemFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateLineItemPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ImportTemplateLineItemFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateLineItemPayload>
          }
          findMany: {
            args: Prisma.ImportTemplateLineItemFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateLineItemPayload>[]
          }
          create: {
            args: Prisma.ImportTemplateLineItemCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateLineItemPayload>
          }
          createMany: {
            args: Prisma.ImportTemplateLineItemCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ImportTemplateLineItemDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateLineItemPayload>
          }
          update: {
            args: Prisma.ImportTemplateLineItemUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateLineItemPayload>
          }
          deleteMany: {
            args: Prisma.ImportTemplateLineItemDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ImportTemplateLineItemUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ImportTemplateLineItemUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateLineItemPayload>
          }
          aggregate: {
            args: Prisma.ImportTemplateLineItemAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateImportTemplateLineItem>
          }
          groupBy: {
            args: Prisma.ImportTemplateLineItemGroupByArgs<ExtArgs>
            result: $Utils.Optional<ImportTemplateLineItemGroupByOutputType>[]
          }
          count: {
            args: Prisma.ImportTemplateLineItemCountArgs<ExtArgs>
            result: $Utils.Optional<ImportTemplateLineItemCountAggregateOutputType> | number
          }
        }
      }
      ImportTemplateQueries: {
        payload: Prisma.$ImportTemplateQueriesPayload<ExtArgs>
        fields: Prisma.ImportTemplateQueriesFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ImportTemplateQueriesFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateQueriesPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ImportTemplateQueriesFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateQueriesPayload>
          }
          findFirst: {
            args: Prisma.ImportTemplateQueriesFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateQueriesPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ImportTemplateQueriesFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateQueriesPayload>
          }
          findMany: {
            args: Prisma.ImportTemplateQueriesFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateQueriesPayload>[]
          }
          create: {
            args: Prisma.ImportTemplateQueriesCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateQueriesPayload>
          }
          createMany: {
            args: Prisma.ImportTemplateQueriesCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ImportTemplateQueriesDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateQueriesPayload>
          }
          update: {
            args: Prisma.ImportTemplateQueriesUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateQueriesPayload>
          }
          deleteMany: {
            args: Prisma.ImportTemplateQueriesDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ImportTemplateQueriesUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ImportTemplateQueriesUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportTemplateQueriesPayload>
          }
          aggregate: {
            args: Prisma.ImportTemplateQueriesAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateImportTemplateQueries>
          }
          groupBy: {
            args: Prisma.ImportTemplateQueriesGroupByArgs<ExtArgs>
            result: $Utils.Optional<ImportTemplateQueriesGroupByOutputType>[]
          }
          count: {
            args: Prisma.ImportTemplateQueriesCountArgs<ExtArgs>
            result: $Utils.Optional<ImportTemplateQueriesCountAggregateOutputType> | number
          }
        }
      }
      ImportJob: {
        payload: Prisma.$ImportJobPayload<ExtArgs>
        fields: Prisma.ImportJobFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ImportJobFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ImportJobFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobPayload>
          }
          findFirst: {
            args: Prisma.ImportJobFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ImportJobFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobPayload>
          }
          findMany: {
            args: Prisma.ImportJobFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobPayload>[]
          }
          create: {
            args: Prisma.ImportJobCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobPayload>
          }
          createMany: {
            args: Prisma.ImportJobCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ImportJobDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobPayload>
          }
          update: {
            args: Prisma.ImportJobUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobPayload>
          }
          deleteMany: {
            args: Prisma.ImportJobDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ImportJobUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ImportJobUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobPayload>
          }
          aggregate: {
            args: Prisma.ImportJobAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateImportJob>
          }
          groupBy: {
            args: Prisma.ImportJobGroupByArgs<ExtArgs>
            result: $Utils.Optional<ImportJobGroupByOutputType>[]
          }
          count: {
            args: Prisma.ImportJobCountArgs<ExtArgs>
            result: $Utils.Optional<ImportJobCountAggregateOutputType> | number
          }
        }
      }
      ImportJobLineItem: {
        payload: Prisma.$ImportJobLineItemPayload<ExtArgs>
        fields: Prisma.ImportJobLineItemFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ImportJobLineItemFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobLineItemPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ImportJobLineItemFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobLineItemPayload>
          }
          findFirst: {
            args: Prisma.ImportJobLineItemFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobLineItemPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ImportJobLineItemFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobLineItemPayload>
          }
          findMany: {
            args: Prisma.ImportJobLineItemFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobLineItemPayload>[]
          }
          create: {
            args: Prisma.ImportJobLineItemCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobLineItemPayload>
          }
          createMany: {
            args: Prisma.ImportJobLineItemCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ImportJobLineItemDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobLineItemPayload>
          }
          update: {
            args: Prisma.ImportJobLineItemUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobLineItemPayload>
          }
          deleteMany: {
            args: Prisma.ImportJobLineItemDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ImportJobLineItemUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ImportJobLineItemUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ImportJobLineItemPayload>
          }
          aggregate: {
            args: Prisma.ImportJobLineItemAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateImportJobLineItem>
          }
          groupBy: {
            args: Prisma.ImportJobLineItemGroupByArgs<ExtArgs>
            result: $Utils.Optional<ImportJobLineItemGroupByOutputType>[]
          }
          count: {
            args: Prisma.ImportJobLineItemCountArgs<ExtArgs>
            result: $Utils.Optional<ImportJobLineItemCountAggregateOutputType> | number
          }
        }
      }
      ExportTemplate: {
        payload: Prisma.$ExportTemplatePayload<ExtArgs>
        fields: Prisma.ExportTemplateFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ExportTemplateFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplatePayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ExportTemplateFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplatePayload>
          }
          findFirst: {
            args: Prisma.ExportTemplateFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplatePayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ExportTemplateFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplatePayload>
          }
          findMany: {
            args: Prisma.ExportTemplateFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplatePayload>[]
          }
          create: {
            args: Prisma.ExportTemplateCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplatePayload>
          }
          createMany: {
            args: Prisma.ExportTemplateCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ExportTemplateDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplatePayload>
          }
          update: {
            args: Prisma.ExportTemplateUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplatePayload>
          }
          deleteMany: {
            args: Prisma.ExportTemplateDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ExportTemplateUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ExportTemplateUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplatePayload>
          }
          aggregate: {
            args: Prisma.ExportTemplateAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateExportTemplate>
          }
          groupBy: {
            args: Prisma.ExportTemplateGroupByArgs<ExtArgs>
            result: $Utils.Optional<ExportTemplateGroupByOutputType>[]
          }
          count: {
            args: Prisma.ExportTemplateCountArgs<ExtArgs>
            result: $Utils.Optional<ExportTemplateCountAggregateOutputType> | number
          }
        }
      }
      ExportTemplateLineItem: {
        payload: Prisma.$ExportTemplateLineItemPayload<ExtArgs>
        fields: Prisma.ExportTemplateLineItemFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ExportTemplateLineItemFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateLineItemPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ExportTemplateLineItemFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateLineItemPayload>
          }
          findFirst: {
            args: Prisma.ExportTemplateLineItemFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateLineItemPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ExportTemplateLineItemFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateLineItemPayload>
          }
          findMany: {
            args: Prisma.ExportTemplateLineItemFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateLineItemPayload>[]
          }
          create: {
            args: Prisma.ExportTemplateLineItemCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateLineItemPayload>
          }
          createMany: {
            args: Prisma.ExportTemplateLineItemCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ExportTemplateLineItemDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateLineItemPayload>
          }
          update: {
            args: Prisma.ExportTemplateLineItemUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateLineItemPayload>
          }
          deleteMany: {
            args: Prisma.ExportTemplateLineItemDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ExportTemplateLineItemUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ExportTemplateLineItemUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateLineItemPayload>
          }
          aggregate: {
            args: Prisma.ExportTemplateLineItemAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateExportTemplateLineItem>
          }
          groupBy: {
            args: Prisma.ExportTemplateLineItemGroupByArgs<ExtArgs>
            result: $Utils.Optional<ExportTemplateLineItemGroupByOutputType>[]
          }
          count: {
            args: Prisma.ExportTemplateLineItemCountArgs<ExtArgs>
            result: $Utils.Optional<ExportTemplateLineItemCountAggregateOutputType> | number
          }
        }
      }
      ExportTemplateQueries: {
        payload: Prisma.$ExportTemplateQueriesPayload<ExtArgs>
        fields: Prisma.ExportTemplateQueriesFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ExportTemplateQueriesFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateQueriesPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ExportTemplateQueriesFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateQueriesPayload>
          }
          findFirst: {
            args: Prisma.ExportTemplateQueriesFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateQueriesPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ExportTemplateQueriesFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateQueriesPayload>
          }
          findMany: {
            args: Prisma.ExportTemplateQueriesFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateQueriesPayload>[]
          }
          create: {
            args: Prisma.ExportTemplateQueriesCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateQueriesPayload>
          }
          createMany: {
            args: Prisma.ExportTemplateQueriesCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ExportTemplateQueriesDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateQueriesPayload>
          }
          update: {
            args: Prisma.ExportTemplateQueriesUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateQueriesPayload>
          }
          deleteMany: {
            args: Prisma.ExportTemplateQueriesDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ExportTemplateQueriesUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ExportTemplateQueriesUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ExportTemplateQueriesPayload>
          }
          aggregate: {
            args: Prisma.ExportTemplateQueriesAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateExportTemplateQueries>
          }
          groupBy: {
            args: Prisma.ExportTemplateQueriesGroupByArgs<ExtArgs>
            result: $Utils.Optional<ExportTemplateQueriesGroupByOutputType>[]
          }
          count: {
            args: Prisma.ExportTemplateQueriesCountArgs<ExtArgs>
            result: $Utils.Optional<ExportTemplateQueriesCountAggregateOutputType> | number
          }
        }
      }
      Status: {
        payload: Prisma.$StatusPayload<ExtArgs>
        fields: Prisma.StatusFieldRefs
        operations: {
          findUnique: {
            args: Prisma.StatusFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$StatusPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.StatusFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$StatusPayload>
          }
          findFirst: {
            args: Prisma.StatusFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$StatusPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.StatusFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$StatusPayload>
          }
          findMany: {
            args: Prisma.StatusFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$StatusPayload>[]
          }
          create: {
            args: Prisma.StatusCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$StatusPayload>
          }
          createMany: {
            args: Prisma.StatusCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.StatusDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$StatusPayload>
          }
          update: {
            args: Prisma.StatusUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$StatusPayload>
          }
          deleteMany: {
            args: Prisma.StatusDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.StatusUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.StatusUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$StatusPayload>
          }
          aggregate: {
            args: Prisma.StatusAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateStatus>
          }
          groupBy: {
            args: Prisma.StatusGroupByArgs<ExtArgs>
            result: $Utils.Optional<StatusGroupByOutputType>[]
          }
          count: {
            args: Prisma.StatusCountArgs<ExtArgs>
            result: $Utils.Optional<StatusCountAggregateOutputType> | number
          }
        }
      }
      CategoryTypes: {
        payload: Prisma.$CategoryTypesPayload<ExtArgs>
        fields: Prisma.CategoryTypesFieldRefs
        operations: {
          findUnique: {
            args: Prisma.CategoryTypesFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoryTypesPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.CategoryTypesFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoryTypesPayload>
          }
          findFirst: {
            args: Prisma.CategoryTypesFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoryTypesPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.CategoryTypesFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoryTypesPayload>
          }
          findMany: {
            args: Prisma.CategoryTypesFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoryTypesPayload>[]
          }
          create: {
            args: Prisma.CategoryTypesCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoryTypesPayload>
          }
          createMany: {
            args: Prisma.CategoryTypesCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.CategoryTypesDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoryTypesPayload>
          }
          update: {
            args: Prisma.CategoryTypesUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoryTypesPayload>
          }
          deleteMany: {
            args: Prisma.CategoryTypesDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.CategoryTypesUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.CategoryTypesUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoryTypesPayload>
          }
          aggregate: {
            args: Prisma.CategoryTypesAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateCategoryTypes>
          }
          groupBy: {
            args: Prisma.CategoryTypesGroupByArgs<ExtArgs>
            result: $Utils.Optional<CategoryTypesGroupByOutputType>[]
          }
          count: {
            args: Prisma.CategoryTypesCountArgs<ExtArgs>
            result: $Utils.Optional<CategoryTypesCountAggregateOutputType> | number
          }
        }
      }
      Categories: {
        payload: Prisma.$CategoriesPayload<ExtArgs>
        fields: Prisma.CategoriesFieldRefs
        operations: {
          findUnique: {
            args: Prisma.CategoriesFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoriesPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.CategoriesFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoriesPayload>
          }
          findFirst: {
            args: Prisma.CategoriesFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoriesPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.CategoriesFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoriesPayload>
          }
          findMany: {
            args: Prisma.CategoriesFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoriesPayload>[]
          }
          create: {
            args: Prisma.CategoriesCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoriesPayload>
          }
          createMany: {
            args: Prisma.CategoriesCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.CategoriesDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoriesPayload>
          }
          update: {
            args: Prisma.CategoriesUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoriesPayload>
          }
          deleteMany: {
            args: Prisma.CategoriesDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.CategoriesUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.CategoriesUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$CategoriesPayload>
          }
          aggregate: {
            args: Prisma.CategoriesAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateCategories>
          }
          groupBy: {
            args: Prisma.CategoriesGroupByArgs<ExtArgs>
            result: $Utils.Optional<CategoriesGroupByOutputType>[]
          }
          count: {
            args: Prisma.CategoriesCountArgs<ExtArgs>
            result: $Utils.Optional<CategoriesCountAggregateOutputType> | number
          }
        }
      }
      Configurations: {
        payload: Prisma.$ConfigurationsPayload<ExtArgs>
        fields: Prisma.ConfigurationsFieldRefs
        operations: {
          findUnique: {
            args: Prisma.ConfigurationsFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ConfigurationsPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.ConfigurationsFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ConfigurationsPayload>
          }
          findFirst: {
            args: Prisma.ConfigurationsFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ConfigurationsPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.ConfigurationsFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ConfigurationsPayload>
          }
          findMany: {
            args: Prisma.ConfigurationsFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ConfigurationsPayload>[]
          }
          create: {
            args: Prisma.ConfigurationsCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ConfigurationsPayload>
          }
          createMany: {
            args: Prisma.ConfigurationsCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.ConfigurationsDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ConfigurationsPayload>
          }
          update: {
            args: Prisma.ConfigurationsUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ConfigurationsPayload>
          }
          deleteMany: {
            args: Prisma.ConfigurationsDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.ConfigurationsUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.ConfigurationsUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$ConfigurationsPayload>
          }
          aggregate: {
            args: Prisma.ConfigurationsAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateConfigurations>
          }
          groupBy: {
            args: Prisma.ConfigurationsGroupByArgs<ExtArgs>
            result: $Utils.Optional<ConfigurationsGroupByOutputType>[]
          }
          count: {
            args: Prisma.ConfigurationsCountArgs<ExtArgs>
            result: $Utils.Optional<ConfigurationsCountAggregateOutputType> | number
          }
        }
      }
      FileUploadLog: {
        payload: Prisma.$FileUploadLogPayload<ExtArgs>
        fields: Prisma.FileUploadLogFieldRefs
        operations: {
          findUnique: {
            args: Prisma.FileUploadLogFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FileUploadLogPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.FileUploadLogFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FileUploadLogPayload>
          }
          findFirst: {
            args: Prisma.FileUploadLogFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FileUploadLogPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.FileUploadLogFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FileUploadLogPayload>
          }
          findMany: {
            args: Prisma.FileUploadLogFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FileUploadLogPayload>[]
          }
          create: {
            args: Prisma.FileUploadLogCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FileUploadLogPayload>
          }
          createMany: {
            args: Prisma.FileUploadLogCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.FileUploadLogDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FileUploadLogPayload>
          }
          update: {
            args: Prisma.FileUploadLogUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FileUploadLogPayload>
          }
          deleteMany: {
            args: Prisma.FileUploadLogDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.FileUploadLogUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.FileUploadLogUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$FileUploadLogPayload>
          }
          aggregate: {
            args: Prisma.FileUploadLogAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateFileUploadLog>
          }
          groupBy: {
            args: Prisma.FileUploadLogGroupByArgs<ExtArgs>
            result: $Utils.Optional<FileUploadLogGroupByOutputType>[]
          }
          count: {
            args: Prisma.FileUploadLogCountArgs<ExtArgs>
            result: $Utils.Optional<FileUploadLogCountAggregateOutputType> | number
          }
        }
      }
      DataTransferQueries: {
        payload: Prisma.$DataTransferQueriesPayload<ExtArgs>
        fields: Prisma.DataTransferQueriesFieldRefs
        operations: {
          findUnique: {
            args: Prisma.DataTransferQueriesFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DataTransferQueriesPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.DataTransferQueriesFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DataTransferQueriesPayload>
          }
          findFirst: {
            args: Prisma.DataTransferQueriesFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DataTransferQueriesPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.DataTransferQueriesFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DataTransferQueriesPayload>
          }
          findMany: {
            args: Prisma.DataTransferQueriesFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DataTransferQueriesPayload>[]
          }
          create: {
            args: Prisma.DataTransferQueriesCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DataTransferQueriesPayload>
          }
          createMany: {
            args: Prisma.DataTransferQueriesCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.DataTransferQueriesDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DataTransferQueriesPayload>
          }
          update: {
            args: Prisma.DataTransferQueriesUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DataTransferQueriesPayload>
          }
          deleteMany: {
            args: Prisma.DataTransferQueriesDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.DataTransferQueriesUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.DataTransferQueriesUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DataTransferQueriesPayload>
          }
          aggregate: {
            args: Prisma.DataTransferQueriesAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateDataTransferQueries>
          }
          groupBy: {
            args: Prisma.DataTransferQueriesGroupByArgs<ExtArgs>
            result: $Utils.Optional<DataTransferQueriesGroupByOutputType>[]
          }
          count: {
            args: Prisma.DataTransferQueriesCountArgs<ExtArgs>
            result: $Utils.Optional<DataTransferQueriesCountAggregateOutputType> | number
          }
        }
      }
      DeviceRegistration: {
        payload: Prisma.$DeviceRegistrationPayload<ExtArgs>
        fields: Prisma.DeviceRegistrationFieldRefs
        operations: {
          findUnique: {
            args: Prisma.DeviceRegistrationFindUniqueArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DeviceRegistrationPayload> | null
          }
          findUniqueOrThrow: {
            args: Prisma.DeviceRegistrationFindUniqueOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DeviceRegistrationPayload>
          }
          findFirst: {
            args: Prisma.DeviceRegistrationFindFirstArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DeviceRegistrationPayload> | null
          }
          findFirstOrThrow: {
            args: Prisma.DeviceRegistrationFindFirstOrThrowArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DeviceRegistrationPayload>
          }
          findMany: {
            args: Prisma.DeviceRegistrationFindManyArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DeviceRegistrationPayload>[]
          }
          create: {
            args: Prisma.DeviceRegistrationCreateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DeviceRegistrationPayload>
          }
          createMany: {
            args: Prisma.DeviceRegistrationCreateManyArgs<ExtArgs>
            result: BatchPayload
          }
          delete: {
            args: Prisma.DeviceRegistrationDeleteArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DeviceRegistrationPayload>
          }
          update: {
            args: Prisma.DeviceRegistrationUpdateArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DeviceRegistrationPayload>
          }
          deleteMany: {
            args: Prisma.DeviceRegistrationDeleteManyArgs<ExtArgs>
            result: BatchPayload
          }
          updateMany: {
            args: Prisma.DeviceRegistrationUpdateManyArgs<ExtArgs>
            result: BatchPayload
          }
          upsert: {
            args: Prisma.DeviceRegistrationUpsertArgs<ExtArgs>
            result: $Utils.PayloadToResult<Prisma.$DeviceRegistrationPayload>
          }
          aggregate: {
            args: Prisma.DeviceRegistrationAggregateArgs<ExtArgs>
            result: $Utils.Optional<AggregateDeviceRegistration>
          }
          groupBy: {
            args: Prisma.DeviceRegistrationGroupByArgs<ExtArgs>
            result: $Utils.Optional<DeviceRegistrationGroupByOutputType>[]
          }
          count: {
            args: Prisma.DeviceRegistrationCountArgs<ExtArgs>
            result: $Utils.Optional<DeviceRegistrationCountAggregateOutputType> | number
          }
        }
      }
    }
  } & {
    other: {
      payload: any
      operations: {
        $executeRaw: {
          args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
          result: any
        }
        $executeRawUnsafe: {
          args: [query: string, ...values: any[]],
          result: any
        }
        $queryRaw: {
          args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
          result: any
        }
        $queryRawUnsafe: {
          args: [query: string, ...values: any[]],
          result: any
        }
      }
    }
  }
  export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
  export type DefaultPrismaClient = PrismaClient
  export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
  export interface PrismaClientOptions {
    /**
     * Overwrites the datasource url from your schema.prisma file
     */
    datasources?: Datasources
    /**
     * Overwrites the datasource url from your schema.prisma file
     */
    datasourceUrl?: string
    /**
     * @default "colorless"
     */
    errorFormat?: ErrorFormat
    /**
     * @example
     * ```
     * // Defaults to stdout
     * log: ['query', 'info', 'warn', 'error']
     * 
     * // Emit as events
     * log: [
     *   { emit: 'stdout', level: 'query' },
     *   { emit: 'stdout', level: 'info' },
     *   { emit: 'stdout', level: 'warn' }
     *   { emit: 'stdout', level: 'error' }
     * ]
     * ```
     * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
     */
    log?: (LogLevel | LogDefinition)[]
    /**
     * The default values for transactionOptions
     * maxWait ?= 2000
     * timeout ?= 5000
     */
    transactionOptions?: {
      maxWait?: number
      timeout?: number
      isolationLevel?: Prisma.TransactionIsolationLevel
    }
  }


  /* Types for Logging */
  export type LogLevel = 'info' | 'query' | 'warn' | 'error'
  export type LogDefinition = {
    level: LogLevel
    emit: 'stdout' | 'event'
  }

  export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never
  export type GetEvents<T extends any> = T extends Array<LogLevel | LogDefinition> ?
    GetLogType<T[0]> | GetLogType<T[1]> | GetLogType<T[2]> | GetLogType<T[3]>
    : never

  export type QueryEvent = {
    timestamp: Date
    query: string
    params: string
    duration: number
    target: string
  }

  export type LogEvent = {
    timestamp: Date
    message: string
    target: string
  }
  /* End Types for Logging */


  export type PrismaAction =
    | 'findUnique'
    | 'findUniqueOrThrow'
    | 'findMany'
    | 'findFirst'
    | 'findFirstOrThrow'
    | 'create'
    | 'createMany'
    | 'createManyAndReturn'
    | 'update'
    | 'updateMany'
    | 'upsert'
    | 'delete'
    | 'deleteMany'
    | 'executeRaw'
    | 'queryRaw'
    | 'aggregate'
    | 'count'
    | 'runCommandRaw'
    | 'findRaw'
    | 'groupBy'

  /**
   * These options are being passed into the middleware as "params"
   */
  export type MiddlewareParams = {
    model?: ModelName
    action: PrismaAction
    args: any
    dataPath: string[]
    runInTransaction: boolean
  }

  /**
   * The `T` type makes sure, that the `return proceed` is not forgotten in the middleware implementation
   */
  export type Middleware<T = any> = (
    params: MiddlewareParams,
    next: (params: MiddlewareParams) => $Utils.JsPromise<T>,
  ) => $Utils.JsPromise<T>

  // tested in getLogLevel.test.ts
  export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;

  /**
   * `PrismaClient` proxy available in interactive transactions.
   */
  export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>

  export type Datasource = {
    url?: string
  }

  /**
   * Count Types
   */


  /**
   * Count Type UserCountOutputType
   */

  export type UserCountOutputType = {
    request_logs: number
    roles: number
    permissions: number
    otps: number
    created_users: number
    updated_users: number
    deleted_users: number
    created_user_details: number
    updated_user_details: number
    deleted_user_details: number
    created_roles: number
    updated_roles: number
    deleted_roles: number
    created_languages: number
    updated_languages: number
    deleted_languages: number
    created_menus: number
    updated_menus: number
    deleted_menus: number
    created_menu_items: number
    updated_menu_items: number
    deleted_menu_items: number
    created_email_templates: number
    updated_email_templates: number
    deleted_email_templates: number
    created_email_template_assignments: number
    created_email_process_jobs: number
    created_notification_job: number
    created_import_templates: number
    updated_import_templates: number
    deleted_import_templates: number
    created_export_templates: number
    updated_export_templates: number
    deleted_export_templates: number
    created_departments: number
    head_departments: number
    updated_departments: number
    deleted_departments: number
    created_designations: number
    updated_designations: number
    deleted_designations: number
    audit_logs: number
    created_category_types: number
    updated_category_types: number
    deleted_category_types: number
    created_categories: number
    updated_categories: number
    deleted_categories: number
    created_configurations: number
    updated_configurations: number
    deleted_configurations: number
    created_fin_years: number
    updated_fin_years: number
    deleted_fin_years: number
    created_doc_sequences: number
    updated_doc_sequences: number
    deleted_doc_sequences: number
    created_device_registration: number
    updated_device_registration: number
    deleted_device_registration: number
    DeviceRegistration: number
    created_import_job: number
    updated_import_job: number
    deleted_import_job: number
  }

  export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    request_logs?: boolean | UserCountOutputTypeCountRequest_logsArgs
    roles?: boolean | UserCountOutputTypeCountRolesArgs
    permissions?: boolean | UserCountOutputTypeCountPermissionsArgs
    otps?: boolean | UserCountOutputTypeCountOtpsArgs
    created_users?: boolean | UserCountOutputTypeCountCreated_usersArgs
    updated_users?: boolean | UserCountOutputTypeCountUpdated_usersArgs
    deleted_users?: boolean | UserCountOutputTypeCountDeleted_usersArgs
    created_user_details?: boolean | UserCountOutputTypeCountCreated_user_detailsArgs
    updated_user_details?: boolean | UserCountOutputTypeCountUpdated_user_detailsArgs
    deleted_user_details?: boolean | UserCountOutputTypeCountDeleted_user_detailsArgs
    created_roles?: boolean | UserCountOutputTypeCountCreated_rolesArgs
    updated_roles?: boolean | UserCountOutputTypeCountUpdated_rolesArgs
    deleted_roles?: boolean | UserCountOutputTypeCountDeleted_rolesArgs
    created_languages?: boolean | UserCountOutputTypeCountCreated_languagesArgs
    updated_languages?: boolean | UserCountOutputTypeCountUpdated_languagesArgs
    deleted_languages?: boolean | UserCountOutputTypeCountDeleted_languagesArgs
    created_menus?: boolean | UserCountOutputTypeCountCreated_menusArgs
    updated_menus?: boolean | UserCountOutputTypeCountUpdated_menusArgs
    deleted_menus?: boolean | UserCountOutputTypeCountDeleted_menusArgs
    created_menu_items?: boolean | UserCountOutputTypeCountCreated_menu_itemsArgs
    updated_menu_items?: boolean | UserCountOutputTypeCountUpdated_menu_itemsArgs
    deleted_menu_items?: boolean | UserCountOutputTypeCountDeleted_menu_itemsArgs
    created_email_templates?: boolean | UserCountOutputTypeCountCreated_email_templatesArgs
    updated_email_templates?: boolean | UserCountOutputTypeCountUpdated_email_templatesArgs
    deleted_email_templates?: boolean | UserCountOutputTypeCountDeleted_email_templatesArgs
    created_email_template_assignments?: boolean | UserCountOutputTypeCountCreated_email_template_assignmentsArgs
    created_email_process_jobs?: boolean | UserCountOutputTypeCountCreated_email_process_jobsArgs
    created_notification_job?: boolean | UserCountOutputTypeCountCreated_notification_jobArgs
    created_import_templates?: boolean | UserCountOutputTypeCountCreated_import_templatesArgs
    updated_import_templates?: boolean | UserCountOutputTypeCountUpdated_import_templatesArgs
    deleted_import_templates?: boolean | UserCountOutputTypeCountDeleted_import_templatesArgs
    created_export_templates?: boolean | UserCountOutputTypeCountCreated_export_templatesArgs
    updated_export_templates?: boolean | UserCountOutputTypeCountUpdated_export_templatesArgs
    deleted_export_templates?: boolean | UserCountOutputTypeCountDeleted_export_templatesArgs
    created_departments?: boolean | UserCountOutputTypeCountCreated_departmentsArgs
    head_departments?: boolean | UserCountOutputTypeCountHead_departmentsArgs
    updated_departments?: boolean | UserCountOutputTypeCountUpdated_departmentsArgs
    deleted_departments?: boolean | UserCountOutputTypeCountDeleted_departmentsArgs
    created_designations?: boolean | UserCountOutputTypeCountCreated_designationsArgs
    updated_designations?: boolean | UserCountOutputTypeCountUpdated_designationsArgs
    deleted_designations?: boolean | UserCountOutputTypeCountDeleted_designationsArgs
    audit_logs?: boolean | UserCountOutputTypeCountAudit_logsArgs
    created_category_types?: boolean | UserCountOutputTypeCountCreated_category_typesArgs
    updated_category_types?: boolean | UserCountOutputTypeCountUpdated_category_typesArgs
    deleted_category_types?: boolean | UserCountOutputTypeCountDeleted_category_typesArgs
    created_categories?: boolean | UserCountOutputTypeCountCreated_categoriesArgs
    updated_categories?: boolean | UserCountOutputTypeCountUpdated_categoriesArgs
    deleted_categories?: boolean | UserCountOutputTypeCountDeleted_categoriesArgs
    created_configurations?: boolean | UserCountOutputTypeCountCreated_configurationsArgs
    updated_configurations?: boolean | UserCountOutputTypeCountUpdated_configurationsArgs
    deleted_configurations?: boolean | UserCountOutputTypeCountDeleted_configurationsArgs
    created_fin_years?: boolean | UserCountOutputTypeCountCreated_fin_yearsArgs
    updated_fin_years?: boolean | UserCountOutputTypeCountUpdated_fin_yearsArgs
    deleted_fin_years?: boolean | UserCountOutputTypeCountDeleted_fin_yearsArgs
    created_doc_sequences?: boolean | UserCountOutputTypeCountCreated_doc_sequencesArgs
    updated_doc_sequences?: boolean | UserCountOutputTypeCountUpdated_doc_sequencesArgs
    deleted_doc_sequences?: boolean | UserCountOutputTypeCountDeleted_doc_sequencesArgs
    created_device_registration?: boolean | UserCountOutputTypeCountCreated_device_registrationArgs
    updated_device_registration?: boolean | UserCountOutputTypeCountUpdated_device_registrationArgs
    deleted_device_registration?: boolean | UserCountOutputTypeCountDeleted_device_registrationArgs
    DeviceRegistration?: boolean | UserCountOutputTypeCountDeviceRegistrationArgs
    created_import_job?: boolean | UserCountOutputTypeCountCreated_import_jobArgs
    updated_import_job?: boolean | UserCountOutputTypeCountUpdated_import_jobArgs
    deleted_import_job?: boolean | UserCountOutputTypeCountDeleted_import_jobArgs
  }

  // Custom InputTypes
  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserCountOutputType
     */
    select?: UserCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountRequest_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RequestLogWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountRolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserRolesWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountPermissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserPermissionsWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountOtpsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: OtpWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_user_detailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserDetailWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_user_detailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserDetailWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_user_detailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserDetailWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RoleWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RoleWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RoleWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_languagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: LanguageWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_languagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: LanguageWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_languagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: LanguageWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenusWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenusWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenusWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_menu_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenuItemsWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_menu_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenuItemsWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_menu_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenuItemsWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_email_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_email_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_email_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_email_template_assignmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateAssignmentWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_email_process_jobsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailProcessJobWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_notification_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: NotificationJobWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_import_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_import_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_import_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_export_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_export_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_export_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_departmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DepartmentWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountHead_departmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DepartmentWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_departmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DepartmentWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_departmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DepartmentWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_designationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DesignationWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_designationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DesignationWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_designationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DesignationWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountAudit_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: AuditLogWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_category_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoryTypesWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_category_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoryTypesWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_category_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoryTypesWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoriesWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoriesWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoriesWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ConfigurationsWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ConfigurationsWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ConfigurationsWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_fin_yearsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: FinancialYearWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_fin_yearsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: FinancialYearWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_fin_yearsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: FinancialYearWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_doc_sequencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DocumentSequenceWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_doc_sequencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DocumentSequenceWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_doc_sequencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DocumentSequenceWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_device_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DeviceRegistrationWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_device_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DeviceRegistrationWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_device_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DeviceRegistrationWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeviceRegistrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DeviceRegistrationWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountCreated_import_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportJobWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountUpdated_import_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportJobWhereInput
  }

  /**
   * UserCountOutputType without action
   */
  export type UserCountOutputTypeCountDeleted_import_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportJobWhereInput
  }


  /**
   * Count Type DesignationCountOutputType
   */

  export type DesignationCountOutputType = {
    users: number
  }

  export type DesignationCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    users?: boolean | DesignationCountOutputTypeCountUsersArgs
  }

  // Custom InputTypes
  /**
   * DesignationCountOutputType without action
   */
  export type DesignationCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DesignationCountOutputType
     */
    select?: DesignationCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * DesignationCountOutputType without action
   */
  export type DesignationCountOutputTypeCountUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserDetailWhereInput
  }


  /**
   * Count Type DepartmentCountOutputType
   */

  export type DepartmentCountOutputType = {
    users: number
  }

  export type DepartmentCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    users?: boolean | DepartmentCountOutputTypeCountUsersArgs
  }

  // Custom InputTypes
  /**
   * DepartmentCountOutputType without action
   */
  export type DepartmentCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DepartmentCountOutputType
     */
    select?: DepartmentCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * DepartmentCountOutputType without action
   */
  export type DepartmentCountOutputTypeCountUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserDetailWhereInput
  }


  /**
   * Count Type FinancialYearCountOutputType
   */

  export type FinancialYearCountOutputType = {
    document_sequence: number
  }

  export type FinancialYearCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    document_sequence?: boolean | FinancialYearCountOutputTypeCountDocument_sequenceArgs
  }

  // Custom InputTypes
  /**
   * FinancialYearCountOutputType without action
   */
  export type FinancialYearCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYearCountOutputType
     */
    select?: FinancialYearCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * FinancialYearCountOutputType without action
   */
  export type FinancialYearCountOutputTypeCountDocument_sequenceArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DocumentSequenceWhereInput
  }


  /**
   * Count Type PermissionsCountOutputType
   */

  export type PermissionsCountOutputType = {
    roles: number
    users: number
    menus: number
  }

  export type PermissionsCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    roles?: boolean | PermissionsCountOutputTypeCountRolesArgs
    users?: boolean | PermissionsCountOutputTypeCountUsersArgs
    menus?: boolean | PermissionsCountOutputTypeCountMenusArgs
  }

  // Custom InputTypes
  /**
   * PermissionsCountOutputType without action
   */
  export type PermissionsCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the PermissionsCountOutputType
     */
    select?: PermissionsCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * PermissionsCountOutputType without action
   */
  export type PermissionsCountOutputTypeCountRolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RolePermissionsWhereInput
  }

  /**
   * PermissionsCountOutputType without action
   */
  export type PermissionsCountOutputTypeCountUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserPermissionsWhereInput
  }

  /**
   * PermissionsCountOutputType without action
   */
  export type PermissionsCountOutputTypeCountMenusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenuItemsWhereInput
  }


  /**
   * Count Type RoleCountOutputType
   */

  export type RoleCountOutputType = {
    permissions: number
    users: number
  }

  export type RoleCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    permissions?: boolean | RoleCountOutputTypeCountPermissionsArgs
    users?: boolean | RoleCountOutputTypeCountUsersArgs
  }

  // Custom InputTypes
  /**
   * RoleCountOutputType without action
   */
  export type RoleCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RoleCountOutputType
     */
    select?: RoleCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * RoleCountOutputType without action
   */
  export type RoleCountOutputTypeCountPermissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RolePermissionsWhereInput
  }

  /**
   * RoleCountOutputType without action
   */
  export type RoleCountOutputTypeCountUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserRolesWhereInput
  }


  /**
   * Count Type LanguageCountOutputType
   */

  export type LanguageCountOutputType = {
    translations: number
  }

  export type LanguageCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    translations?: boolean | LanguageCountOutputTypeCountTranslationsArgs
  }

  // Custom InputTypes
  /**
   * LanguageCountOutputType without action
   */
  export type LanguageCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageCountOutputType
     */
    select?: LanguageCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * LanguageCountOutputType without action
   */
  export type LanguageCountOutputTypeCountTranslationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: LanguageContentWhereInput
  }


  /**
   * Count Type MenusCountOutputType
   */

  export type MenusCountOutputType = {
    menuitems: number
  }

  export type MenusCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    menuitems?: boolean | MenusCountOutputTypeCountMenuitemsArgs
  }

  // Custom InputTypes
  /**
   * MenusCountOutputType without action
   */
  export type MenusCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenusCountOutputType
     */
    select?: MenusCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * MenusCountOutputType without action
   */
  export type MenusCountOutputTypeCountMenuitemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenuItemsWhereInput
  }


  /**
   * Count Type MenuItemsCountOutputType
   */

  export type MenuItemsCountOutputType = {
    children: number
  }

  export type MenuItemsCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    children?: boolean | MenuItemsCountOutputTypeCountChildrenArgs
  }

  // Custom InputTypes
  /**
   * MenuItemsCountOutputType without action
   */
  export type MenuItemsCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItemsCountOutputType
     */
    select?: MenuItemsCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * MenuItemsCountOutputType without action
   */
  export type MenuItemsCountOutputTypeCountChildrenArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenuItemsWhereInput
  }


  /**
   * Count Type MasterEntityCountOutputType
   */

  export type MasterEntityCountOutputType = {
    permissions: number
    line_items: number
    menus: number
  }

  export type MasterEntityCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    permissions?: boolean | MasterEntityCountOutputTypeCountPermissionsArgs
    line_items?: boolean | MasterEntityCountOutputTypeCountLine_itemsArgs
    menus?: boolean | MasterEntityCountOutputTypeCountMenusArgs
  }

  // Custom InputTypes
  /**
   * MasterEntityCountOutputType without action
   */
  export type MasterEntityCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityCountOutputType
     */
    select?: MasterEntityCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * MasterEntityCountOutputType without action
   */
  export type MasterEntityCountOutputTypeCountPermissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: PermissionsWhereInput
  }

  /**
   * MasterEntityCountOutputType without action
   */
  export type MasterEntityCountOutputTypeCountLine_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MasterEntityLineItemWhereInput
  }

  /**
   * MasterEntityCountOutputType without action
   */
  export type MasterEntityCountOutputTypeCountMenusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenuItemsWhereInput
  }


  /**
   * Count Type FieldTypeCountOutputType
   */

  export type FieldTypeCountOutputType = {
    master_grid_lineitem: number
    importTemplateLineItem: number
    exportTemplateLineItem: number
  }

  export type FieldTypeCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    master_grid_lineitem?: boolean | FieldTypeCountOutputTypeCountMaster_grid_lineitemArgs
    importTemplateLineItem?: boolean | FieldTypeCountOutputTypeCountImportTemplateLineItemArgs
    exportTemplateLineItem?: boolean | FieldTypeCountOutputTypeCountExportTemplateLineItemArgs
  }

  // Custom InputTypes
  /**
   * FieldTypeCountOutputType without action
   */
  export type FieldTypeCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldTypeCountOutputType
     */
    select?: FieldTypeCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * FieldTypeCountOutputType without action
   */
  export type FieldTypeCountOutputTypeCountMaster_grid_lineitemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MasterEntityLineItemWhereInput
  }

  /**
   * FieldTypeCountOutputType without action
   */
  export type FieldTypeCountOutputTypeCountImportTemplateLineItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateLineItemWhereInput
  }

  /**
   * FieldTypeCountOutputType without action
   */
  export type FieldTypeCountOutputTypeCountExportTemplateLineItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateLineItemWhereInput
  }


  /**
   * Count Type EmailTemplateProcessCountOutputType
   */

  export type EmailTemplateProcessCountOutputType = {
    email_template_groups: number
    email_templates: number
    email_template_assignments: number
  }

  export type EmailTemplateProcessCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    email_template_groups?: boolean | EmailTemplateProcessCountOutputTypeCountEmail_template_groupsArgs
    email_templates?: boolean | EmailTemplateProcessCountOutputTypeCountEmail_templatesArgs
    email_template_assignments?: boolean | EmailTemplateProcessCountOutputTypeCountEmail_template_assignmentsArgs
  }

  // Custom InputTypes
  /**
   * EmailTemplateProcessCountOutputType without action
   */
  export type EmailTemplateProcessCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessCountOutputType
     */
    select?: EmailTemplateProcessCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * EmailTemplateProcessCountOutputType without action
   */
  export type EmailTemplateProcessCountOutputTypeCountEmail_template_groupsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateProcessTagsMappingWhereInput
  }

  /**
   * EmailTemplateProcessCountOutputType without action
   */
  export type EmailTemplateProcessCountOutputTypeCountEmail_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateWhereInput
  }

  /**
   * EmailTemplateProcessCountOutputType without action
   */
  export type EmailTemplateProcessCountOutputTypeCountEmail_template_assignmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateAssignmentWhereInput
  }


  /**
   * Count Type EmailTemplateTagCountOutputType
   */

  export type EmailTemplateTagCountOutputType = {
    email_template_groups: number
  }

  export type EmailTemplateTagCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    email_template_groups?: boolean | EmailTemplateTagCountOutputTypeCountEmail_template_groupsArgs
  }

  // Custom InputTypes
  /**
   * EmailTemplateTagCountOutputType without action
   */
  export type EmailTemplateTagCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTagCountOutputType
     */
    select?: EmailTemplateTagCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * EmailTemplateTagCountOutputType without action
   */
  export type EmailTemplateTagCountOutputTypeCountEmail_template_groupsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateProcessTagsMappingWhereInput
  }


  /**
   * Count Type EmailTemplateCountOutputType
   */

  export type EmailTemplateCountOutputType = {
    email_template_assignments: number
  }

  export type EmailTemplateCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    email_template_assignments?: boolean | EmailTemplateCountOutputTypeCountEmail_template_assignmentsArgs
  }

  // Custom InputTypes
  /**
   * EmailTemplateCountOutputType without action
   */
  export type EmailTemplateCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateCountOutputType
     */
    select?: EmailTemplateCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * EmailTemplateCountOutputType without action
   */
  export type EmailTemplateCountOutputTypeCountEmail_template_assignmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateAssignmentWhereInput
  }


  /**
   * Count Type ImportTemplateCountOutputType
   */

  export type ImportTemplateCountOutputType = {
    line_items: number
    queries: number
  }

  export type ImportTemplateCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    line_items?: boolean | ImportTemplateCountOutputTypeCountLine_itemsArgs
    queries?: boolean | ImportTemplateCountOutputTypeCountQueriesArgs
  }

  // Custom InputTypes
  /**
   * ImportTemplateCountOutputType without action
   */
  export type ImportTemplateCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateCountOutputType
     */
    select?: ImportTemplateCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * ImportTemplateCountOutputType without action
   */
  export type ImportTemplateCountOutputTypeCountLine_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateLineItemWhereInput
  }

  /**
   * ImportTemplateCountOutputType without action
   */
  export type ImportTemplateCountOutputTypeCountQueriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateQueriesWhereInput
  }


  /**
   * Count Type ImportJobCountOutputType
   */

  export type ImportJobCountOutputType = {
    line_items: number
  }

  export type ImportJobCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    line_items?: boolean | ImportJobCountOutputTypeCountLine_itemsArgs
  }

  // Custom InputTypes
  /**
   * ImportJobCountOutputType without action
   */
  export type ImportJobCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobCountOutputType
     */
    select?: ImportJobCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * ImportJobCountOutputType without action
   */
  export type ImportJobCountOutputTypeCountLine_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportJobLineItemWhereInput
  }


  /**
   * Count Type ExportTemplateCountOutputType
   */

  export type ExportTemplateCountOutputType = {
    line_items: number
    queries: number
  }

  export type ExportTemplateCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    line_items?: boolean | ExportTemplateCountOutputTypeCountLine_itemsArgs
    queries?: boolean | ExportTemplateCountOutputTypeCountQueriesArgs
  }

  // Custom InputTypes
  /**
   * ExportTemplateCountOutputType without action
   */
  export type ExportTemplateCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateCountOutputType
     */
    select?: ExportTemplateCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * ExportTemplateCountOutputType without action
   */
  export type ExportTemplateCountOutputTypeCountLine_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateLineItemWhereInput
  }

  /**
   * ExportTemplateCountOutputType without action
   */
  export type ExportTemplateCountOutputTypeCountQueriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateQueriesWhereInput
  }


  /**
   * Count Type StatusCountOutputType
   */

  export type StatusCountOutputType = {
    status_list: number
    users: number
    request_logs: number
    permissions: number
    roles: number
    languages: number
    language_contents: number
    menuitems: number
    menus: number
    master_grids: number
    master_grid_line_items: number
    field_types: number
    menu_types: number
    email_template_processes: number
    email_template_tags: number
    email_template_receiver_tags: number
    email_templates: number
    email_process_jobs: number
    notification_job: number
    import_templates: number
    import_template_line_items: number
    import_template_queries: number
    export_templates: number
    export_template_line_items: number
    export_template_queries: number
    designations: number
    departments: number
    audit_logs: number
    financial_years: number
    document_sequences: number
    file_upload_logs: number
    device_registration: number
    import_job: number
    import_job_line_items: number
  }

  export type StatusCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status_list?: boolean | StatusCountOutputTypeCountStatus_listArgs
    users?: boolean | StatusCountOutputTypeCountUsersArgs
    request_logs?: boolean | StatusCountOutputTypeCountRequest_logsArgs
    permissions?: boolean | StatusCountOutputTypeCountPermissionsArgs
    roles?: boolean | StatusCountOutputTypeCountRolesArgs
    languages?: boolean | StatusCountOutputTypeCountLanguagesArgs
    language_contents?: boolean | StatusCountOutputTypeCountLanguage_contentsArgs
    menuitems?: boolean | StatusCountOutputTypeCountMenuitemsArgs
    menus?: boolean | StatusCountOutputTypeCountMenusArgs
    master_grids?: boolean | StatusCountOutputTypeCountMaster_gridsArgs
    master_grid_line_items?: boolean | StatusCountOutputTypeCountMaster_grid_line_itemsArgs
    field_types?: boolean | StatusCountOutputTypeCountField_typesArgs
    menu_types?: boolean | StatusCountOutputTypeCountMenu_typesArgs
    email_template_processes?: boolean | StatusCountOutputTypeCountEmail_template_processesArgs
    email_template_tags?: boolean | StatusCountOutputTypeCountEmail_template_tagsArgs
    email_template_receiver_tags?: boolean | StatusCountOutputTypeCountEmail_template_receiver_tagsArgs
    email_templates?: boolean | StatusCountOutputTypeCountEmail_templatesArgs
    email_process_jobs?: boolean | StatusCountOutputTypeCountEmail_process_jobsArgs
    notification_job?: boolean | StatusCountOutputTypeCountNotification_jobArgs
    import_templates?: boolean | StatusCountOutputTypeCountImport_templatesArgs
    import_template_line_items?: boolean | StatusCountOutputTypeCountImport_template_line_itemsArgs
    import_template_queries?: boolean | StatusCountOutputTypeCountImport_template_queriesArgs
    export_templates?: boolean | StatusCountOutputTypeCountExport_templatesArgs
    export_template_line_items?: boolean | StatusCountOutputTypeCountExport_template_line_itemsArgs
    export_template_queries?: boolean | StatusCountOutputTypeCountExport_template_queriesArgs
    designations?: boolean | StatusCountOutputTypeCountDesignationsArgs
    departments?: boolean | StatusCountOutputTypeCountDepartmentsArgs
    audit_logs?: boolean | StatusCountOutputTypeCountAudit_logsArgs
    financial_years?: boolean | StatusCountOutputTypeCountFinancial_yearsArgs
    document_sequences?: boolean | StatusCountOutputTypeCountDocument_sequencesArgs
    file_upload_logs?: boolean | StatusCountOutputTypeCountFile_upload_logsArgs
    device_registration?: boolean | StatusCountOutputTypeCountDevice_registrationArgs
    import_job?: boolean | StatusCountOutputTypeCountImport_jobArgs
    import_job_line_items?: boolean | StatusCountOutputTypeCountImport_job_line_itemsArgs
  }

  // Custom InputTypes
  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the StatusCountOutputType
     */
    select?: StatusCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountStatus_listArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: StatusWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountUsersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountRequest_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RequestLogWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountPermissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: PermissionsWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountRolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RoleWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountLanguagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: LanguageWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountLanguage_contentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: LanguageContentWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountMenuitemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenuItemsWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountMenusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenusWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountMaster_gridsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MasterEntityWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountMaster_grid_line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MasterEntityLineItemWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountField_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: FieldTypeWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountMenu_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: menuTypeWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountEmail_template_processesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateProcessWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountEmail_template_tagsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateTagWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountEmail_template_receiver_tagsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateRecipientTagWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountEmail_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountEmail_process_jobsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailProcessJobWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountNotification_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: NotificationJobWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountImport_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountImport_template_line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateLineItemWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountImport_template_queriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateQueriesWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountExport_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountExport_template_line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateLineItemWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountExport_template_queriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateQueriesWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountDesignationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DesignationWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountDepartmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DepartmentWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountAudit_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: AuditLogWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountFinancial_yearsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: FinancialYearWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountDocument_sequencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DocumentSequenceWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountFile_upload_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: FileUploadLogWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountDevice_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DeviceRegistrationWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountImport_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportJobWhereInput
  }

  /**
   * StatusCountOutputType without action
   */
  export type StatusCountOutputTypeCountImport_job_line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportJobLineItemWhereInput
  }


  /**
   * Count Type CategoryTypesCountOutputType
   */

  export type CategoryTypesCountOutputType = {
    categories: number
  }

  export type CategoryTypesCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    categories?: boolean | CategoryTypesCountOutputTypeCountCategoriesArgs
  }

  // Custom InputTypes
  /**
   * CategoryTypesCountOutputType without action
   */
  export type CategoryTypesCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypesCountOutputType
     */
    select?: CategoryTypesCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * CategoryTypesCountOutputType without action
   */
  export type CategoryTypesCountOutputTypeCountCategoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoriesWhereInput
  }


  /**
   * Count Type CategoriesCountOutputType
   */

  export type CategoriesCountOutputType = {
    subcategories: number
    configurations: number
  }

  export type CategoriesCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    subcategories?: boolean | CategoriesCountOutputTypeCountSubcategoriesArgs
    configurations?: boolean | CategoriesCountOutputTypeCountConfigurationsArgs
  }

  // Custom InputTypes
  /**
   * CategoriesCountOutputType without action
   */
  export type CategoriesCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoriesCountOutputType
     */
    select?: CategoriesCountOutputTypeSelect<ExtArgs> | null
  }

  /**
   * CategoriesCountOutputType without action
   */
  export type CategoriesCountOutputTypeCountSubcategoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoriesWhereInput
  }

  /**
   * CategoriesCountOutputType without action
   */
  export type CategoriesCountOutputTypeCountConfigurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ConfigurationsWhereInput
  }


  /**
   * 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
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type UserSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type UserMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    username: string | null
    email: string | null
    email_verified: boolean | null
    password: string | null
    status_id: number | null
    role: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
    last_login: Date | null
    last_login_device: string | null
  }

  export type UserMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    username: string | null
    email: string | null
    email_verified: boolean | null
    password: string | null
    status_id: number | null
    role: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
    last_login: Date | null
    last_login_device: string | null
  }

  export type UserCountAggregateOutputType = {
    id: number
    uuid: number
    username: number
    email: number
    email_verified: number
    password: number
    status_id: number
    role: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    last_login: number
    last_login_device: number
    _all: number
  }


  export type UserAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type UserSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type UserMinAggregateInputType = {
    id?: true
    uuid?: true
    username?: true
    email?: true
    email_verified?: true
    password?: true
    status_id?: true
    role?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    last_login?: true
    last_login_device?: true
  }

  export type UserMaxAggregateInputType = {
    id?: true
    uuid?: true
    username?: true
    email?: true
    email_verified?: true
    password?: true
    status_id?: true
    role?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    last_login?: true
    last_login_device?: true
  }

  export type UserCountAggregateInputType = {
    id?: true
    uuid?: true
    username?: true
    email?: true
    email_verified?: true
    password?: true
    status_id?: true
    role?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    last_login?: true
    last_login_device?: true
    _all?: true
  }

  export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * 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<T extends UserAggregateArgs> = {
        [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateUser[P]>
      : GetScalarType<T[P], AggregateUser[P]>
  }




  export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    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
    uuid: string
    username: string
    email: string
    email_verified: boolean
    password: string | null
    status_id: number
    role: string
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    last_login: Date | null
    last_login_device: string | null
    _count: UserCountAggregateOutputType | null
    _avg: UserAvgAggregateOutputType | null
    _sum: UserSumAggregateOutputType | null
    _min: UserMinAggregateOutputType | null
    _max: UserMaxAggregateOutputType | null
  }

  type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<UserGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], UserGroupByOutputType[P]>
            : GetScalarType<T[P], UserGroupByOutputType[P]>
        }
      >
    >


  export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    username?: boolean
    email?: boolean
    email_verified?: boolean
    password?: boolean
    status_id?: boolean
    role?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    last_login?: boolean
    last_login_device?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    user_detail?: boolean | User$user_detailArgs<ExtArgs>
    request_logs?: boolean | User$request_logsArgs<ExtArgs>
    roles?: boolean | User$rolesArgs<ExtArgs>
    permissions?: boolean | User$permissionsArgs<ExtArgs>
    otps?: boolean | User$otpsArgs<ExtArgs>
    created?: boolean | User$createdArgs<ExtArgs>
    updated?: boolean | User$updatedArgs<ExtArgs>
    deleted?: boolean | User$deletedArgs<ExtArgs>
    created_users?: boolean | User$created_usersArgs<ExtArgs>
    updated_users?: boolean | User$updated_usersArgs<ExtArgs>
    deleted_users?: boolean | User$deleted_usersArgs<ExtArgs>
    created_user_details?: boolean | User$created_user_detailsArgs<ExtArgs>
    updated_user_details?: boolean | User$updated_user_detailsArgs<ExtArgs>
    deleted_user_details?: boolean | User$deleted_user_detailsArgs<ExtArgs>
    created_roles?: boolean | User$created_rolesArgs<ExtArgs>
    updated_roles?: boolean | User$updated_rolesArgs<ExtArgs>
    deleted_roles?: boolean | User$deleted_rolesArgs<ExtArgs>
    created_languages?: boolean | User$created_languagesArgs<ExtArgs>
    updated_languages?: boolean | User$updated_languagesArgs<ExtArgs>
    deleted_languages?: boolean | User$deleted_languagesArgs<ExtArgs>
    created_menus?: boolean | User$created_menusArgs<ExtArgs>
    updated_menus?: boolean | User$updated_menusArgs<ExtArgs>
    deleted_menus?: boolean | User$deleted_menusArgs<ExtArgs>
    created_menu_items?: boolean | User$created_menu_itemsArgs<ExtArgs>
    updated_menu_items?: boolean | User$updated_menu_itemsArgs<ExtArgs>
    deleted_menu_items?: boolean | User$deleted_menu_itemsArgs<ExtArgs>
    created_email_templates?: boolean | User$created_email_templatesArgs<ExtArgs>
    updated_email_templates?: boolean | User$updated_email_templatesArgs<ExtArgs>
    deleted_email_templates?: boolean | User$deleted_email_templatesArgs<ExtArgs>
    created_email_template_assignments?: boolean | User$created_email_template_assignmentsArgs<ExtArgs>
    created_email_process_jobs?: boolean | User$created_email_process_jobsArgs<ExtArgs>
    created_notification_job?: boolean | User$created_notification_jobArgs<ExtArgs>
    created_import_templates?: boolean | User$created_import_templatesArgs<ExtArgs>
    updated_import_templates?: boolean | User$updated_import_templatesArgs<ExtArgs>
    deleted_import_templates?: boolean | User$deleted_import_templatesArgs<ExtArgs>
    created_export_templates?: boolean | User$created_export_templatesArgs<ExtArgs>
    updated_export_templates?: boolean | User$updated_export_templatesArgs<ExtArgs>
    deleted_export_templates?: boolean | User$deleted_export_templatesArgs<ExtArgs>
    created_departments?: boolean | User$created_departmentsArgs<ExtArgs>
    head_departments?: boolean | User$head_departmentsArgs<ExtArgs>
    updated_departments?: boolean | User$updated_departmentsArgs<ExtArgs>
    deleted_departments?: boolean | User$deleted_departmentsArgs<ExtArgs>
    created_designations?: boolean | User$created_designationsArgs<ExtArgs>
    updated_designations?: boolean | User$updated_designationsArgs<ExtArgs>
    deleted_designations?: boolean | User$deleted_designationsArgs<ExtArgs>
    audit_logs?: boolean | User$audit_logsArgs<ExtArgs>
    created_category_types?: boolean | User$created_category_typesArgs<ExtArgs>
    updated_category_types?: boolean | User$updated_category_typesArgs<ExtArgs>
    deleted_category_types?: boolean | User$deleted_category_typesArgs<ExtArgs>
    created_categories?: boolean | User$created_categoriesArgs<ExtArgs>
    updated_categories?: boolean | User$updated_categoriesArgs<ExtArgs>
    deleted_categories?: boolean | User$deleted_categoriesArgs<ExtArgs>
    created_configurations?: boolean | User$created_configurationsArgs<ExtArgs>
    updated_configurations?: boolean | User$updated_configurationsArgs<ExtArgs>
    deleted_configurations?: boolean | User$deleted_configurationsArgs<ExtArgs>
    created_fin_years?: boolean | User$created_fin_yearsArgs<ExtArgs>
    updated_fin_years?: boolean | User$updated_fin_yearsArgs<ExtArgs>
    deleted_fin_years?: boolean | User$deleted_fin_yearsArgs<ExtArgs>
    created_doc_sequences?: boolean | User$created_doc_sequencesArgs<ExtArgs>
    updated_doc_sequences?: boolean | User$updated_doc_sequencesArgs<ExtArgs>
    deleted_doc_sequences?: boolean | User$deleted_doc_sequencesArgs<ExtArgs>
    created_device_registration?: boolean | User$created_device_registrationArgs<ExtArgs>
    updated_device_registration?: boolean | User$updated_device_registrationArgs<ExtArgs>
    deleted_device_registration?: boolean | User$deleted_device_registrationArgs<ExtArgs>
    DeviceRegistration?: boolean | User$DeviceRegistrationArgs<ExtArgs>
    created_import_job?: boolean | User$created_import_jobArgs<ExtArgs>
    updated_import_job?: boolean | User$updated_import_jobArgs<ExtArgs>
    deleted_import_job?: boolean | User$deleted_import_jobArgs<ExtArgs>
    _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["user"]>


  export type UserSelectScalar = {
    id?: boolean
    uuid?: boolean
    username?: boolean
    email?: boolean
    email_verified?: boolean
    password?: boolean
    status_id?: boolean
    role?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    last_login?: boolean
    last_login_device?: boolean
  }

  export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    user_detail?: boolean | User$user_detailArgs<ExtArgs>
    request_logs?: boolean | User$request_logsArgs<ExtArgs>
    roles?: boolean | User$rolesArgs<ExtArgs>
    permissions?: boolean | User$permissionsArgs<ExtArgs>
    otps?: boolean | User$otpsArgs<ExtArgs>
    created?: boolean | User$createdArgs<ExtArgs>
    updated?: boolean | User$updatedArgs<ExtArgs>
    deleted?: boolean | User$deletedArgs<ExtArgs>
    created_users?: boolean | User$created_usersArgs<ExtArgs>
    updated_users?: boolean | User$updated_usersArgs<ExtArgs>
    deleted_users?: boolean | User$deleted_usersArgs<ExtArgs>
    created_user_details?: boolean | User$created_user_detailsArgs<ExtArgs>
    updated_user_details?: boolean | User$updated_user_detailsArgs<ExtArgs>
    deleted_user_details?: boolean | User$deleted_user_detailsArgs<ExtArgs>
    created_roles?: boolean | User$created_rolesArgs<ExtArgs>
    updated_roles?: boolean | User$updated_rolesArgs<ExtArgs>
    deleted_roles?: boolean | User$deleted_rolesArgs<ExtArgs>
    created_languages?: boolean | User$created_languagesArgs<ExtArgs>
    updated_languages?: boolean | User$updated_languagesArgs<ExtArgs>
    deleted_languages?: boolean | User$deleted_languagesArgs<ExtArgs>
    created_menus?: boolean | User$created_menusArgs<ExtArgs>
    updated_menus?: boolean | User$updated_menusArgs<ExtArgs>
    deleted_menus?: boolean | User$deleted_menusArgs<ExtArgs>
    created_menu_items?: boolean | User$created_menu_itemsArgs<ExtArgs>
    updated_menu_items?: boolean | User$updated_menu_itemsArgs<ExtArgs>
    deleted_menu_items?: boolean | User$deleted_menu_itemsArgs<ExtArgs>
    created_email_templates?: boolean | User$created_email_templatesArgs<ExtArgs>
    updated_email_templates?: boolean | User$updated_email_templatesArgs<ExtArgs>
    deleted_email_templates?: boolean | User$deleted_email_templatesArgs<ExtArgs>
    created_email_template_assignments?: boolean | User$created_email_template_assignmentsArgs<ExtArgs>
    created_email_process_jobs?: boolean | User$created_email_process_jobsArgs<ExtArgs>
    created_notification_job?: boolean | User$created_notification_jobArgs<ExtArgs>
    created_import_templates?: boolean | User$created_import_templatesArgs<ExtArgs>
    updated_import_templates?: boolean | User$updated_import_templatesArgs<ExtArgs>
    deleted_import_templates?: boolean | User$deleted_import_templatesArgs<ExtArgs>
    created_export_templates?: boolean | User$created_export_templatesArgs<ExtArgs>
    updated_export_templates?: boolean | User$updated_export_templatesArgs<ExtArgs>
    deleted_export_templates?: boolean | User$deleted_export_templatesArgs<ExtArgs>
    created_departments?: boolean | User$created_departmentsArgs<ExtArgs>
    head_departments?: boolean | User$head_departmentsArgs<ExtArgs>
    updated_departments?: boolean | User$updated_departmentsArgs<ExtArgs>
    deleted_departments?: boolean | User$deleted_departmentsArgs<ExtArgs>
    created_designations?: boolean | User$created_designationsArgs<ExtArgs>
    updated_designations?: boolean | User$updated_designationsArgs<ExtArgs>
    deleted_designations?: boolean | User$deleted_designationsArgs<ExtArgs>
    audit_logs?: boolean | User$audit_logsArgs<ExtArgs>
    created_category_types?: boolean | User$created_category_typesArgs<ExtArgs>
    updated_category_types?: boolean | User$updated_category_typesArgs<ExtArgs>
    deleted_category_types?: boolean | User$deleted_category_typesArgs<ExtArgs>
    created_categories?: boolean | User$created_categoriesArgs<ExtArgs>
    updated_categories?: boolean | User$updated_categoriesArgs<ExtArgs>
    deleted_categories?: boolean | User$deleted_categoriesArgs<ExtArgs>
    created_configurations?: boolean | User$created_configurationsArgs<ExtArgs>
    updated_configurations?: boolean | User$updated_configurationsArgs<ExtArgs>
    deleted_configurations?: boolean | User$deleted_configurationsArgs<ExtArgs>
    created_fin_years?: boolean | User$created_fin_yearsArgs<ExtArgs>
    updated_fin_years?: boolean | User$updated_fin_yearsArgs<ExtArgs>
    deleted_fin_years?: boolean | User$deleted_fin_yearsArgs<ExtArgs>
    created_doc_sequences?: boolean | User$created_doc_sequencesArgs<ExtArgs>
    updated_doc_sequences?: boolean | User$updated_doc_sequencesArgs<ExtArgs>
    deleted_doc_sequences?: boolean | User$deleted_doc_sequencesArgs<ExtArgs>
    created_device_registration?: boolean | User$created_device_registrationArgs<ExtArgs>
    updated_device_registration?: boolean | User$updated_device_registrationArgs<ExtArgs>
    deleted_device_registration?: boolean | User$deleted_device_registrationArgs<ExtArgs>
    DeviceRegistration?: boolean | User$DeviceRegistrationArgs<ExtArgs>
    created_import_job?: boolean | User$created_import_jobArgs<ExtArgs>
    updated_import_job?: boolean | User$updated_import_jobArgs<ExtArgs>
    deleted_import_job?: boolean | User$deleted_import_jobArgs<ExtArgs>
    _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "User"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      user_detail: Prisma.$UserDetailPayload<ExtArgs> | null
      request_logs: Prisma.$RequestLogPayload<ExtArgs>[]
      roles: Prisma.$UserRolesPayload<ExtArgs>[]
      permissions: Prisma.$UserPermissionsPayload<ExtArgs>[]
      otps: Prisma.$OtpPayload<ExtArgs>[]
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
      created_users: Prisma.$UserPayload<ExtArgs>[]
      updated_users: Prisma.$UserPayload<ExtArgs>[]
      deleted_users: Prisma.$UserPayload<ExtArgs>[]
      created_user_details: Prisma.$UserDetailPayload<ExtArgs>[]
      updated_user_details: Prisma.$UserDetailPayload<ExtArgs>[]
      deleted_user_details: Prisma.$UserDetailPayload<ExtArgs>[]
      created_roles: Prisma.$RolePayload<ExtArgs>[]
      updated_roles: Prisma.$RolePayload<ExtArgs>[]
      deleted_roles: Prisma.$RolePayload<ExtArgs>[]
      created_languages: Prisma.$LanguagePayload<ExtArgs>[]
      updated_languages: Prisma.$LanguagePayload<ExtArgs>[]
      deleted_languages: Prisma.$LanguagePayload<ExtArgs>[]
      created_menus: Prisma.$MenusPayload<ExtArgs>[]
      updated_menus: Prisma.$MenusPayload<ExtArgs>[]
      deleted_menus: Prisma.$MenusPayload<ExtArgs>[]
      created_menu_items: Prisma.$MenuItemsPayload<ExtArgs>[]
      updated_menu_items: Prisma.$MenuItemsPayload<ExtArgs>[]
      deleted_menu_items: Prisma.$MenuItemsPayload<ExtArgs>[]
      created_email_templates: Prisma.$EmailTemplatePayload<ExtArgs>[]
      updated_email_templates: Prisma.$EmailTemplatePayload<ExtArgs>[]
      deleted_email_templates: Prisma.$EmailTemplatePayload<ExtArgs>[]
      created_email_template_assignments: Prisma.$EmailTemplateAssignmentPayload<ExtArgs>[]
      created_email_process_jobs: Prisma.$EmailProcessJobPayload<ExtArgs>[]
      created_notification_job: Prisma.$NotificationJobPayload<ExtArgs>[]
      created_import_templates: Prisma.$ImportTemplatePayload<ExtArgs>[]
      updated_import_templates: Prisma.$ImportTemplatePayload<ExtArgs>[]
      deleted_import_templates: Prisma.$ImportTemplatePayload<ExtArgs>[]
      created_export_templates: Prisma.$ExportTemplatePayload<ExtArgs>[]
      updated_export_templates: Prisma.$ExportTemplatePayload<ExtArgs>[]
      deleted_export_templates: Prisma.$ExportTemplatePayload<ExtArgs>[]
      created_departments: Prisma.$DepartmentPayload<ExtArgs>[]
      head_departments: Prisma.$DepartmentPayload<ExtArgs>[]
      updated_departments: Prisma.$DepartmentPayload<ExtArgs>[]
      deleted_departments: Prisma.$DepartmentPayload<ExtArgs>[]
      created_designations: Prisma.$DesignationPayload<ExtArgs>[]
      updated_designations: Prisma.$DesignationPayload<ExtArgs>[]
      deleted_designations: Prisma.$DesignationPayload<ExtArgs>[]
      audit_logs: Prisma.$AuditLogPayload<ExtArgs>[]
      created_category_types: Prisma.$CategoryTypesPayload<ExtArgs>[]
      updated_category_types: Prisma.$CategoryTypesPayload<ExtArgs>[]
      deleted_category_types: Prisma.$CategoryTypesPayload<ExtArgs>[]
      created_categories: Prisma.$CategoriesPayload<ExtArgs>[]
      updated_categories: Prisma.$CategoriesPayload<ExtArgs>[]
      deleted_categories: Prisma.$CategoriesPayload<ExtArgs>[]
      created_configurations: Prisma.$ConfigurationsPayload<ExtArgs>[]
      updated_configurations: Prisma.$ConfigurationsPayload<ExtArgs>[]
      deleted_configurations: Prisma.$ConfigurationsPayload<ExtArgs>[]
      created_fin_years: Prisma.$FinancialYearPayload<ExtArgs>[]
      updated_fin_years: Prisma.$FinancialYearPayload<ExtArgs>[]
      deleted_fin_years: Prisma.$FinancialYearPayload<ExtArgs>[]
      created_doc_sequences: Prisma.$DocumentSequencePayload<ExtArgs>[]
      updated_doc_sequences: Prisma.$DocumentSequencePayload<ExtArgs>[]
      deleted_doc_sequences: Prisma.$DocumentSequencePayload<ExtArgs>[]
      created_device_registration: Prisma.$DeviceRegistrationPayload<ExtArgs>[]
      updated_device_registration: Prisma.$DeviceRegistrationPayload<ExtArgs>[]
      deleted_device_registration: Prisma.$DeviceRegistrationPayload<ExtArgs>[]
      DeviceRegistration: Prisma.$DeviceRegistrationPayload<ExtArgs>[]
      created_import_job: Prisma.$ImportJobPayload<ExtArgs>[]
      updated_import_job: Prisma.$ImportJobPayload<ExtArgs>[]
      deleted_import_job: Prisma.$ImportJobPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      username: string
      email: string
      email_verified: boolean
      password: string | null
      status_id: number
      role: string
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
      last_login: Date | null
      last_login_device: string | null
    }, ExtArgs["result"]["user"]>
    composites: {}
  }

  type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>

  type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<UserFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: UserCountAggregateInputType | true
    }

  export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * 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<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * 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<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * 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<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * 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<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany">>

    /**
     * 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<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * 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<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * 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<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * 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<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * 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<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * 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<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * 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<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * 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<T extends UserCountArgs>(
      args?: Subset<T, UserCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], UserCountAggregateOutputType>
        : 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<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>

    /**
     * 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<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: UserGroupByArgs['orderBy'] }
        : { orderBy?: UserGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * 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<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    user_detail<T extends User$user_detailArgs<ExtArgs> = {}>(args?: Subset<T, User$user_detailArgs<ExtArgs>>): Prisma__UserDetailClient<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    request_logs<T extends User$request_logsArgs<ExtArgs> = {}>(args?: Subset<T, User$request_logsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "findMany"> | Null>
    roles<T extends User$rolesArgs<ExtArgs> = {}>(args?: Subset<T, User$rolesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "findMany"> | Null>
    permissions<T extends User$permissionsArgs<ExtArgs> = {}>(args?: Subset<T, User$permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "findMany"> | Null>
    otps<T extends User$otpsArgs<ExtArgs> = {}>(args?: Subset<T, User$otpsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "findMany"> | Null>
    created<T extends User$createdArgs<ExtArgs> = {}>(args?: Subset<T, User$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends User$updatedArgs<ExtArgs> = {}>(args?: Subset<T, User$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends User$deletedArgs<ExtArgs> = {}>(args?: Subset<T, User$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    created_users<T extends User$created_usersArgs<ExtArgs> = {}>(args?: Subset<T, User$created_usersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany"> | Null>
    updated_users<T extends User$updated_usersArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_usersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_users<T extends User$deleted_usersArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_usersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany"> | Null>
    created_user_details<T extends User$created_user_detailsArgs<ExtArgs> = {}>(args?: Subset<T, User$created_user_detailsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findMany"> | Null>
    updated_user_details<T extends User$updated_user_detailsArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_user_detailsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_user_details<T extends User$deleted_user_detailsArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_user_detailsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findMany"> | Null>
    created_roles<T extends User$created_rolesArgs<ExtArgs> = {}>(args?: Subset<T, User$created_rolesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany"> | Null>
    updated_roles<T extends User$updated_rolesArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_rolesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany"> | Null>
    deleted_roles<T extends User$deleted_rolesArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_rolesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany"> | Null>
    created_languages<T extends User$created_languagesArgs<ExtArgs> = {}>(args?: Subset<T, User$created_languagesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findMany"> | Null>
    updated_languages<T extends User$updated_languagesArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_languagesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findMany"> | Null>
    deleted_languages<T extends User$deleted_languagesArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_languagesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findMany"> | Null>
    created_menus<T extends User$created_menusArgs<ExtArgs> = {}>(args?: Subset<T, User$created_menusArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findMany"> | Null>
    updated_menus<T extends User$updated_menusArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_menusArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_menus<T extends User$deleted_menusArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_menusArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findMany"> | Null>
    created_menu_items<T extends User$created_menu_itemsArgs<ExtArgs> = {}>(args?: Subset<T, User$created_menu_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findMany"> | Null>
    updated_menu_items<T extends User$updated_menu_itemsArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_menu_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_menu_items<T extends User$deleted_menu_itemsArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_menu_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findMany"> | Null>
    created_email_templates<T extends User$created_email_templatesArgs<ExtArgs> = {}>(args?: Subset<T, User$created_email_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    updated_email_templates<T extends User$updated_email_templatesArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_email_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    deleted_email_templates<T extends User$deleted_email_templatesArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_email_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    created_email_template_assignments<T extends User$created_email_template_assignmentsArgs<ExtArgs> = {}>(args?: Subset<T, User$created_email_template_assignmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "findMany"> | Null>
    created_email_process_jobs<T extends User$created_email_process_jobsArgs<ExtArgs> = {}>(args?: Subset<T, User$created_email_process_jobsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "findMany"> | Null>
    created_notification_job<T extends User$created_notification_jobArgs<ExtArgs> = {}>(args?: Subset<T, User$created_notification_jobArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "findMany"> | Null>
    created_import_templates<T extends User$created_import_templatesArgs<ExtArgs> = {}>(args?: Subset<T, User$created_import_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    updated_import_templates<T extends User$updated_import_templatesArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_import_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    deleted_import_templates<T extends User$deleted_import_templatesArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_import_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    created_export_templates<T extends User$created_export_templatesArgs<ExtArgs> = {}>(args?: Subset<T, User$created_export_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    updated_export_templates<T extends User$updated_export_templatesArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_export_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    deleted_export_templates<T extends User$deleted_export_templatesArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_export_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    created_departments<T extends User$created_departmentsArgs<ExtArgs> = {}>(args?: Subset<T, User$created_departmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findMany"> | Null>
    head_departments<T extends User$head_departmentsArgs<ExtArgs> = {}>(args?: Subset<T, User$head_departmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findMany"> | Null>
    updated_departments<T extends User$updated_departmentsArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_departmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_departments<T extends User$deleted_departmentsArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_departmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findMany"> | Null>
    created_designations<T extends User$created_designationsArgs<ExtArgs> = {}>(args?: Subset<T, User$created_designationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findMany"> | Null>
    updated_designations<T extends User$updated_designationsArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_designationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_designations<T extends User$deleted_designationsArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_designationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findMany"> | Null>
    audit_logs<T extends User$audit_logsArgs<ExtArgs> = {}>(args?: Subset<T, User$audit_logsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany"> | Null>
    created_category_types<T extends User$created_category_typesArgs<ExtArgs> = {}>(args?: Subset<T, User$created_category_typesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "findMany"> | Null>
    updated_category_types<T extends User$updated_category_typesArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_category_typesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_category_types<T extends User$deleted_category_typesArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_category_typesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "findMany"> | Null>
    created_categories<T extends User$created_categoriesArgs<ExtArgs> = {}>(args?: Subset<T, User$created_categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findMany"> | Null>
    updated_categories<T extends User$updated_categoriesArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_categories<T extends User$deleted_categoriesArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findMany"> | Null>
    created_configurations<T extends User$created_configurationsArgs<ExtArgs> = {}>(args?: Subset<T, User$created_configurationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "findMany"> | Null>
    updated_configurations<T extends User$updated_configurationsArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_configurationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_configurations<T extends User$deleted_configurationsArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_configurationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "findMany"> | Null>
    created_fin_years<T extends User$created_fin_yearsArgs<ExtArgs> = {}>(args?: Subset<T, User$created_fin_yearsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findMany"> | Null>
    updated_fin_years<T extends User$updated_fin_yearsArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_fin_yearsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_fin_years<T extends User$deleted_fin_yearsArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_fin_yearsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findMany"> | Null>
    created_doc_sequences<T extends User$created_doc_sequencesArgs<ExtArgs> = {}>(args?: Subset<T, User$created_doc_sequencesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findMany"> | Null>
    updated_doc_sequences<T extends User$updated_doc_sequencesArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_doc_sequencesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findMany"> | Null>
    deleted_doc_sequences<T extends User$deleted_doc_sequencesArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_doc_sequencesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findMany"> | Null>
    created_device_registration<T extends User$created_device_registrationArgs<ExtArgs> = {}>(args?: Subset<T, User$created_device_registrationArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findMany"> | Null>
    updated_device_registration<T extends User$updated_device_registrationArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_device_registrationArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_device_registration<T extends User$deleted_device_registrationArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_device_registrationArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findMany"> | Null>
    DeviceRegistration<T extends User$DeviceRegistrationArgs<ExtArgs> = {}>(args?: Subset<T, User$DeviceRegistrationArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findMany"> | Null>
    created_import_job<T extends User$created_import_jobArgs<ExtArgs> = {}>(args?: Subset<T, User$created_import_jobArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findMany"> | Null>
    updated_import_job<T extends User$updated_import_jobArgs<ExtArgs> = {}>(args?: Subset<T, User$updated_import_jobArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findMany"> | Null>
    deleted_import_job<T extends User$deleted_import_jobArgs<ExtArgs> = {}>(args?: Subset<T, User$deleted_import_jobArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the User model
   */ 
  interface UserFieldRefs {
    readonly id: FieldRef<"User", 'Int'>
    readonly uuid: FieldRef<"User", 'String'>
    readonly username: FieldRef<"User", 'String'>
    readonly email: FieldRef<"User", 'String'>
    readonly email_verified: FieldRef<"User", 'Boolean'>
    readonly password: FieldRef<"User", 'String'>
    readonly status_id: FieldRef<"User", 'Int'>
    readonly role: FieldRef<"User", 'String'>
    readonly company_id: FieldRef<"User", 'Int'>
    readonly created_by: FieldRef<"User", 'Int'>
    readonly updated_by: FieldRef<"User", 'Int'>
    readonly deleted_by: FieldRef<"User", 'Int'>
    readonly created_at: FieldRef<"User", 'DateTime'>
    readonly updated_at: FieldRef<"User", 'DateTime'>
    readonly deleted_at: FieldRef<"User", 'DateTime'>
    readonly last_login: FieldRef<"User", 'DateTime'>
    readonly last_login_device: FieldRef<"User", 'String'>
  }
    

  // Custom InputTypes
  /**
   * User findUnique
   */
  export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    /**
     * Filter, which User to fetch.
     */
    where: UserWhereUniqueInput
  }

  /**
   * User findUniqueOrThrow
   */
  export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    /**
     * Filter, which User to fetch.
     */
    where: UserWhereUniqueInput
  }

  /**
   * User findFirst
   */
  export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | 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<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    /**
     * The data needed to create a User.
     */
    data: XOR<UserCreateInput, UserUncheckedCreateInput>
  }

  /**
   * User createMany
   */
  export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Users.
     */
    data: UserCreateManyInput | UserCreateManyInput[]
  }

  /**
   * User update
   */
  export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    /**
     * The data needed to update a User.
     */
    data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
    /**
     * Choose, which User to update.
     */
    where: UserWhereUniqueInput
  }

  /**
   * User updateMany
   */
  export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Users.
     */
    data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
    /**
     * Filter which Users to update
     */
    where?: UserWhereInput
  }

  /**
   * User upsert
   */
  export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | 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<UserCreateInput, UserUncheckedCreateInput>
    /**
     * In case the User was found with the provided `where` argument, update it with this data.
     */
    update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
  }

  /**
   * User delete
   */
  export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    /**
     * Filter which User to delete.
     */
    where: UserWhereUniqueInput
  }

  /**
   * User deleteMany
   */
  export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Users to delete
     */
    where?: UserWhereInput
  }

  /**
   * User.user_detail
   */
  export type User$user_detailArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    where?: UserDetailWhereInput
  }

  /**
   * User.request_logs
   */
  export type User$request_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    where?: RequestLogWhereInput
    orderBy?: RequestLogOrderByWithRelationInput | RequestLogOrderByWithRelationInput[]
    cursor?: RequestLogWhereUniqueInput
    take?: number
    skip?: number
    distinct?: RequestLogScalarFieldEnum | RequestLogScalarFieldEnum[]
  }

  /**
   * User.roles
   */
  export type User$rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    where?: UserRolesWhereInput
    orderBy?: UserRolesOrderByWithRelationInput | UserRolesOrderByWithRelationInput[]
    cursor?: UserRolesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserRolesScalarFieldEnum | UserRolesScalarFieldEnum[]
  }

  /**
   * User.permissions
   */
  export type User$permissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    where?: UserPermissionsWhereInput
    orderBy?: UserPermissionsOrderByWithRelationInput | UserPermissionsOrderByWithRelationInput[]
    cursor?: UserPermissionsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserPermissionsScalarFieldEnum | UserPermissionsScalarFieldEnum[]
  }

  /**
   * User.otps
   */
  export type User$otpsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    where?: OtpWhereInput
    orderBy?: OtpOrderByWithRelationInput | OtpOrderByWithRelationInput[]
    cursor?: OtpWhereUniqueInput
    take?: number
    skip?: number
    distinct?: OtpScalarFieldEnum | OtpScalarFieldEnum[]
  }

  /**
   * User.created
   */
  export type User$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * User.updated
   */
  export type User$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * User.deleted
   */
  export type User$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * User.created_users
   */
  export type User$created_usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
    orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
    cursor?: UserWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  }

  /**
   * User.updated_users
   */
  export type User$updated_usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
    orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
    cursor?: UserWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  }

  /**
   * User.deleted_users
   */
  export type User$deleted_usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
    orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
    cursor?: UserWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  }

  /**
   * User.created_user_details
   */
  export type User$created_user_detailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    where?: UserDetailWhereInput
    orderBy?: UserDetailOrderByWithRelationInput | UserDetailOrderByWithRelationInput[]
    cursor?: UserDetailWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserDetailScalarFieldEnum | UserDetailScalarFieldEnum[]
  }

  /**
   * User.updated_user_details
   */
  export type User$updated_user_detailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    where?: UserDetailWhereInput
    orderBy?: UserDetailOrderByWithRelationInput | UserDetailOrderByWithRelationInput[]
    cursor?: UserDetailWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserDetailScalarFieldEnum | UserDetailScalarFieldEnum[]
  }

  /**
   * User.deleted_user_details
   */
  export type User$deleted_user_detailsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    where?: UserDetailWhereInput
    orderBy?: UserDetailOrderByWithRelationInput | UserDetailOrderByWithRelationInput[]
    cursor?: UserDetailWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserDetailScalarFieldEnum | UserDetailScalarFieldEnum[]
  }

  /**
   * User.created_roles
   */
  export type User$created_rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    where?: RoleWhereInput
    orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
    cursor?: RoleWhereUniqueInput
    take?: number
    skip?: number
    distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
  }

  /**
   * User.updated_roles
   */
  export type User$updated_rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    where?: RoleWhereInput
    orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
    cursor?: RoleWhereUniqueInput
    take?: number
    skip?: number
    distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
  }

  /**
   * User.deleted_roles
   */
  export type User$deleted_rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    where?: RoleWhereInput
    orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
    cursor?: RoleWhereUniqueInput
    take?: number
    skip?: number
    distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
  }

  /**
   * User.created_languages
   */
  export type User$created_languagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    where?: LanguageWhereInput
    orderBy?: LanguageOrderByWithRelationInput | LanguageOrderByWithRelationInput[]
    cursor?: LanguageWhereUniqueInput
    take?: number
    skip?: number
    distinct?: LanguageScalarFieldEnum | LanguageScalarFieldEnum[]
  }

  /**
   * User.updated_languages
   */
  export type User$updated_languagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    where?: LanguageWhereInput
    orderBy?: LanguageOrderByWithRelationInput | LanguageOrderByWithRelationInput[]
    cursor?: LanguageWhereUniqueInput
    take?: number
    skip?: number
    distinct?: LanguageScalarFieldEnum | LanguageScalarFieldEnum[]
  }

  /**
   * User.deleted_languages
   */
  export type User$deleted_languagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    where?: LanguageWhereInput
    orderBy?: LanguageOrderByWithRelationInput | LanguageOrderByWithRelationInput[]
    cursor?: LanguageWhereUniqueInput
    take?: number
    skip?: number
    distinct?: LanguageScalarFieldEnum | LanguageScalarFieldEnum[]
  }

  /**
   * User.created_menus
   */
  export type User$created_menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    where?: MenusWhereInput
    orderBy?: MenusOrderByWithRelationInput | MenusOrderByWithRelationInput[]
    cursor?: MenusWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenusScalarFieldEnum | MenusScalarFieldEnum[]
  }

  /**
   * User.updated_menus
   */
  export type User$updated_menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    where?: MenusWhereInput
    orderBy?: MenusOrderByWithRelationInput | MenusOrderByWithRelationInput[]
    cursor?: MenusWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenusScalarFieldEnum | MenusScalarFieldEnum[]
  }

  /**
   * User.deleted_menus
   */
  export type User$deleted_menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    where?: MenusWhereInput
    orderBy?: MenusOrderByWithRelationInput | MenusOrderByWithRelationInput[]
    cursor?: MenusWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenusScalarFieldEnum | MenusScalarFieldEnum[]
  }

  /**
   * User.created_menu_items
   */
  export type User$created_menu_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    where?: MenuItemsWhereInput
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    cursor?: MenuItemsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * User.updated_menu_items
   */
  export type User$updated_menu_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    where?: MenuItemsWhereInput
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    cursor?: MenuItemsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * User.deleted_menu_items
   */
  export type User$deleted_menu_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    where?: MenuItemsWhereInput
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    cursor?: MenuItemsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * User.created_email_templates
   */
  export type User$created_email_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    where?: EmailTemplateWhereInput
    orderBy?: EmailTemplateOrderByWithRelationInput | EmailTemplateOrderByWithRelationInput[]
    cursor?: EmailTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateScalarFieldEnum | EmailTemplateScalarFieldEnum[]
  }

  /**
   * User.updated_email_templates
   */
  export type User$updated_email_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    where?: EmailTemplateWhereInput
    orderBy?: EmailTemplateOrderByWithRelationInput | EmailTemplateOrderByWithRelationInput[]
    cursor?: EmailTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateScalarFieldEnum | EmailTemplateScalarFieldEnum[]
  }

  /**
   * User.deleted_email_templates
   */
  export type User$deleted_email_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    where?: EmailTemplateWhereInput
    orderBy?: EmailTemplateOrderByWithRelationInput | EmailTemplateOrderByWithRelationInput[]
    cursor?: EmailTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateScalarFieldEnum | EmailTemplateScalarFieldEnum[]
  }

  /**
   * User.created_email_template_assignments
   */
  export type User$created_email_template_assignmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    where?: EmailTemplateAssignmentWhereInput
    orderBy?: EmailTemplateAssignmentOrderByWithRelationInput | EmailTemplateAssignmentOrderByWithRelationInput[]
    cursor?: EmailTemplateAssignmentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateAssignmentScalarFieldEnum | EmailTemplateAssignmentScalarFieldEnum[]
  }

  /**
   * User.created_email_process_jobs
   */
  export type User$created_email_process_jobsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    where?: EmailProcessJobWhereInput
    orderBy?: EmailProcessJobOrderByWithRelationInput | EmailProcessJobOrderByWithRelationInput[]
    cursor?: EmailProcessJobWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailProcessJobScalarFieldEnum | EmailProcessJobScalarFieldEnum[]
  }

  /**
   * User.created_notification_job
   */
  export type User$created_notification_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    where?: NotificationJobWhereInput
    orderBy?: NotificationJobOrderByWithRelationInput | NotificationJobOrderByWithRelationInput[]
    cursor?: NotificationJobWhereUniqueInput
    take?: number
    skip?: number
    distinct?: NotificationJobScalarFieldEnum | NotificationJobScalarFieldEnum[]
  }

  /**
   * User.created_import_templates
   */
  export type User$created_import_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    where?: ImportTemplateWhereInput
    orderBy?: ImportTemplateOrderByWithRelationInput | ImportTemplateOrderByWithRelationInput[]
    cursor?: ImportTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportTemplateScalarFieldEnum | ImportTemplateScalarFieldEnum[]
  }

  /**
   * User.updated_import_templates
   */
  export type User$updated_import_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    where?: ImportTemplateWhereInput
    orderBy?: ImportTemplateOrderByWithRelationInput | ImportTemplateOrderByWithRelationInput[]
    cursor?: ImportTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportTemplateScalarFieldEnum | ImportTemplateScalarFieldEnum[]
  }

  /**
   * User.deleted_import_templates
   */
  export type User$deleted_import_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    where?: ImportTemplateWhereInput
    orderBy?: ImportTemplateOrderByWithRelationInput | ImportTemplateOrderByWithRelationInput[]
    cursor?: ImportTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportTemplateScalarFieldEnum | ImportTemplateScalarFieldEnum[]
  }

  /**
   * User.created_export_templates
   */
  export type User$created_export_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    where?: ExportTemplateWhereInput
    orderBy?: ExportTemplateOrderByWithRelationInput | ExportTemplateOrderByWithRelationInput[]
    cursor?: ExportTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ExportTemplateScalarFieldEnum | ExportTemplateScalarFieldEnum[]
  }

  /**
   * User.updated_export_templates
   */
  export type User$updated_export_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    where?: ExportTemplateWhereInput
    orderBy?: ExportTemplateOrderByWithRelationInput | ExportTemplateOrderByWithRelationInput[]
    cursor?: ExportTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ExportTemplateScalarFieldEnum | ExportTemplateScalarFieldEnum[]
  }

  /**
   * User.deleted_export_templates
   */
  export type User$deleted_export_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    where?: ExportTemplateWhereInput
    orderBy?: ExportTemplateOrderByWithRelationInput | ExportTemplateOrderByWithRelationInput[]
    cursor?: ExportTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ExportTemplateScalarFieldEnum | ExportTemplateScalarFieldEnum[]
  }

  /**
   * User.created_departments
   */
  export type User$created_departmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    where?: DepartmentWhereInput
    orderBy?: DepartmentOrderByWithRelationInput | DepartmentOrderByWithRelationInput[]
    cursor?: DepartmentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DepartmentScalarFieldEnum | DepartmentScalarFieldEnum[]
  }

  /**
   * User.head_departments
   */
  export type User$head_departmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    where?: DepartmentWhereInput
    orderBy?: DepartmentOrderByWithRelationInput | DepartmentOrderByWithRelationInput[]
    cursor?: DepartmentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DepartmentScalarFieldEnum | DepartmentScalarFieldEnum[]
  }

  /**
   * User.updated_departments
   */
  export type User$updated_departmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    where?: DepartmentWhereInput
    orderBy?: DepartmentOrderByWithRelationInput | DepartmentOrderByWithRelationInput[]
    cursor?: DepartmentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DepartmentScalarFieldEnum | DepartmentScalarFieldEnum[]
  }

  /**
   * User.deleted_departments
   */
  export type User$deleted_departmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    where?: DepartmentWhereInput
    orderBy?: DepartmentOrderByWithRelationInput | DepartmentOrderByWithRelationInput[]
    cursor?: DepartmentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DepartmentScalarFieldEnum | DepartmentScalarFieldEnum[]
  }

  /**
   * User.created_designations
   */
  export type User$created_designationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    where?: DesignationWhereInput
    orderBy?: DesignationOrderByWithRelationInput | DesignationOrderByWithRelationInput[]
    cursor?: DesignationWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DesignationScalarFieldEnum | DesignationScalarFieldEnum[]
  }

  /**
   * User.updated_designations
   */
  export type User$updated_designationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    where?: DesignationWhereInput
    orderBy?: DesignationOrderByWithRelationInput | DesignationOrderByWithRelationInput[]
    cursor?: DesignationWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DesignationScalarFieldEnum | DesignationScalarFieldEnum[]
  }

  /**
   * User.deleted_designations
   */
  export type User$deleted_designationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    where?: DesignationWhereInput
    orderBy?: DesignationOrderByWithRelationInput | DesignationOrderByWithRelationInput[]
    cursor?: DesignationWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DesignationScalarFieldEnum | DesignationScalarFieldEnum[]
  }

  /**
   * User.audit_logs
   */
  export type User$audit_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    where?: AuditLogWhereInput
    orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
    cursor?: AuditLogWhereUniqueInput
    take?: number
    skip?: number
    distinct?: AuditLogScalarFieldEnum | AuditLogScalarFieldEnum[]
  }

  /**
   * User.created_category_types
   */
  export type User$created_category_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    where?: CategoryTypesWhereInput
    orderBy?: CategoryTypesOrderByWithRelationInput | CategoryTypesOrderByWithRelationInput[]
    cursor?: CategoryTypesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: CategoryTypesScalarFieldEnum | CategoryTypesScalarFieldEnum[]
  }

  /**
   * User.updated_category_types
   */
  export type User$updated_category_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    where?: CategoryTypesWhereInput
    orderBy?: CategoryTypesOrderByWithRelationInput | CategoryTypesOrderByWithRelationInput[]
    cursor?: CategoryTypesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: CategoryTypesScalarFieldEnum | CategoryTypesScalarFieldEnum[]
  }

  /**
   * User.deleted_category_types
   */
  export type User$deleted_category_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    where?: CategoryTypesWhereInput
    orderBy?: CategoryTypesOrderByWithRelationInput | CategoryTypesOrderByWithRelationInput[]
    cursor?: CategoryTypesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: CategoryTypesScalarFieldEnum | CategoryTypesScalarFieldEnum[]
  }

  /**
   * User.created_categories
   */
  export type User$created_categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    where?: CategoriesWhereInput
    orderBy?: CategoriesOrderByWithRelationInput | CategoriesOrderByWithRelationInput[]
    cursor?: CategoriesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: CategoriesScalarFieldEnum | CategoriesScalarFieldEnum[]
  }

  /**
   * User.updated_categories
   */
  export type User$updated_categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    where?: CategoriesWhereInput
    orderBy?: CategoriesOrderByWithRelationInput | CategoriesOrderByWithRelationInput[]
    cursor?: CategoriesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: CategoriesScalarFieldEnum | CategoriesScalarFieldEnum[]
  }

  /**
   * User.deleted_categories
   */
  export type User$deleted_categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    where?: CategoriesWhereInput
    orderBy?: CategoriesOrderByWithRelationInput | CategoriesOrderByWithRelationInput[]
    cursor?: CategoriesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: CategoriesScalarFieldEnum | CategoriesScalarFieldEnum[]
  }

  /**
   * User.created_configurations
   */
  export type User$created_configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    where?: ConfigurationsWhereInput
    orderBy?: ConfigurationsOrderByWithRelationInput | ConfigurationsOrderByWithRelationInput[]
    cursor?: ConfigurationsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ConfigurationsScalarFieldEnum | ConfigurationsScalarFieldEnum[]
  }

  /**
   * User.updated_configurations
   */
  export type User$updated_configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    where?: ConfigurationsWhereInput
    orderBy?: ConfigurationsOrderByWithRelationInput | ConfigurationsOrderByWithRelationInput[]
    cursor?: ConfigurationsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ConfigurationsScalarFieldEnum | ConfigurationsScalarFieldEnum[]
  }

  /**
   * User.deleted_configurations
   */
  export type User$deleted_configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    where?: ConfigurationsWhereInput
    orderBy?: ConfigurationsOrderByWithRelationInput | ConfigurationsOrderByWithRelationInput[]
    cursor?: ConfigurationsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ConfigurationsScalarFieldEnum | ConfigurationsScalarFieldEnum[]
  }

  /**
   * User.created_fin_years
   */
  export type User$created_fin_yearsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    where?: FinancialYearWhereInput
    orderBy?: FinancialYearOrderByWithRelationInput | FinancialYearOrderByWithRelationInput[]
    cursor?: FinancialYearWhereUniqueInput
    take?: number
    skip?: number
    distinct?: FinancialYearScalarFieldEnum | FinancialYearScalarFieldEnum[]
  }

  /**
   * User.updated_fin_years
   */
  export type User$updated_fin_yearsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    where?: FinancialYearWhereInput
    orderBy?: FinancialYearOrderByWithRelationInput | FinancialYearOrderByWithRelationInput[]
    cursor?: FinancialYearWhereUniqueInput
    take?: number
    skip?: number
    distinct?: FinancialYearScalarFieldEnum | FinancialYearScalarFieldEnum[]
  }

  /**
   * User.deleted_fin_years
   */
  export type User$deleted_fin_yearsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    where?: FinancialYearWhereInput
    orderBy?: FinancialYearOrderByWithRelationInput | FinancialYearOrderByWithRelationInput[]
    cursor?: FinancialYearWhereUniqueInput
    take?: number
    skip?: number
    distinct?: FinancialYearScalarFieldEnum | FinancialYearScalarFieldEnum[]
  }

  /**
   * User.created_doc_sequences
   */
  export type User$created_doc_sequencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    where?: DocumentSequenceWhereInput
    orderBy?: DocumentSequenceOrderByWithRelationInput | DocumentSequenceOrderByWithRelationInput[]
    cursor?: DocumentSequenceWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DocumentSequenceScalarFieldEnum | DocumentSequenceScalarFieldEnum[]
  }

  /**
   * User.updated_doc_sequences
   */
  export type User$updated_doc_sequencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    where?: DocumentSequenceWhereInput
    orderBy?: DocumentSequenceOrderByWithRelationInput | DocumentSequenceOrderByWithRelationInput[]
    cursor?: DocumentSequenceWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DocumentSequenceScalarFieldEnum | DocumentSequenceScalarFieldEnum[]
  }

  /**
   * User.deleted_doc_sequences
   */
  export type User$deleted_doc_sequencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    where?: DocumentSequenceWhereInput
    orderBy?: DocumentSequenceOrderByWithRelationInput | DocumentSequenceOrderByWithRelationInput[]
    cursor?: DocumentSequenceWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DocumentSequenceScalarFieldEnum | DocumentSequenceScalarFieldEnum[]
  }

  /**
   * User.created_device_registration
   */
  export type User$created_device_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    where?: DeviceRegistrationWhereInput
    orderBy?: DeviceRegistrationOrderByWithRelationInput | DeviceRegistrationOrderByWithRelationInput[]
    cursor?: DeviceRegistrationWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DeviceRegistrationScalarFieldEnum | DeviceRegistrationScalarFieldEnum[]
  }

  /**
   * User.updated_device_registration
   */
  export type User$updated_device_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    where?: DeviceRegistrationWhereInput
    orderBy?: DeviceRegistrationOrderByWithRelationInput | DeviceRegistrationOrderByWithRelationInput[]
    cursor?: DeviceRegistrationWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DeviceRegistrationScalarFieldEnum | DeviceRegistrationScalarFieldEnum[]
  }

  /**
   * User.deleted_device_registration
   */
  export type User$deleted_device_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    where?: DeviceRegistrationWhereInput
    orderBy?: DeviceRegistrationOrderByWithRelationInput | DeviceRegistrationOrderByWithRelationInput[]
    cursor?: DeviceRegistrationWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DeviceRegistrationScalarFieldEnum | DeviceRegistrationScalarFieldEnum[]
  }

  /**
   * User.DeviceRegistration
   */
  export type User$DeviceRegistrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    where?: DeviceRegistrationWhereInput
    orderBy?: DeviceRegistrationOrderByWithRelationInput | DeviceRegistrationOrderByWithRelationInput[]
    cursor?: DeviceRegistrationWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DeviceRegistrationScalarFieldEnum | DeviceRegistrationScalarFieldEnum[]
  }

  /**
   * User.created_import_job
   */
  export type User$created_import_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    where?: ImportJobWhereInput
    orderBy?: ImportJobOrderByWithRelationInput | ImportJobOrderByWithRelationInput[]
    cursor?: ImportJobWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportJobScalarFieldEnum | ImportJobScalarFieldEnum[]
  }

  /**
   * User.updated_import_job
   */
  export type User$updated_import_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    where?: ImportJobWhereInput
    orderBy?: ImportJobOrderByWithRelationInput | ImportJobOrderByWithRelationInput[]
    cursor?: ImportJobWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportJobScalarFieldEnum | ImportJobScalarFieldEnum[]
  }

  /**
   * User.deleted_import_job
   */
  export type User$deleted_import_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    where?: ImportJobWhereInput
    orderBy?: ImportJobOrderByWithRelationInput | ImportJobOrderByWithRelationInput[]
    cursor?: ImportJobWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportJobScalarFieldEnum | ImportJobScalarFieldEnum[]
  }

  /**
   * User without action
   */
  export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
  }


  /**
   * Model UserDetail
   */

  export type AggregateUserDetail = {
    _count: UserDetailCountAggregateOutputType | null
    _avg: UserDetailAvgAggregateOutputType | null
    _sum: UserDetailSumAggregateOutputType | null
    _min: UserDetailMinAggregateOutputType | null
    _max: UserDetailMaxAggregateOutputType | null
  }

  export type UserDetailAvgAggregateOutputType = {
    id: number | null
    user_id: number | null
    designation_id: number | null
    department_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type UserDetailSumAggregateOutputType = {
    id: number | null
    user_id: number | null
    designation_id: number | null
    department_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type UserDetailMinAggregateOutputType = {
    id: number | null
    user_id: number | null
    code: string | null
    first_name: string | null
    last_name: string | null
    designation_id: number | null
    department_id: number | null
    profile_pic: string | null
    dob: Date | null
    country_code: string | null
    phone_number: string | null
    gender: string | null
    user_time_zone: string | null
    address: string | null
    culture: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type UserDetailMaxAggregateOutputType = {
    id: number | null
    user_id: number | null
    code: string | null
    first_name: string | null
    last_name: string | null
    designation_id: number | null
    department_id: number | null
    profile_pic: string | null
    dob: Date | null
    country_code: string | null
    phone_number: string | null
    gender: string | null
    user_time_zone: string | null
    address: string | null
    culture: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type UserDetailCountAggregateOutputType = {
    id: number
    user_id: number
    code: number
    first_name: number
    last_name: number
    designation_id: number
    department_id: number
    profile_pic: number
    dob: number
    country_code: number
    phone_number: number
    gender: number
    user_time_zone: number
    address: number
    culture: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type UserDetailAvgAggregateInputType = {
    id?: true
    user_id?: true
    designation_id?: true
    department_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type UserDetailSumAggregateInputType = {
    id?: true
    user_id?: true
    designation_id?: true
    department_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type UserDetailMinAggregateInputType = {
    id?: true
    user_id?: true
    code?: true
    first_name?: true
    last_name?: true
    designation_id?: true
    department_id?: true
    profile_pic?: true
    dob?: true
    country_code?: true
    phone_number?: true
    gender?: true
    user_time_zone?: true
    address?: true
    culture?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type UserDetailMaxAggregateInputType = {
    id?: true
    user_id?: true
    code?: true
    first_name?: true
    last_name?: true
    designation_id?: true
    department_id?: true
    profile_pic?: true
    dob?: true
    country_code?: true
    phone_number?: true
    gender?: true
    user_time_zone?: true
    address?: true
    culture?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type UserDetailCountAggregateInputType = {
    id?: true
    user_id?: true
    code?: true
    first_name?: true
    last_name?: true
    designation_id?: true
    department_id?: true
    profile_pic?: true
    dob?: true
    country_code?: true
    phone_number?: true
    gender?: true
    user_time_zone?: true
    address?: true
    culture?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type UserDetailAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which UserDetail to aggregate.
     */
    where?: UserDetailWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserDetails to fetch.
     */
    orderBy?: UserDetailOrderByWithRelationInput | UserDetailOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: UserDetailWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserDetails from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserDetails.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned UserDetails
    **/
    _count?: true | UserDetailCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: UserDetailAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: UserDetailSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: UserDetailMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: UserDetailMaxAggregateInputType
  }

  export type GetUserDetailAggregateType<T extends UserDetailAggregateArgs> = {
        [P in keyof T & keyof AggregateUserDetail]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateUserDetail[P]>
      : GetScalarType<T[P], AggregateUserDetail[P]>
  }




  export type UserDetailGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserDetailWhereInput
    orderBy?: UserDetailOrderByWithAggregationInput | UserDetailOrderByWithAggregationInput[]
    by: UserDetailScalarFieldEnum[] | UserDetailScalarFieldEnum
    having?: UserDetailScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: UserDetailCountAggregateInputType | true
    _avg?: UserDetailAvgAggregateInputType
    _sum?: UserDetailSumAggregateInputType
    _min?: UserDetailMinAggregateInputType
    _max?: UserDetailMaxAggregateInputType
  }

  export type UserDetailGroupByOutputType = {
    id: number
    user_id: number
    code: string
    first_name: string
    last_name: string | null
    designation_id: number | null
    department_id: number | null
    profile_pic: string | null
    dob: Date | null
    country_code: string | null
    phone_number: string | null
    gender: string
    user_time_zone: string | null
    address: string | null
    culture: string | null
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: UserDetailCountAggregateOutputType | null
    _avg: UserDetailAvgAggregateOutputType | null
    _sum: UserDetailSumAggregateOutputType | null
    _min: UserDetailMinAggregateOutputType | null
    _max: UserDetailMaxAggregateOutputType | null
  }

  type GetUserDetailGroupByPayload<T extends UserDetailGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<UserDetailGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof UserDetailGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], UserDetailGroupByOutputType[P]>
            : GetScalarType<T[P], UserDetailGroupByOutputType[P]>
        }
      >
    >


  export type UserDetailSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    user_id?: boolean
    code?: boolean
    first_name?: boolean
    last_name?: boolean
    designation_id?: boolean
    department_id?: boolean
    profile_pic?: boolean
    dob?: boolean
    country_code?: boolean
    phone_number?: boolean
    gender?: boolean
    user_time_zone?: boolean
    address?: boolean
    culture?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    designation?: boolean | UserDetail$designationArgs<ExtArgs>
    department?: boolean | UserDetail$departmentArgs<ExtArgs>
    user?: boolean | UserDefaultArgs<ExtArgs>
    created?: boolean | UserDetail$createdArgs<ExtArgs>
    updated?: boolean | UserDetail$updatedArgs<ExtArgs>
    deleted?: boolean | UserDetail$deletedArgs<ExtArgs>
  }, ExtArgs["result"]["userDetail"]>


  export type UserDetailSelectScalar = {
    id?: boolean
    user_id?: boolean
    code?: boolean
    first_name?: boolean
    last_name?: boolean
    designation_id?: boolean
    department_id?: boolean
    profile_pic?: boolean
    dob?: boolean
    country_code?: boolean
    phone_number?: boolean
    gender?: boolean
    user_time_zone?: boolean
    address?: boolean
    culture?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type UserDetailInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    designation?: boolean | UserDetail$designationArgs<ExtArgs>
    department?: boolean | UserDetail$departmentArgs<ExtArgs>
    user?: boolean | UserDefaultArgs<ExtArgs>
    created?: boolean | UserDetail$createdArgs<ExtArgs>
    updated?: boolean | UserDetail$updatedArgs<ExtArgs>
    deleted?: boolean | UserDetail$deletedArgs<ExtArgs>
  }

  export type $UserDetailPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "UserDetail"
    objects: {
      designation: Prisma.$DesignationPayload<ExtArgs> | null
      department: Prisma.$DepartmentPayload<ExtArgs> | null
      user: Prisma.$UserPayload<ExtArgs>
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      user_id: number
      code: string
      first_name: string
      last_name: string | null
      designation_id: number | null
      department_id: number | null
      profile_pic: string | null
      dob: Date | null
      country_code: string | null
      phone_number: string | null
      gender: string
      user_time_zone: string | null
      address: string | null
      culture: string | null
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["userDetail"]>
    composites: {}
  }

  type UserDetailGetPayload<S extends boolean | null | undefined | UserDetailDefaultArgs> = $Result.GetResult<Prisma.$UserDetailPayload, S>

  type UserDetailCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<UserDetailFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: UserDetailCountAggregateInputType | true
    }

  export interface UserDetailDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserDetail'], meta: { name: 'UserDetail' } }
    /**
     * Find zero or one UserDetail that matches the filter.
     * @param {UserDetailFindUniqueArgs} args - Arguments to find a UserDetail
     * @example
     * // Get one UserDetail
     * const userDetail = await prisma.userDetail.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends UserDetailFindUniqueArgs>(args: SelectSubset<T, UserDetailFindUniqueArgs<ExtArgs>>): Prisma__UserDetailClient<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one UserDetail that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {UserDetailFindUniqueOrThrowArgs} args - Arguments to find a UserDetail
     * @example
     * // Get one UserDetail
     * const userDetail = await prisma.userDetail.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends UserDetailFindUniqueOrThrowArgs>(args: SelectSubset<T, UserDetailFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserDetailClient<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first UserDetail 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 {UserDetailFindFirstArgs} args - Arguments to find a UserDetail
     * @example
     * // Get one UserDetail
     * const userDetail = await prisma.userDetail.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends UserDetailFindFirstArgs>(args?: SelectSubset<T, UserDetailFindFirstArgs<ExtArgs>>): Prisma__UserDetailClient<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first UserDetail 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 {UserDetailFindFirstOrThrowArgs} args - Arguments to find a UserDetail
     * @example
     * // Get one UserDetail
     * const userDetail = await prisma.userDetail.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends UserDetailFindFirstOrThrowArgs>(args?: SelectSubset<T, UserDetailFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserDetailClient<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more UserDetails 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 {UserDetailFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all UserDetails
     * const userDetails = await prisma.userDetail.findMany()
     * 
     * // Get first 10 UserDetails
     * const userDetails = await prisma.userDetail.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const userDetailWithIdOnly = await prisma.userDetail.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends UserDetailFindManyArgs>(args?: SelectSubset<T, UserDetailFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a UserDetail.
     * @param {UserDetailCreateArgs} args - Arguments to create a UserDetail.
     * @example
     * // Create one UserDetail
     * const UserDetail = await prisma.userDetail.create({
     *   data: {
     *     // ... data to create a UserDetail
     *   }
     * })
     * 
     */
    create<T extends UserDetailCreateArgs>(args: SelectSubset<T, UserDetailCreateArgs<ExtArgs>>): Prisma__UserDetailClient<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many UserDetails.
     * @param {UserDetailCreateManyArgs} args - Arguments to create many UserDetails.
     * @example
     * // Create many UserDetails
     * const userDetail = await prisma.userDetail.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends UserDetailCreateManyArgs>(args?: SelectSubset<T, UserDetailCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a UserDetail.
     * @param {UserDetailDeleteArgs} args - Arguments to delete one UserDetail.
     * @example
     * // Delete one UserDetail
     * const UserDetail = await prisma.userDetail.delete({
     *   where: {
     *     // ... filter to delete one UserDetail
     *   }
     * })
     * 
     */
    delete<T extends UserDetailDeleteArgs>(args: SelectSubset<T, UserDetailDeleteArgs<ExtArgs>>): Prisma__UserDetailClient<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one UserDetail.
     * @param {UserDetailUpdateArgs} args - Arguments to update one UserDetail.
     * @example
     * // Update one UserDetail
     * const userDetail = await prisma.userDetail.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends UserDetailUpdateArgs>(args: SelectSubset<T, UserDetailUpdateArgs<ExtArgs>>): Prisma__UserDetailClient<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more UserDetails.
     * @param {UserDetailDeleteManyArgs} args - Arguments to filter UserDetails to delete.
     * @example
     * // Delete a few UserDetails
     * const { count } = await prisma.userDetail.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends UserDetailDeleteManyArgs>(args?: SelectSubset<T, UserDetailDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more UserDetails.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserDetailUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many UserDetails
     * const userDetail = await prisma.userDetail.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends UserDetailUpdateManyArgs>(args: SelectSubset<T, UserDetailUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one UserDetail.
     * @param {UserDetailUpsertArgs} args - Arguments to update or create a UserDetail.
     * @example
     * // Update or create a UserDetail
     * const userDetail = await prisma.userDetail.upsert({
     *   create: {
     *     // ... data to create a UserDetail
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the UserDetail we want to update
     *   }
     * })
     */
    upsert<T extends UserDetailUpsertArgs>(args: SelectSubset<T, UserDetailUpsertArgs<ExtArgs>>): Prisma__UserDetailClient<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of UserDetails.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserDetailCountArgs} args - Arguments to filter UserDetails to count.
     * @example
     * // Count the number of UserDetails
     * const count = await prisma.userDetail.count({
     *   where: {
     *     // ... the filter for the UserDetails we want to count
     *   }
     * })
    **/
    count<T extends UserDetailCountArgs>(
      args?: Subset<T, UserDetailCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], UserDetailCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a UserDetail.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserDetailAggregateArgs} 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<T extends UserDetailAggregateArgs>(args: Subset<T, UserDetailAggregateArgs>): Prisma.PrismaPromise<GetUserDetailAggregateType<T>>

    /**
     * Group by UserDetail.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserDetailGroupByArgs} 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 UserDetailGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: UserDetailGroupByArgs['orderBy'] }
        : { orderBy?: UserDetailGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, UserDetailGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserDetailGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the UserDetail model
   */
  readonly fields: UserDetailFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for UserDetail.
   * 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__UserDetailClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    designation<T extends UserDetail$designationArgs<ExtArgs> = {}>(args?: Subset<T, UserDetail$designationArgs<ExtArgs>>): Prisma__DesignationClient<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    department<T extends UserDetail$departmentArgs<ExtArgs> = {}>(args?: Subset<T, UserDetail$departmentArgs<ExtArgs>>): Prisma__DepartmentClient<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created<T extends UserDetail$createdArgs<ExtArgs> = {}>(args?: Subset<T, UserDetail$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends UserDetail$updatedArgs<ExtArgs> = {}>(args?: Subset<T, UserDetail$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends UserDetail$deletedArgs<ExtArgs> = {}>(args?: Subset<T, UserDetail$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the UserDetail model
   */ 
  interface UserDetailFieldRefs {
    readonly id: FieldRef<"UserDetail", 'Int'>
    readonly user_id: FieldRef<"UserDetail", 'Int'>
    readonly code: FieldRef<"UserDetail", 'String'>
    readonly first_name: FieldRef<"UserDetail", 'String'>
    readonly last_name: FieldRef<"UserDetail", 'String'>
    readonly designation_id: FieldRef<"UserDetail", 'Int'>
    readonly department_id: FieldRef<"UserDetail", 'Int'>
    readonly profile_pic: FieldRef<"UserDetail", 'String'>
    readonly dob: FieldRef<"UserDetail", 'DateTime'>
    readonly country_code: FieldRef<"UserDetail", 'String'>
    readonly phone_number: FieldRef<"UserDetail", 'String'>
    readonly gender: FieldRef<"UserDetail", 'String'>
    readonly user_time_zone: FieldRef<"UserDetail", 'String'>
    readonly address: FieldRef<"UserDetail", 'String'>
    readonly culture: FieldRef<"UserDetail", 'String'>
    readonly company_id: FieldRef<"UserDetail", 'Int'>
    readonly created_by: FieldRef<"UserDetail", 'Int'>
    readonly updated_by: FieldRef<"UserDetail", 'Int'>
    readonly deleted_by: FieldRef<"UserDetail", 'Int'>
    readonly created_at: FieldRef<"UserDetail", 'DateTime'>
    readonly updated_at: FieldRef<"UserDetail", 'DateTime'>
    readonly deleted_at: FieldRef<"UserDetail", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * UserDetail findUnique
   */
  export type UserDetailFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    /**
     * Filter, which UserDetail to fetch.
     */
    where: UserDetailWhereUniqueInput
  }

  /**
   * UserDetail findUniqueOrThrow
   */
  export type UserDetailFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    /**
     * Filter, which UserDetail to fetch.
     */
    where: UserDetailWhereUniqueInput
  }

  /**
   * UserDetail findFirst
   */
  export type UserDetailFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    /**
     * Filter, which UserDetail to fetch.
     */
    where?: UserDetailWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserDetails to fetch.
     */
    orderBy?: UserDetailOrderByWithRelationInput | UserDetailOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for UserDetails.
     */
    cursor?: UserDetailWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserDetails from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserDetails.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of UserDetails.
     */
    distinct?: UserDetailScalarFieldEnum | UserDetailScalarFieldEnum[]
  }

  /**
   * UserDetail findFirstOrThrow
   */
  export type UserDetailFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    /**
     * Filter, which UserDetail to fetch.
     */
    where?: UserDetailWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserDetails to fetch.
     */
    orderBy?: UserDetailOrderByWithRelationInput | UserDetailOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for UserDetails.
     */
    cursor?: UserDetailWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserDetails from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserDetails.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of UserDetails.
     */
    distinct?: UserDetailScalarFieldEnum | UserDetailScalarFieldEnum[]
  }

  /**
   * UserDetail findMany
   */
  export type UserDetailFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    /**
     * Filter, which UserDetails to fetch.
     */
    where?: UserDetailWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserDetails to fetch.
     */
    orderBy?: UserDetailOrderByWithRelationInput | UserDetailOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing UserDetails.
     */
    cursor?: UserDetailWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserDetails from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserDetails.
     */
    skip?: number
    distinct?: UserDetailScalarFieldEnum | UserDetailScalarFieldEnum[]
  }

  /**
   * UserDetail create
   */
  export type UserDetailCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    /**
     * The data needed to create a UserDetail.
     */
    data: XOR<UserDetailCreateInput, UserDetailUncheckedCreateInput>
  }

  /**
   * UserDetail createMany
   */
  export type UserDetailCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many UserDetails.
     */
    data: UserDetailCreateManyInput | UserDetailCreateManyInput[]
  }

  /**
   * UserDetail update
   */
  export type UserDetailUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    /**
     * The data needed to update a UserDetail.
     */
    data: XOR<UserDetailUpdateInput, UserDetailUncheckedUpdateInput>
    /**
     * Choose, which UserDetail to update.
     */
    where: UserDetailWhereUniqueInput
  }

  /**
   * UserDetail updateMany
   */
  export type UserDetailUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update UserDetails.
     */
    data: XOR<UserDetailUpdateManyMutationInput, UserDetailUncheckedUpdateManyInput>
    /**
     * Filter which UserDetails to update
     */
    where?: UserDetailWhereInput
  }

  /**
   * UserDetail upsert
   */
  export type UserDetailUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    /**
     * The filter to search for the UserDetail to update in case it exists.
     */
    where: UserDetailWhereUniqueInput
    /**
     * In case the UserDetail found by the `where` argument doesn't exist, create a new UserDetail with this data.
     */
    create: XOR<UserDetailCreateInput, UserDetailUncheckedCreateInput>
    /**
     * In case the UserDetail was found with the provided `where` argument, update it with this data.
     */
    update: XOR<UserDetailUpdateInput, UserDetailUncheckedUpdateInput>
  }

  /**
   * UserDetail delete
   */
  export type UserDetailDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    /**
     * Filter which UserDetail to delete.
     */
    where: UserDetailWhereUniqueInput
  }

  /**
   * UserDetail deleteMany
   */
  export type UserDetailDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which UserDetails to delete
     */
    where?: UserDetailWhereInput
  }

  /**
   * UserDetail.designation
   */
  export type UserDetail$designationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    where?: DesignationWhereInput
  }

  /**
   * UserDetail.department
   */
  export type UserDetail$departmentArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    where?: DepartmentWhereInput
  }

  /**
   * UserDetail.created
   */
  export type UserDetail$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * UserDetail.updated
   */
  export type UserDetail$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * UserDetail.deleted
   */
  export type UserDetail$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * UserDetail without action
   */
  export type UserDetailDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
  }


  /**
   * Model Designation
   */

  export type AggregateDesignation = {
    _count: DesignationCountAggregateOutputType | null
    _avg: DesignationAvgAggregateOutputType | null
    _sum: DesignationSumAggregateOutputType | null
    _min: DesignationMinAggregateOutputType | null
    _max: DesignationMaxAggregateOutputType | null
  }

  export type DesignationAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type DesignationSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type DesignationMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    code: string | null
    name: string | null
    description: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type DesignationMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    code: string | null
    name: string | null
    description: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type DesignationCountAggregateOutputType = {
    id: number
    uuid: number
    code: number
    name: number
    description: number
    status_id: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type DesignationAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type DesignationSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type DesignationMinAggregateInputType = {
    id?: true
    uuid?: true
    code?: true
    name?: true
    description?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type DesignationMaxAggregateInputType = {
    id?: true
    uuid?: true
    code?: true
    name?: true
    description?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type DesignationCountAggregateInputType = {
    id?: true
    uuid?: true
    code?: true
    name?: true
    description?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type DesignationAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Designation to aggregate.
     */
    where?: DesignationWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Designations to fetch.
     */
    orderBy?: DesignationOrderByWithRelationInput | DesignationOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: DesignationWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Designations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Designations.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Designations
    **/
    _count?: true | DesignationCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: DesignationAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: DesignationSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: DesignationMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: DesignationMaxAggregateInputType
  }

  export type GetDesignationAggregateType<T extends DesignationAggregateArgs> = {
        [P in keyof T & keyof AggregateDesignation]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateDesignation[P]>
      : GetScalarType<T[P], AggregateDesignation[P]>
  }




  export type DesignationGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DesignationWhereInput
    orderBy?: DesignationOrderByWithAggregationInput | DesignationOrderByWithAggregationInput[]
    by: DesignationScalarFieldEnum[] | DesignationScalarFieldEnum
    having?: DesignationScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: DesignationCountAggregateInputType | true
    _avg?: DesignationAvgAggregateInputType
    _sum?: DesignationSumAggregateInputType
    _min?: DesignationMinAggregateInputType
    _max?: DesignationMaxAggregateInputType
  }

  export type DesignationGroupByOutputType = {
    id: number
    uuid: string
    code: string
    name: string
    description: string | null
    status_id: number
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: DesignationCountAggregateOutputType | null
    _avg: DesignationAvgAggregateOutputType | null
    _sum: DesignationSumAggregateOutputType | null
    _min: DesignationMinAggregateOutputType | null
    _max: DesignationMaxAggregateOutputType | null
  }

  type GetDesignationGroupByPayload<T extends DesignationGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<DesignationGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof DesignationGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], DesignationGroupByOutputType[P]>
            : GetScalarType<T[P], DesignationGroupByOutputType[P]>
        }
      >
    >


  export type DesignationSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    code?: boolean
    name?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    users?: boolean | Designation$usersArgs<ExtArgs>
    created?: boolean | Designation$createdArgs<ExtArgs>
    updated?: boolean | Designation$updatedArgs<ExtArgs>
    deleted?: boolean | Designation$deletedArgs<ExtArgs>
    _count?: boolean | DesignationCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["designation"]>


  export type DesignationSelectScalar = {
    id?: boolean
    uuid?: boolean
    code?: boolean
    name?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type DesignationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    users?: boolean | Designation$usersArgs<ExtArgs>
    created?: boolean | Designation$createdArgs<ExtArgs>
    updated?: boolean | Designation$updatedArgs<ExtArgs>
    deleted?: boolean | Designation$deletedArgs<ExtArgs>
    _count?: boolean | DesignationCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $DesignationPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Designation"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      users: Prisma.$UserDetailPayload<ExtArgs>[]
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      code: string
      name: string
      description: string | null
      status_id: number
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["designation"]>
    composites: {}
  }

  type DesignationGetPayload<S extends boolean | null | undefined | DesignationDefaultArgs> = $Result.GetResult<Prisma.$DesignationPayload, S>

  type DesignationCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<DesignationFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: DesignationCountAggregateInputType | true
    }

  export interface DesignationDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Designation'], meta: { name: 'Designation' } }
    /**
     * Find zero or one Designation that matches the filter.
     * @param {DesignationFindUniqueArgs} args - Arguments to find a Designation
     * @example
     * // Get one Designation
     * const designation = await prisma.designation.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends DesignationFindUniqueArgs>(args: SelectSubset<T, DesignationFindUniqueArgs<ExtArgs>>): Prisma__DesignationClient<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Designation that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {DesignationFindUniqueOrThrowArgs} args - Arguments to find a Designation
     * @example
     * // Get one Designation
     * const designation = await prisma.designation.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends DesignationFindUniqueOrThrowArgs>(args: SelectSubset<T, DesignationFindUniqueOrThrowArgs<ExtArgs>>): Prisma__DesignationClient<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Designation 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 {DesignationFindFirstArgs} args - Arguments to find a Designation
     * @example
     * // Get one Designation
     * const designation = await prisma.designation.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends DesignationFindFirstArgs>(args?: SelectSubset<T, DesignationFindFirstArgs<ExtArgs>>): Prisma__DesignationClient<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Designation 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 {DesignationFindFirstOrThrowArgs} args - Arguments to find a Designation
     * @example
     * // Get one Designation
     * const designation = await prisma.designation.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends DesignationFindFirstOrThrowArgs>(args?: SelectSubset<T, DesignationFindFirstOrThrowArgs<ExtArgs>>): Prisma__DesignationClient<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Designations 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 {DesignationFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Designations
     * const designations = await prisma.designation.findMany()
     * 
     * // Get first 10 Designations
     * const designations = await prisma.designation.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const designationWithIdOnly = await prisma.designation.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends DesignationFindManyArgs>(args?: SelectSubset<T, DesignationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Designation.
     * @param {DesignationCreateArgs} args - Arguments to create a Designation.
     * @example
     * // Create one Designation
     * const Designation = await prisma.designation.create({
     *   data: {
     *     // ... data to create a Designation
     *   }
     * })
     * 
     */
    create<T extends DesignationCreateArgs>(args: SelectSubset<T, DesignationCreateArgs<ExtArgs>>): Prisma__DesignationClient<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Designations.
     * @param {DesignationCreateManyArgs} args - Arguments to create many Designations.
     * @example
     * // Create many Designations
     * const designation = await prisma.designation.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends DesignationCreateManyArgs>(args?: SelectSubset<T, DesignationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Designation.
     * @param {DesignationDeleteArgs} args - Arguments to delete one Designation.
     * @example
     * // Delete one Designation
     * const Designation = await prisma.designation.delete({
     *   where: {
     *     // ... filter to delete one Designation
     *   }
     * })
     * 
     */
    delete<T extends DesignationDeleteArgs>(args: SelectSubset<T, DesignationDeleteArgs<ExtArgs>>): Prisma__DesignationClient<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Designation.
     * @param {DesignationUpdateArgs} args - Arguments to update one Designation.
     * @example
     * // Update one Designation
     * const designation = await prisma.designation.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends DesignationUpdateArgs>(args: SelectSubset<T, DesignationUpdateArgs<ExtArgs>>): Prisma__DesignationClient<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Designations.
     * @param {DesignationDeleteManyArgs} args - Arguments to filter Designations to delete.
     * @example
     * // Delete a few Designations
     * const { count } = await prisma.designation.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends DesignationDeleteManyArgs>(args?: SelectSubset<T, DesignationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Designations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DesignationUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Designations
     * const designation = await prisma.designation.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends DesignationUpdateManyArgs>(args: SelectSubset<T, DesignationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Designation.
     * @param {DesignationUpsertArgs} args - Arguments to update or create a Designation.
     * @example
     * // Update or create a Designation
     * const designation = await prisma.designation.upsert({
     *   create: {
     *     // ... data to create a Designation
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Designation we want to update
     *   }
     * })
     */
    upsert<T extends DesignationUpsertArgs>(args: SelectSubset<T, DesignationUpsertArgs<ExtArgs>>): Prisma__DesignationClient<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Designations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DesignationCountArgs} args - Arguments to filter Designations to count.
     * @example
     * // Count the number of Designations
     * const count = await prisma.designation.count({
     *   where: {
     *     // ... the filter for the Designations we want to count
     *   }
     * })
    **/
    count<T extends DesignationCountArgs>(
      args?: Subset<T, DesignationCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], DesignationCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Designation.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DesignationAggregateArgs} 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<T extends DesignationAggregateArgs>(args: Subset<T, DesignationAggregateArgs>): Prisma.PrismaPromise<GetDesignationAggregateType<T>>

    /**
     * Group by Designation.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DesignationGroupByArgs} 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 DesignationGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: DesignationGroupByArgs['orderBy'] }
        : { orderBy?: DesignationGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, DesignationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDesignationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Designation model
   */
  readonly fields: DesignationFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Designation.
   * 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__DesignationClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    users<T extends Designation$usersArgs<ExtArgs> = {}>(args?: Subset<T, Designation$usersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findMany"> | Null>
    created<T extends Designation$createdArgs<ExtArgs> = {}>(args?: Subset<T, Designation$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends Designation$updatedArgs<ExtArgs> = {}>(args?: Subset<T, Designation$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends Designation$deletedArgs<ExtArgs> = {}>(args?: Subset<T, Designation$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Designation model
   */ 
  interface DesignationFieldRefs {
    readonly id: FieldRef<"Designation", 'Int'>
    readonly uuid: FieldRef<"Designation", 'String'>
    readonly code: FieldRef<"Designation", 'String'>
    readonly name: FieldRef<"Designation", 'String'>
    readonly description: FieldRef<"Designation", 'String'>
    readonly status_id: FieldRef<"Designation", 'Int'>
    readonly company_id: FieldRef<"Designation", 'Int'>
    readonly created_by: FieldRef<"Designation", 'Int'>
    readonly updated_by: FieldRef<"Designation", 'Int'>
    readonly deleted_by: FieldRef<"Designation", 'Int'>
    readonly created_at: FieldRef<"Designation", 'DateTime'>
    readonly updated_at: FieldRef<"Designation", 'DateTime'>
    readonly deleted_at: FieldRef<"Designation", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * Designation findUnique
   */
  export type DesignationFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    /**
     * Filter, which Designation to fetch.
     */
    where: DesignationWhereUniqueInput
  }

  /**
   * Designation findUniqueOrThrow
   */
  export type DesignationFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    /**
     * Filter, which Designation to fetch.
     */
    where: DesignationWhereUniqueInput
  }

  /**
   * Designation findFirst
   */
  export type DesignationFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    /**
     * Filter, which Designation to fetch.
     */
    where?: DesignationWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Designations to fetch.
     */
    orderBy?: DesignationOrderByWithRelationInput | DesignationOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Designations.
     */
    cursor?: DesignationWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Designations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Designations.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Designations.
     */
    distinct?: DesignationScalarFieldEnum | DesignationScalarFieldEnum[]
  }

  /**
   * Designation findFirstOrThrow
   */
  export type DesignationFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    /**
     * Filter, which Designation to fetch.
     */
    where?: DesignationWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Designations to fetch.
     */
    orderBy?: DesignationOrderByWithRelationInput | DesignationOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Designations.
     */
    cursor?: DesignationWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Designations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Designations.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Designations.
     */
    distinct?: DesignationScalarFieldEnum | DesignationScalarFieldEnum[]
  }

  /**
   * Designation findMany
   */
  export type DesignationFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    /**
     * Filter, which Designations to fetch.
     */
    where?: DesignationWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Designations to fetch.
     */
    orderBy?: DesignationOrderByWithRelationInput | DesignationOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Designations.
     */
    cursor?: DesignationWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Designations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Designations.
     */
    skip?: number
    distinct?: DesignationScalarFieldEnum | DesignationScalarFieldEnum[]
  }

  /**
   * Designation create
   */
  export type DesignationCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    /**
     * The data needed to create a Designation.
     */
    data: XOR<DesignationCreateInput, DesignationUncheckedCreateInput>
  }

  /**
   * Designation createMany
   */
  export type DesignationCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Designations.
     */
    data: DesignationCreateManyInput | DesignationCreateManyInput[]
  }

  /**
   * Designation update
   */
  export type DesignationUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    /**
     * The data needed to update a Designation.
     */
    data: XOR<DesignationUpdateInput, DesignationUncheckedUpdateInput>
    /**
     * Choose, which Designation to update.
     */
    where: DesignationWhereUniqueInput
  }

  /**
   * Designation updateMany
   */
  export type DesignationUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Designations.
     */
    data: XOR<DesignationUpdateManyMutationInput, DesignationUncheckedUpdateManyInput>
    /**
     * Filter which Designations to update
     */
    where?: DesignationWhereInput
  }

  /**
   * Designation upsert
   */
  export type DesignationUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    /**
     * The filter to search for the Designation to update in case it exists.
     */
    where: DesignationWhereUniqueInput
    /**
     * In case the Designation found by the `where` argument doesn't exist, create a new Designation with this data.
     */
    create: XOR<DesignationCreateInput, DesignationUncheckedCreateInput>
    /**
     * In case the Designation was found with the provided `where` argument, update it with this data.
     */
    update: XOR<DesignationUpdateInput, DesignationUncheckedUpdateInput>
  }

  /**
   * Designation delete
   */
  export type DesignationDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    /**
     * Filter which Designation to delete.
     */
    where: DesignationWhereUniqueInput
  }

  /**
   * Designation deleteMany
   */
  export type DesignationDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Designations to delete
     */
    where?: DesignationWhereInput
  }

  /**
   * Designation.users
   */
  export type Designation$usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    where?: UserDetailWhereInput
    orderBy?: UserDetailOrderByWithRelationInput | UserDetailOrderByWithRelationInput[]
    cursor?: UserDetailWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserDetailScalarFieldEnum | UserDetailScalarFieldEnum[]
  }

  /**
   * Designation.created
   */
  export type Designation$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Designation.updated
   */
  export type Designation$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Designation.deleted
   */
  export type Designation$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Designation without action
   */
  export type DesignationDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
  }


  /**
   * Model Department
   */

  export type AggregateDepartment = {
    _count: DepartmentCountAggregateOutputType | null
    _avg: DepartmentAvgAggregateOutputType | null
    _sum: DepartmentSumAggregateOutputType | null
    _min: DepartmentMinAggregateOutputType | null
    _max: DepartmentMaxAggregateOutputType | null
  }

  export type DepartmentAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    department_head_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type DepartmentSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    department_head_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type DepartmentMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    code: string | null
    name: string | null
    description: string | null
    status_id: number | null
    department_head_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type DepartmentMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    code: string | null
    name: string | null
    description: string | null
    status_id: number | null
    department_head_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type DepartmentCountAggregateOutputType = {
    id: number
    uuid: number
    code: number
    name: number
    description: number
    status_id: number
    department_head_id: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type DepartmentAvgAggregateInputType = {
    id?: true
    status_id?: true
    department_head_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type DepartmentSumAggregateInputType = {
    id?: true
    status_id?: true
    department_head_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type DepartmentMinAggregateInputType = {
    id?: true
    uuid?: true
    code?: true
    name?: true
    description?: true
    status_id?: true
    department_head_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type DepartmentMaxAggregateInputType = {
    id?: true
    uuid?: true
    code?: true
    name?: true
    description?: true
    status_id?: true
    department_head_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type DepartmentCountAggregateInputType = {
    id?: true
    uuid?: true
    code?: true
    name?: true
    description?: true
    status_id?: true
    department_head_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type DepartmentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Department to aggregate.
     */
    where?: DepartmentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Departments to fetch.
     */
    orderBy?: DepartmentOrderByWithRelationInput | DepartmentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: DepartmentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Departments from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Departments.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Departments
    **/
    _count?: true | DepartmentCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: DepartmentAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: DepartmentSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: DepartmentMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: DepartmentMaxAggregateInputType
  }

  export type GetDepartmentAggregateType<T extends DepartmentAggregateArgs> = {
        [P in keyof T & keyof AggregateDepartment]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateDepartment[P]>
      : GetScalarType<T[P], AggregateDepartment[P]>
  }




  export type DepartmentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DepartmentWhereInput
    orderBy?: DepartmentOrderByWithAggregationInput | DepartmentOrderByWithAggregationInput[]
    by: DepartmentScalarFieldEnum[] | DepartmentScalarFieldEnum
    having?: DepartmentScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: DepartmentCountAggregateInputType | true
    _avg?: DepartmentAvgAggregateInputType
    _sum?: DepartmentSumAggregateInputType
    _min?: DepartmentMinAggregateInputType
    _max?: DepartmentMaxAggregateInputType
  }

  export type DepartmentGroupByOutputType = {
    id: number
    uuid: string
    code: string
    name: string
    description: string | null
    status_id: number
    department_head_id: number | null
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: DepartmentCountAggregateOutputType | null
    _avg: DepartmentAvgAggregateOutputType | null
    _sum: DepartmentSumAggregateOutputType | null
    _min: DepartmentMinAggregateOutputType | null
    _max: DepartmentMaxAggregateOutputType | null
  }

  type GetDepartmentGroupByPayload<T extends DepartmentGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<DepartmentGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof DepartmentGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], DepartmentGroupByOutputType[P]>
            : GetScalarType<T[P], DepartmentGroupByOutputType[P]>
        }
      >
    >


  export type DepartmentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    code?: boolean
    name?: boolean
    description?: boolean
    status_id?: boolean
    department_head_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    users?: boolean | Department$usersArgs<ExtArgs>
    department_head?: boolean | Department$department_headArgs<ExtArgs>
    created?: boolean | Department$createdArgs<ExtArgs>
    updated?: boolean | Department$updatedArgs<ExtArgs>
    deleted?: boolean | Department$deletedArgs<ExtArgs>
    _count?: boolean | DepartmentCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["department"]>


  export type DepartmentSelectScalar = {
    id?: boolean
    uuid?: boolean
    code?: boolean
    name?: boolean
    description?: boolean
    status_id?: boolean
    department_head_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type DepartmentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    users?: boolean | Department$usersArgs<ExtArgs>
    department_head?: boolean | Department$department_headArgs<ExtArgs>
    created?: boolean | Department$createdArgs<ExtArgs>
    updated?: boolean | Department$updatedArgs<ExtArgs>
    deleted?: boolean | Department$deletedArgs<ExtArgs>
    _count?: boolean | DepartmentCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $DepartmentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Department"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      users: Prisma.$UserDetailPayload<ExtArgs>[]
      department_head: Prisma.$UserPayload<ExtArgs> | null
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      code: string
      name: string
      description: string | null
      status_id: number
      department_head_id: number | null
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["department"]>
    composites: {}
  }

  type DepartmentGetPayload<S extends boolean | null | undefined | DepartmentDefaultArgs> = $Result.GetResult<Prisma.$DepartmentPayload, S>

  type DepartmentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<DepartmentFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: DepartmentCountAggregateInputType | true
    }

  export interface DepartmentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Department'], meta: { name: 'Department' } }
    /**
     * Find zero or one Department that matches the filter.
     * @param {DepartmentFindUniqueArgs} args - Arguments to find a Department
     * @example
     * // Get one Department
     * const department = await prisma.department.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends DepartmentFindUniqueArgs>(args: SelectSubset<T, DepartmentFindUniqueArgs<ExtArgs>>): Prisma__DepartmentClient<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Department that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {DepartmentFindUniqueOrThrowArgs} args - Arguments to find a Department
     * @example
     * // Get one Department
     * const department = await prisma.department.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends DepartmentFindUniqueOrThrowArgs>(args: SelectSubset<T, DepartmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__DepartmentClient<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Department 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 {DepartmentFindFirstArgs} args - Arguments to find a Department
     * @example
     * // Get one Department
     * const department = await prisma.department.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends DepartmentFindFirstArgs>(args?: SelectSubset<T, DepartmentFindFirstArgs<ExtArgs>>): Prisma__DepartmentClient<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Department 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 {DepartmentFindFirstOrThrowArgs} args - Arguments to find a Department
     * @example
     * // Get one Department
     * const department = await prisma.department.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends DepartmentFindFirstOrThrowArgs>(args?: SelectSubset<T, DepartmentFindFirstOrThrowArgs<ExtArgs>>): Prisma__DepartmentClient<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Departments 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 {DepartmentFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Departments
     * const departments = await prisma.department.findMany()
     * 
     * // Get first 10 Departments
     * const departments = await prisma.department.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const departmentWithIdOnly = await prisma.department.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends DepartmentFindManyArgs>(args?: SelectSubset<T, DepartmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Department.
     * @param {DepartmentCreateArgs} args - Arguments to create a Department.
     * @example
     * // Create one Department
     * const Department = await prisma.department.create({
     *   data: {
     *     // ... data to create a Department
     *   }
     * })
     * 
     */
    create<T extends DepartmentCreateArgs>(args: SelectSubset<T, DepartmentCreateArgs<ExtArgs>>): Prisma__DepartmentClient<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Departments.
     * @param {DepartmentCreateManyArgs} args - Arguments to create many Departments.
     * @example
     * // Create many Departments
     * const department = await prisma.department.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends DepartmentCreateManyArgs>(args?: SelectSubset<T, DepartmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Department.
     * @param {DepartmentDeleteArgs} args - Arguments to delete one Department.
     * @example
     * // Delete one Department
     * const Department = await prisma.department.delete({
     *   where: {
     *     // ... filter to delete one Department
     *   }
     * })
     * 
     */
    delete<T extends DepartmentDeleteArgs>(args: SelectSubset<T, DepartmentDeleteArgs<ExtArgs>>): Prisma__DepartmentClient<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Department.
     * @param {DepartmentUpdateArgs} args - Arguments to update one Department.
     * @example
     * // Update one Department
     * const department = await prisma.department.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends DepartmentUpdateArgs>(args: SelectSubset<T, DepartmentUpdateArgs<ExtArgs>>): Prisma__DepartmentClient<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Departments.
     * @param {DepartmentDeleteManyArgs} args - Arguments to filter Departments to delete.
     * @example
     * // Delete a few Departments
     * const { count } = await prisma.department.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends DepartmentDeleteManyArgs>(args?: SelectSubset<T, DepartmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DepartmentUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Departments
     * const department = await prisma.department.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends DepartmentUpdateManyArgs>(args: SelectSubset<T, DepartmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Department.
     * @param {DepartmentUpsertArgs} args - Arguments to update or create a Department.
     * @example
     * // Update or create a Department
     * const department = await prisma.department.upsert({
     *   create: {
     *     // ... data to create a Department
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Department we want to update
     *   }
     * })
     */
    upsert<T extends DepartmentUpsertArgs>(args: SelectSubset<T, DepartmentUpsertArgs<ExtArgs>>): Prisma__DepartmentClient<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DepartmentCountArgs} args - Arguments to filter Departments to count.
     * @example
     * // Count the number of Departments
     * const count = await prisma.department.count({
     *   where: {
     *     // ... the filter for the Departments we want to count
     *   }
     * })
    **/
    count<T extends DepartmentCountArgs>(
      args?: Subset<T, DepartmentCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], DepartmentCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Department.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DepartmentAggregateArgs} 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<T extends DepartmentAggregateArgs>(args: Subset<T, DepartmentAggregateArgs>): Prisma.PrismaPromise<GetDepartmentAggregateType<T>>

    /**
     * Group by Department.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DepartmentGroupByArgs} 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 DepartmentGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: DepartmentGroupByArgs['orderBy'] }
        : { orderBy?: DepartmentGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, DepartmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDepartmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Department model
   */
  readonly fields: DepartmentFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Department.
   * 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__DepartmentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    users<T extends Department$usersArgs<ExtArgs> = {}>(args?: Subset<T, Department$usersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserDetailPayload<ExtArgs>, T, "findMany"> | Null>
    department_head<T extends Department$department_headArgs<ExtArgs> = {}>(args?: Subset<T, Department$department_headArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    created<T extends Department$createdArgs<ExtArgs> = {}>(args?: Subset<T, Department$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends Department$updatedArgs<ExtArgs> = {}>(args?: Subset<T, Department$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends Department$deletedArgs<ExtArgs> = {}>(args?: Subset<T, Department$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Department model
   */ 
  interface DepartmentFieldRefs {
    readonly id: FieldRef<"Department", 'Int'>
    readonly uuid: FieldRef<"Department", 'String'>
    readonly code: FieldRef<"Department", 'String'>
    readonly name: FieldRef<"Department", 'String'>
    readonly description: FieldRef<"Department", 'String'>
    readonly status_id: FieldRef<"Department", 'Int'>
    readonly department_head_id: FieldRef<"Department", 'Int'>
    readonly company_id: FieldRef<"Department", 'Int'>
    readonly created_by: FieldRef<"Department", 'Int'>
    readonly updated_by: FieldRef<"Department", 'Int'>
    readonly deleted_by: FieldRef<"Department", 'Int'>
    readonly created_at: FieldRef<"Department", 'DateTime'>
    readonly updated_at: FieldRef<"Department", 'DateTime'>
    readonly deleted_at: FieldRef<"Department", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * Department findUnique
   */
  export type DepartmentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    /**
     * Filter, which Department to fetch.
     */
    where: DepartmentWhereUniqueInput
  }

  /**
   * Department findUniqueOrThrow
   */
  export type DepartmentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    /**
     * Filter, which Department to fetch.
     */
    where: DepartmentWhereUniqueInput
  }

  /**
   * Department findFirst
   */
  export type DepartmentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    /**
     * Filter, which Department to fetch.
     */
    where?: DepartmentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Departments to fetch.
     */
    orderBy?: DepartmentOrderByWithRelationInput | DepartmentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Departments.
     */
    cursor?: DepartmentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Departments from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Departments.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Departments.
     */
    distinct?: DepartmentScalarFieldEnum | DepartmentScalarFieldEnum[]
  }

  /**
   * Department findFirstOrThrow
   */
  export type DepartmentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    /**
     * Filter, which Department to fetch.
     */
    where?: DepartmentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Departments to fetch.
     */
    orderBy?: DepartmentOrderByWithRelationInput | DepartmentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Departments.
     */
    cursor?: DepartmentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Departments from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Departments.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Departments.
     */
    distinct?: DepartmentScalarFieldEnum | DepartmentScalarFieldEnum[]
  }

  /**
   * Department findMany
   */
  export type DepartmentFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    /**
     * Filter, which Departments to fetch.
     */
    where?: DepartmentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Departments to fetch.
     */
    orderBy?: DepartmentOrderByWithRelationInput | DepartmentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Departments.
     */
    cursor?: DepartmentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Departments from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Departments.
     */
    skip?: number
    distinct?: DepartmentScalarFieldEnum | DepartmentScalarFieldEnum[]
  }

  /**
   * Department create
   */
  export type DepartmentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    /**
     * The data needed to create a Department.
     */
    data: XOR<DepartmentCreateInput, DepartmentUncheckedCreateInput>
  }

  /**
   * Department createMany
   */
  export type DepartmentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Departments.
     */
    data: DepartmentCreateManyInput | DepartmentCreateManyInput[]
  }

  /**
   * Department update
   */
  export type DepartmentUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    /**
     * The data needed to update a Department.
     */
    data: XOR<DepartmentUpdateInput, DepartmentUncheckedUpdateInput>
    /**
     * Choose, which Department to update.
     */
    where: DepartmentWhereUniqueInput
  }

  /**
   * Department updateMany
   */
  export type DepartmentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Departments.
     */
    data: XOR<DepartmentUpdateManyMutationInput, DepartmentUncheckedUpdateManyInput>
    /**
     * Filter which Departments to update
     */
    where?: DepartmentWhereInput
  }

  /**
   * Department upsert
   */
  export type DepartmentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    /**
     * The filter to search for the Department to update in case it exists.
     */
    where: DepartmentWhereUniqueInput
    /**
     * In case the Department found by the `where` argument doesn't exist, create a new Department with this data.
     */
    create: XOR<DepartmentCreateInput, DepartmentUncheckedCreateInput>
    /**
     * In case the Department was found with the provided `where` argument, update it with this data.
     */
    update: XOR<DepartmentUpdateInput, DepartmentUncheckedUpdateInput>
  }

  /**
   * Department delete
   */
  export type DepartmentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    /**
     * Filter which Department to delete.
     */
    where: DepartmentWhereUniqueInput
  }

  /**
   * Department deleteMany
   */
  export type DepartmentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Departments to delete
     */
    where?: DepartmentWhereInput
  }

  /**
   * Department.users
   */
  export type Department$usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserDetail
     */
    select?: UserDetailSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserDetailInclude<ExtArgs> | null
    where?: UserDetailWhereInput
    orderBy?: UserDetailOrderByWithRelationInput | UserDetailOrderByWithRelationInput[]
    cursor?: UserDetailWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserDetailScalarFieldEnum | UserDetailScalarFieldEnum[]
  }

  /**
   * Department.department_head
   */
  export type Department$department_headArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Department.created
   */
  export type Department$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Department.updated
   */
  export type Department$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Department.deleted
   */
  export type Department$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Department without action
   */
  export type DepartmentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
  }


  /**
   * Model RequestLog
   */

  export type AggregateRequestLog = {
    _count: RequestLogCountAggregateOutputType | null
    _avg: RequestLogAvgAggregateOutputType | null
    _sum: RequestLogSumAggregateOutputType | null
    _min: RequestLogMinAggregateOutputType | null
    _max: RequestLogMaxAggregateOutputType | null
  }

  export type RequestLogAvgAggregateOutputType = {
    id: number | null
    user_id: number | null
    res_code: number | null
    status_id: number | null
    company_id: number | null
  }

  export type RequestLogSumAggregateOutputType = {
    id: bigint | null
    user_id: number | null
    res_code: number | null
    status_id: number | null
    company_id: number | null
  }

  export type RequestLogMinAggregateOutputType = {
    id: bigint | null
    uuid: string | null
    user_id: number | null
    req_method: string | null
    req_url: string | null
    req_body: string | null
    res_status: boolean | null
    res_code: number | null
    res_message: string | null
    req_response: string | null
    req_headers: string | null
    req_ip: string | null
    req_device: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type RequestLogMaxAggregateOutputType = {
    id: bigint | null
    uuid: string | null
    user_id: number | null
    req_method: string | null
    req_url: string | null
    req_body: string | null
    res_status: boolean | null
    res_code: number | null
    res_message: string | null
    req_response: string | null
    req_headers: string | null
    req_ip: string | null
    req_device: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type RequestLogCountAggregateOutputType = {
    id: number
    uuid: number
    user_id: number
    req_method: number
    req_url: number
    req_body: number
    res_status: number
    res_code: number
    res_message: number
    req_response: number
    req_headers: number
    req_ip: number
    req_device: number
    status_id: number
    company_id: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type RequestLogAvgAggregateInputType = {
    id?: true
    user_id?: true
    res_code?: true
    status_id?: true
    company_id?: true
  }

  export type RequestLogSumAggregateInputType = {
    id?: true
    user_id?: true
    res_code?: true
    status_id?: true
    company_id?: true
  }

  export type RequestLogMinAggregateInputType = {
    id?: true
    uuid?: true
    user_id?: true
    req_method?: true
    req_url?: true
    req_body?: true
    res_status?: true
    res_code?: true
    res_message?: true
    req_response?: true
    req_headers?: true
    req_ip?: true
    req_device?: true
    status_id?: true
    company_id?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type RequestLogMaxAggregateInputType = {
    id?: true
    uuid?: true
    user_id?: true
    req_method?: true
    req_url?: true
    req_body?: true
    res_status?: true
    res_code?: true
    res_message?: true
    req_response?: true
    req_headers?: true
    req_ip?: true
    req_device?: true
    status_id?: true
    company_id?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type RequestLogCountAggregateInputType = {
    id?: true
    uuid?: true
    user_id?: true
    req_method?: true
    req_url?: true
    req_body?: true
    res_status?: true
    res_code?: true
    res_message?: true
    req_response?: true
    req_headers?: true
    req_ip?: true
    req_device?: true
    status_id?: true
    company_id?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type RequestLogAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which RequestLog to aggregate.
     */
    where?: RequestLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of RequestLogs to fetch.
     */
    orderBy?: RequestLogOrderByWithRelationInput | RequestLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: RequestLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` RequestLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` RequestLogs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned RequestLogs
    **/
    _count?: true | RequestLogCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: RequestLogAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: RequestLogSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: RequestLogMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: RequestLogMaxAggregateInputType
  }

  export type GetRequestLogAggregateType<T extends RequestLogAggregateArgs> = {
        [P in keyof T & keyof AggregateRequestLog]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateRequestLog[P]>
      : GetScalarType<T[P], AggregateRequestLog[P]>
  }




  export type RequestLogGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RequestLogWhereInput
    orderBy?: RequestLogOrderByWithAggregationInput | RequestLogOrderByWithAggregationInput[]
    by: RequestLogScalarFieldEnum[] | RequestLogScalarFieldEnum
    having?: RequestLogScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: RequestLogCountAggregateInputType | true
    _avg?: RequestLogAvgAggregateInputType
    _sum?: RequestLogSumAggregateInputType
    _min?: RequestLogMinAggregateInputType
    _max?: RequestLogMaxAggregateInputType
  }

  export type RequestLogGroupByOutputType = {
    id: bigint
    uuid: string
    user_id: number | null
    req_method: string | null
    req_url: string | null
    req_body: string | null
    res_status: boolean
    res_code: number
    res_message: string | null
    req_response: string | null
    req_headers: string | null
    req_ip: string | null
    req_device: string | null
    status_id: number
    company_id: number
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: RequestLogCountAggregateOutputType | null
    _avg: RequestLogAvgAggregateOutputType | null
    _sum: RequestLogSumAggregateOutputType | null
    _min: RequestLogMinAggregateOutputType | null
    _max: RequestLogMaxAggregateOutputType | null
  }

  type GetRequestLogGroupByPayload<T extends RequestLogGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<RequestLogGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof RequestLogGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], RequestLogGroupByOutputType[P]>
            : GetScalarType<T[P], RequestLogGroupByOutputType[P]>
        }
      >
    >


  export type RequestLogSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    user_id?: boolean
    req_method?: boolean
    req_url?: boolean
    req_body?: boolean
    res_status?: boolean
    res_code?: boolean
    res_message?: boolean
    req_response?: boolean
    req_headers?: boolean
    req_ip?: boolean
    req_device?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    user?: boolean | RequestLog$userArgs<ExtArgs>
  }, ExtArgs["result"]["requestLog"]>


  export type RequestLogSelectScalar = {
    id?: boolean
    uuid?: boolean
    user_id?: boolean
    req_method?: boolean
    req_url?: boolean
    req_body?: boolean
    res_status?: boolean
    res_code?: boolean
    res_message?: boolean
    req_response?: boolean
    req_headers?: boolean
    req_ip?: boolean
    req_device?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type RequestLogInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    user?: boolean | RequestLog$userArgs<ExtArgs>
  }

  export type $RequestLogPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "RequestLog"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      user: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: bigint
      uuid: string
      user_id: number | null
      req_method: string | null
      req_url: string | null
      req_body: string | null
      res_status: boolean
      res_code: number
      res_message: string | null
      req_response: string | null
      req_headers: string | null
      req_ip: string | null
      req_device: string | null
      status_id: number
      company_id: number
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["requestLog"]>
    composites: {}
  }

  type RequestLogGetPayload<S extends boolean | null | undefined | RequestLogDefaultArgs> = $Result.GetResult<Prisma.$RequestLogPayload, S>

  type RequestLogCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<RequestLogFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: RequestLogCountAggregateInputType | true
    }

  export interface RequestLogDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RequestLog'], meta: { name: 'RequestLog' } }
    /**
     * Find zero or one RequestLog that matches the filter.
     * @param {RequestLogFindUniqueArgs} args - Arguments to find a RequestLog
     * @example
     * // Get one RequestLog
     * const requestLog = await prisma.requestLog.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends RequestLogFindUniqueArgs>(args: SelectSubset<T, RequestLogFindUniqueArgs<ExtArgs>>): Prisma__RequestLogClient<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one RequestLog that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {RequestLogFindUniqueOrThrowArgs} args - Arguments to find a RequestLog
     * @example
     * // Get one RequestLog
     * const requestLog = await prisma.requestLog.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends RequestLogFindUniqueOrThrowArgs>(args: SelectSubset<T, RequestLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RequestLogClient<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first RequestLog 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 {RequestLogFindFirstArgs} args - Arguments to find a RequestLog
     * @example
     * // Get one RequestLog
     * const requestLog = await prisma.requestLog.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends RequestLogFindFirstArgs>(args?: SelectSubset<T, RequestLogFindFirstArgs<ExtArgs>>): Prisma__RequestLogClient<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first RequestLog 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 {RequestLogFindFirstOrThrowArgs} args - Arguments to find a RequestLog
     * @example
     * // Get one RequestLog
     * const requestLog = await prisma.requestLog.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends RequestLogFindFirstOrThrowArgs>(args?: SelectSubset<T, RequestLogFindFirstOrThrowArgs<ExtArgs>>): Prisma__RequestLogClient<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more RequestLogs 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 {RequestLogFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all RequestLogs
     * const requestLogs = await prisma.requestLog.findMany()
     * 
     * // Get first 10 RequestLogs
     * const requestLogs = await prisma.requestLog.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const requestLogWithIdOnly = await prisma.requestLog.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends RequestLogFindManyArgs>(args?: SelectSubset<T, RequestLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a RequestLog.
     * @param {RequestLogCreateArgs} args - Arguments to create a RequestLog.
     * @example
     * // Create one RequestLog
     * const RequestLog = await prisma.requestLog.create({
     *   data: {
     *     // ... data to create a RequestLog
     *   }
     * })
     * 
     */
    create<T extends RequestLogCreateArgs>(args: SelectSubset<T, RequestLogCreateArgs<ExtArgs>>): Prisma__RequestLogClient<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many RequestLogs.
     * @param {RequestLogCreateManyArgs} args - Arguments to create many RequestLogs.
     * @example
     * // Create many RequestLogs
     * const requestLog = await prisma.requestLog.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends RequestLogCreateManyArgs>(args?: SelectSubset<T, RequestLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a RequestLog.
     * @param {RequestLogDeleteArgs} args - Arguments to delete one RequestLog.
     * @example
     * // Delete one RequestLog
     * const RequestLog = await prisma.requestLog.delete({
     *   where: {
     *     // ... filter to delete one RequestLog
     *   }
     * })
     * 
     */
    delete<T extends RequestLogDeleteArgs>(args: SelectSubset<T, RequestLogDeleteArgs<ExtArgs>>): Prisma__RequestLogClient<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one RequestLog.
     * @param {RequestLogUpdateArgs} args - Arguments to update one RequestLog.
     * @example
     * // Update one RequestLog
     * const requestLog = await prisma.requestLog.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends RequestLogUpdateArgs>(args: SelectSubset<T, RequestLogUpdateArgs<ExtArgs>>): Prisma__RequestLogClient<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more RequestLogs.
     * @param {RequestLogDeleteManyArgs} args - Arguments to filter RequestLogs to delete.
     * @example
     * // Delete a few RequestLogs
     * const { count } = await prisma.requestLog.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends RequestLogDeleteManyArgs>(args?: SelectSubset<T, RequestLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more RequestLogs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RequestLogUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many RequestLogs
     * const requestLog = await prisma.requestLog.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends RequestLogUpdateManyArgs>(args: SelectSubset<T, RequestLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one RequestLog.
     * @param {RequestLogUpsertArgs} args - Arguments to update or create a RequestLog.
     * @example
     * // Update or create a RequestLog
     * const requestLog = await prisma.requestLog.upsert({
     *   create: {
     *     // ... data to create a RequestLog
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the RequestLog we want to update
     *   }
     * })
     */
    upsert<T extends RequestLogUpsertArgs>(args: SelectSubset<T, RequestLogUpsertArgs<ExtArgs>>): Prisma__RequestLogClient<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of RequestLogs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RequestLogCountArgs} args - Arguments to filter RequestLogs to count.
     * @example
     * // Count the number of RequestLogs
     * const count = await prisma.requestLog.count({
     *   where: {
     *     // ... the filter for the RequestLogs we want to count
     *   }
     * })
    **/
    count<T extends RequestLogCountArgs>(
      args?: Subset<T, RequestLogCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], RequestLogCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a RequestLog.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RequestLogAggregateArgs} 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<T extends RequestLogAggregateArgs>(args: Subset<T, RequestLogAggregateArgs>): Prisma.PrismaPromise<GetRequestLogAggregateType<T>>

    /**
     * Group by RequestLog.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RequestLogGroupByArgs} 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 RequestLogGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: RequestLogGroupByArgs['orderBy'] }
        : { orderBy?: RequestLogGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, RequestLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRequestLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the RequestLog model
   */
  readonly fields: RequestLogFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for RequestLog.
   * 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__RequestLogClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    user<T extends RequestLog$userArgs<ExtArgs> = {}>(args?: Subset<T, RequestLog$userArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the RequestLog model
   */ 
  interface RequestLogFieldRefs {
    readonly id: FieldRef<"RequestLog", 'BigInt'>
    readonly uuid: FieldRef<"RequestLog", 'String'>
    readonly user_id: FieldRef<"RequestLog", 'Int'>
    readonly req_method: FieldRef<"RequestLog", 'String'>
    readonly req_url: FieldRef<"RequestLog", 'String'>
    readonly req_body: FieldRef<"RequestLog", 'String'>
    readonly res_status: FieldRef<"RequestLog", 'Boolean'>
    readonly res_code: FieldRef<"RequestLog", 'Int'>
    readonly res_message: FieldRef<"RequestLog", 'String'>
    readonly req_response: FieldRef<"RequestLog", 'String'>
    readonly req_headers: FieldRef<"RequestLog", 'String'>
    readonly req_ip: FieldRef<"RequestLog", 'String'>
    readonly req_device: FieldRef<"RequestLog", 'String'>
    readonly status_id: FieldRef<"RequestLog", 'Int'>
    readonly company_id: FieldRef<"RequestLog", 'Int'>
    readonly created_at: FieldRef<"RequestLog", 'DateTime'>
    readonly updated_at: FieldRef<"RequestLog", 'DateTime'>
    readonly deleted_at: FieldRef<"RequestLog", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * RequestLog findUnique
   */
  export type RequestLogFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    /**
     * Filter, which RequestLog to fetch.
     */
    where: RequestLogWhereUniqueInput
  }

  /**
   * RequestLog findUniqueOrThrow
   */
  export type RequestLogFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    /**
     * Filter, which RequestLog to fetch.
     */
    where: RequestLogWhereUniqueInput
  }

  /**
   * RequestLog findFirst
   */
  export type RequestLogFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    /**
     * Filter, which RequestLog to fetch.
     */
    where?: RequestLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of RequestLogs to fetch.
     */
    orderBy?: RequestLogOrderByWithRelationInput | RequestLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for RequestLogs.
     */
    cursor?: RequestLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` RequestLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` RequestLogs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of RequestLogs.
     */
    distinct?: RequestLogScalarFieldEnum | RequestLogScalarFieldEnum[]
  }

  /**
   * RequestLog findFirstOrThrow
   */
  export type RequestLogFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    /**
     * Filter, which RequestLog to fetch.
     */
    where?: RequestLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of RequestLogs to fetch.
     */
    orderBy?: RequestLogOrderByWithRelationInput | RequestLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for RequestLogs.
     */
    cursor?: RequestLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` RequestLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` RequestLogs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of RequestLogs.
     */
    distinct?: RequestLogScalarFieldEnum | RequestLogScalarFieldEnum[]
  }

  /**
   * RequestLog findMany
   */
  export type RequestLogFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    /**
     * Filter, which RequestLogs to fetch.
     */
    where?: RequestLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of RequestLogs to fetch.
     */
    orderBy?: RequestLogOrderByWithRelationInput | RequestLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing RequestLogs.
     */
    cursor?: RequestLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` RequestLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` RequestLogs.
     */
    skip?: number
    distinct?: RequestLogScalarFieldEnum | RequestLogScalarFieldEnum[]
  }

  /**
   * RequestLog create
   */
  export type RequestLogCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    /**
     * The data needed to create a RequestLog.
     */
    data: XOR<RequestLogCreateInput, RequestLogUncheckedCreateInput>
  }

  /**
   * RequestLog createMany
   */
  export type RequestLogCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many RequestLogs.
     */
    data: RequestLogCreateManyInput | RequestLogCreateManyInput[]
  }

  /**
   * RequestLog update
   */
  export type RequestLogUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    /**
     * The data needed to update a RequestLog.
     */
    data: XOR<RequestLogUpdateInput, RequestLogUncheckedUpdateInput>
    /**
     * Choose, which RequestLog to update.
     */
    where: RequestLogWhereUniqueInput
  }

  /**
   * RequestLog updateMany
   */
  export type RequestLogUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update RequestLogs.
     */
    data: XOR<RequestLogUpdateManyMutationInput, RequestLogUncheckedUpdateManyInput>
    /**
     * Filter which RequestLogs to update
     */
    where?: RequestLogWhereInput
  }

  /**
   * RequestLog upsert
   */
  export type RequestLogUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    /**
     * The filter to search for the RequestLog to update in case it exists.
     */
    where: RequestLogWhereUniqueInput
    /**
     * In case the RequestLog found by the `where` argument doesn't exist, create a new RequestLog with this data.
     */
    create: XOR<RequestLogCreateInput, RequestLogUncheckedCreateInput>
    /**
     * In case the RequestLog was found with the provided `where` argument, update it with this data.
     */
    update: XOR<RequestLogUpdateInput, RequestLogUncheckedUpdateInput>
  }

  /**
   * RequestLog delete
   */
  export type RequestLogDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    /**
     * Filter which RequestLog to delete.
     */
    where: RequestLogWhereUniqueInput
  }

  /**
   * RequestLog deleteMany
   */
  export type RequestLogDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which RequestLogs to delete
     */
    where?: RequestLogWhereInput
  }

  /**
   * RequestLog.user
   */
  export type RequestLog$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * RequestLog without action
   */
  export type RequestLogDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
  }


  /**
   * Model FinancialYear
   */

  export type AggregateFinancialYear = {
    _count: FinancialYearCountAggregateOutputType | null
    _avg: FinancialYearAvgAggregateOutputType | null
    _sum: FinancialYearSumAggregateOutputType | null
    _min: FinancialYearMinAggregateOutputType | null
    _max: FinancialYearMaxAggregateOutputType | null
  }

  export type FinancialYearAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type FinancialYearSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type FinancialYearMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    code: string | null
    is_freezed: boolean | null
    start_date: Date | null
    end_date: Date | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type FinancialYearMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    code: string | null
    is_freezed: boolean | null
    start_date: Date | null
    end_date: Date | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type FinancialYearCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    code: number
    is_freezed: number
    start_date: number
    end_date: number
    status_id: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type FinancialYearAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type FinancialYearSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type FinancialYearMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    code?: true
    is_freezed?: true
    start_date?: true
    end_date?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type FinancialYearMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    code?: true
    is_freezed?: true
    start_date?: true
    end_date?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type FinancialYearCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    code?: true
    is_freezed?: true
    start_date?: true
    end_date?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type FinancialYearAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which FinancialYear to aggregate.
     */
    where?: FinancialYearWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FinancialYears to fetch.
     */
    orderBy?: FinancialYearOrderByWithRelationInput | FinancialYearOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: FinancialYearWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FinancialYears from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FinancialYears.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned FinancialYears
    **/
    _count?: true | FinancialYearCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: FinancialYearAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: FinancialYearSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: FinancialYearMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: FinancialYearMaxAggregateInputType
  }

  export type GetFinancialYearAggregateType<T extends FinancialYearAggregateArgs> = {
        [P in keyof T & keyof AggregateFinancialYear]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateFinancialYear[P]>
      : GetScalarType<T[P], AggregateFinancialYear[P]>
  }




  export type FinancialYearGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: FinancialYearWhereInput
    orderBy?: FinancialYearOrderByWithAggregationInput | FinancialYearOrderByWithAggregationInput[]
    by: FinancialYearScalarFieldEnum[] | FinancialYearScalarFieldEnum
    having?: FinancialYearScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: FinancialYearCountAggregateInputType | true
    _avg?: FinancialYearAvgAggregateInputType
    _sum?: FinancialYearSumAggregateInputType
    _min?: FinancialYearMinAggregateInputType
    _max?: FinancialYearMaxAggregateInputType
  }

  export type FinancialYearGroupByOutputType = {
    id: number
    uuid: string
    name: string
    code: string
    is_freezed: boolean
    start_date: Date
    end_date: Date
    status_id: number
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: FinancialYearCountAggregateOutputType | null
    _avg: FinancialYearAvgAggregateOutputType | null
    _sum: FinancialYearSumAggregateOutputType | null
    _min: FinancialYearMinAggregateOutputType | null
    _max: FinancialYearMaxAggregateOutputType | null
  }

  type GetFinancialYearGroupByPayload<T extends FinancialYearGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<FinancialYearGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof FinancialYearGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], FinancialYearGroupByOutputType[P]>
            : GetScalarType<T[P], FinancialYearGroupByOutputType[P]>
        }
      >
    >


  export type FinancialYearSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    code?: boolean
    is_freezed?: boolean
    start_date?: boolean
    end_date?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    document_sequence?: boolean | FinancialYear$document_sequenceArgs<ExtArgs>
    created?: boolean | FinancialYear$createdArgs<ExtArgs>
    updated?: boolean | FinancialYear$updatedArgs<ExtArgs>
    deleted?: boolean | FinancialYear$deletedArgs<ExtArgs>
    _count?: boolean | FinancialYearCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["financialYear"]>


  export type FinancialYearSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    code?: boolean
    is_freezed?: boolean
    start_date?: boolean
    end_date?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type FinancialYearInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    document_sequence?: boolean | FinancialYear$document_sequenceArgs<ExtArgs>
    created?: boolean | FinancialYear$createdArgs<ExtArgs>
    updated?: boolean | FinancialYear$updatedArgs<ExtArgs>
    deleted?: boolean | FinancialYear$deletedArgs<ExtArgs>
    _count?: boolean | FinancialYearCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $FinancialYearPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "FinancialYear"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      document_sequence: Prisma.$DocumentSequencePayload<ExtArgs>[]
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      code: string
      is_freezed: boolean
      start_date: Date
      end_date: Date
      status_id: number
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["financialYear"]>
    composites: {}
  }

  type FinancialYearGetPayload<S extends boolean | null | undefined | FinancialYearDefaultArgs> = $Result.GetResult<Prisma.$FinancialYearPayload, S>

  type FinancialYearCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<FinancialYearFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: FinancialYearCountAggregateInputType | true
    }

  export interface FinancialYearDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FinancialYear'], meta: { name: 'FinancialYear' } }
    /**
     * Find zero or one FinancialYear that matches the filter.
     * @param {FinancialYearFindUniqueArgs} args - Arguments to find a FinancialYear
     * @example
     * // Get one FinancialYear
     * const financialYear = await prisma.financialYear.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends FinancialYearFindUniqueArgs>(args: SelectSubset<T, FinancialYearFindUniqueArgs<ExtArgs>>): Prisma__FinancialYearClient<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one FinancialYear that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {FinancialYearFindUniqueOrThrowArgs} args - Arguments to find a FinancialYear
     * @example
     * // Get one FinancialYear
     * const financialYear = await prisma.financialYear.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends FinancialYearFindUniqueOrThrowArgs>(args: SelectSubset<T, FinancialYearFindUniqueOrThrowArgs<ExtArgs>>): Prisma__FinancialYearClient<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first FinancialYear 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 {FinancialYearFindFirstArgs} args - Arguments to find a FinancialYear
     * @example
     * // Get one FinancialYear
     * const financialYear = await prisma.financialYear.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends FinancialYearFindFirstArgs>(args?: SelectSubset<T, FinancialYearFindFirstArgs<ExtArgs>>): Prisma__FinancialYearClient<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first FinancialYear 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 {FinancialYearFindFirstOrThrowArgs} args - Arguments to find a FinancialYear
     * @example
     * // Get one FinancialYear
     * const financialYear = await prisma.financialYear.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends FinancialYearFindFirstOrThrowArgs>(args?: SelectSubset<T, FinancialYearFindFirstOrThrowArgs<ExtArgs>>): Prisma__FinancialYearClient<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more FinancialYears 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 {FinancialYearFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all FinancialYears
     * const financialYears = await prisma.financialYear.findMany()
     * 
     * // Get first 10 FinancialYears
     * const financialYears = await prisma.financialYear.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const financialYearWithIdOnly = await prisma.financialYear.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends FinancialYearFindManyArgs>(args?: SelectSubset<T, FinancialYearFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a FinancialYear.
     * @param {FinancialYearCreateArgs} args - Arguments to create a FinancialYear.
     * @example
     * // Create one FinancialYear
     * const FinancialYear = await prisma.financialYear.create({
     *   data: {
     *     // ... data to create a FinancialYear
     *   }
     * })
     * 
     */
    create<T extends FinancialYearCreateArgs>(args: SelectSubset<T, FinancialYearCreateArgs<ExtArgs>>): Prisma__FinancialYearClient<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many FinancialYears.
     * @param {FinancialYearCreateManyArgs} args - Arguments to create many FinancialYears.
     * @example
     * // Create many FinancialYears
     * const financialYear = await prisma.financialYear.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends FinancialYearCreateManyArgs>(args?: SelectSubset<T, FinancialYearCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a FinancialYear.
     * @param {FinancialYearDeleteArgs} args - Arguments to delete one FinancialYear.
     * @example
     * // Delete one FinancialYear
     * const FinancialYear = await prisma.financialYear.delete({
     *   where: {
     *     // ... filter to delete one FinancialYear
     *   }
     * })
     * 
     */
    delete<T extends FinancialYearDeleteArgs>(args: SelectSubset<T, FinancialYearDeleteArgs<ExtArgs>>): Prisma__FinancialYearClient<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one FinancialYear.
     * @param {FinancialYearUpdateArgs} args - Arguments to update one FinancialYear.
     * @example
     * // Update one FinancialYear
     * const financialYear = await prisma.financialYear.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends FinancialYearUpdateArgs>(args: SelectSubset<T, FinancialYearUpdateArgs<ExtArgs>>): Prisma__FinancialYearClient<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more FinancialYears.
     * @param {FinancialYearDeleteManyArgs} args - Arguments to filter FinancialYears to delete.
     * @example
     * // Delete a few FinancialYears
     * const { count } = await prisma.financialYear.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends FinancialYearDeleteManyArgs>(args?: SelectSubset<T, FinancialYearDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more FinancialYears.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FinancialYearUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many FinancialYears
     * const financialYear = await prisma.financialYear.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends FinancialYearUpdateManyArgs>(args: SelectSubset<T, FinancialYearUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one FinancialYear.
     * @param {FinancialYearUpsertArgs} args - Arguments to update or create a FinancialYear.
     * @example
     * // Update or create a FinancialYear
     * const financialYear = await prisma.financialYear.upsert({
     *   create: {
     *     // ... data to create a FinancialYear
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the FinancialYear we want to update
     *   }
     * })
     */
    upsert<T extends FinancialYearUpsertArgs>(args: SelectSubset<T, FinancialYearUpsertArgs<ExtArgs>>): Prisma__FinancialYearClient<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of FinancialYears.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FinancialYearCountArgs} args - Arguments to filter FinancialYears to count.
     * @example
     * // Count the number of FinancialYears
     * const count = await prisma.financialYear.count({
     *   where: {
     *     // ... the filter for the FinancialYears we want to count
     *   }
     * })
    **/
    count<T extends FinancialYearCountArgs>(
      args?: Subset<T, FinancialYearCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], FinancialYearCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a FinancialYear.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FinancialYearAggregateArgs} 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<T extends FinancialYearAggregateArgs>(args: Subset<T, FinancialYearAggregateArgs>): Prisma.PrismaPromise<GetFinancialYearAggregateType<T>>

    /**
     * Group by FinancialYear.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FinancialYearGroupByArgs} 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 FinancialYearGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: FinancialYearGroupByArgs['orderBy'] }
        : { orderBy?: FinancialYearGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, FinancialYearGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFinancialYearGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the FinancialYear model
   */
  readonly fields: FinancialYearFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for FinancialYear.
   * 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__FinancialYearClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    document_sequence<T extends FinancialYear$document_sequenceArgs<ExtArgs> = {}>(args?: Subset<T, FinancialYear$document_sequenceArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findMany"> | Null>
    created<T extends FinancialYear$createdArgs<ExtArgs> = {}>(args?: Subset<T, FinancialYear$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends FinancialYear$updatedArgs<ExtArgs> = {}>(args?: Subset<T, FinancialYear$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends FinancialYear$deletedArgs<ExtArgs> = {}>(args?: Subset<T, FinancialYear$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the FinancialYear model
   */ 
  interface FinancialYearFieldRefs {
    readonly id: FieldRef<"FinancialYear", 'Int'>
    readonly uuid: FieldRef<"FinancialYear", 'String'>
    readonly name: FieldRef<"FinancialYear", 'String'>
    readonly code: FieldRef<"FinancialYear", 'String'>
    readonly is_freezed: FieldRef<"FinancialYear", 'Boolean'>
    readonly start_date: FieldRef<"FinancialYear", 'DateTime'>
    readonly end_date: FieldRef<"FinancialYear", 'DateTime'>
    readonly status_id: FieldRef<"FinancialYear", 'Int'>
    readonly company_id: FieldRef<"FinancialYear", 'Int'>
    readonly created_by: FieldRef<"FinancialYear", 'Int'>
    readonly updated_by: FieldRef<"FinancialYear", 'Int'>
    readonly deleted_by: FieldRef<"FinancialYear", 'Int'>
    readonly created_at: FieldRef<"FinancialYear", 'DateTime'>
    readonly updated_at: FieldRef<"FinancialYear", 'DateTime'>
    readonly deleted_at: FieldRef<"FinancialYear", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * FinancialYear findUnique
   */
  export type FinancialYearFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    /**
     * Filter, which FinancialYear to fetch.
     */
    where: FinancialYearWhereUniqueInput
  }

  /**
   * FinancialYear findUniqueOrThrow
   */
  export type FinancialYearFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    /**
     * Filter, which FinancialYear to fetch.
     */
    where: FinancialYearWhereUniqueInput
  }

  /**
   * FinancialYear findFirst
   */
  export type FinancialYearFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    /**
     * Filter, which FinancialYear to fetch.
     */
    where?: FinancialYearWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FinancialYears to fetch.
     */
    orderBy?: FinancialYearOrderByWithRelationInput | FinancialYearOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for FinancialYears.
     */
    cursor?: FinancialYearWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FinancialYears from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FinancialYears.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of FinancialYears.
     */
    distinct?: FinancialYearScalarFieldEnum | FinancialYearScalarFieldEnum[]
  }

  /**
   * FinancialYear findFirstOrThrow
   */
  export type FinancialYearFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    /**
     * Filter, which FinancialYear to fetch.
     */
    where?: FinancialYearWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FinancialYears to fetch.
     */
    orderBy?: FinancialYearOrderByWithRelationInput | FinancialYearOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for FinancialYears.
     */
    cursor?: FinancialYearWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FinancialYears from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FinancialYears.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of FinancialYears.
     */
    distinct?: FinancialYearScalarFieldEnum | FinancialYearScalarFieldEnum[]
  }

  /**
   * FinancialYear findMany
   */
  export type FinancialYearFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    /**
     * Filter, which FinancialYears to fetch.
     */
    where?: FinancialYearWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FinancialYears to fetch.
     */
    orderBy?: FinancialYearOrderByWithRelationInput | FinancialYearOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing FinancialYears.
     */
    cursor?: FinancialYearWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FinancialYears from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FinancialYears.
     */
    skip?: number
    distinct?: FinancialYearScalarFieldEnum | FinancialYearScalarFieldEnum[]
  }

  /**
   * FinancialYear create
   */
  export type FinancialYearCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    /**
     * The data needed to create a FinancialYear.
     */
    data: XOR<FinancialYearCreateInput, FinancialYearUncheckedCreateInput>
  }

  /**
   * FinancialYear createMany
   */
  export type FinancialYearCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many FinancialYears.
     */
    data: FinancialYearCreateManyInput | FinancialYearCreateManyInput[]
  }

  /**
   * FinancialYear update
   */
  export type FinancialYearUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    /**
     * The data needed to update a FinancialYear.
     */
    data: XOR<FinancialYearUpdateInput, FinancialYearUncheckedUpdateInput>
    /**
     * Choose, which FinancialYear to update.
     */
    where: FinancialYearWhereUniqueInput
  }

  /**
   * FinancialYear updateMany
   */
  export type FinancialYearUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update FinancialYears.
     */
    data: XOR<FinancialYearUpdateManyMutationInput, FinancialYearUncheckedUpdateManyInput>
    /**
     * Filter which FinancialYears to update
     */
    where?: FinancialYearWhereInput
  }

  /**
   * FinancialYear upsert
   */
  export type FinancialYearUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    /**
     * The filter to search for the FinancialYear to update in case it exists.
     */
    where: FinancialYearWhereUniqueInput
    /**
     * In case the FinancialYear found by the `where` argument doesn't exist, create a new FinancialYear with this data.
     */
    create: XOR<FinancialYearCreateInput, FinancialYearUncheckedCreateInput>
    /**
     * In case the FinancialYear was found with the provided `where` argument, update it with this data.
     */
    update: XOR<FinancialYearUpdateInput, FinancialYearUncheckedUpdateInput>
  }

  /**
   * FinancialYear delete
   */
  export type FinancialYearDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    /**
     * Filter which FinancialYear to delete.
     */
    where: FinancialYearWhereUniqueInput
  }

  /**
   * FinancialYear deleteMany
   */
  export type FinancialYearDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which FinancialYears to delete
     */
    where?: FinancialYearWhereInput
  }

  /**
   * FinancialYear.document_sequence
   */
  export type FinancialYear$document_sequenceArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    where?: DocumentSequenceWhereInput
    orderBy?: DocumentSequenceOrderByWithRelationInput | DocumentSequenceOrderByWithRelationInput[]
    cursor?: DocumentSequenceWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DocumentSequenceScalarFieldEnum | DocumentSequenceScalarFieldEnum[]
  }

  /**
   * FinancialYear.created
   */
  export type FinancialYear$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * FinancialYear.updated
   */
  export type FinancialYear$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * FinancialYear.deleted
   */
  export type FinancialYear$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * FinancialYear without action
   */
  export type FinancialYearDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
  }


  /**
   * Model DocumentSequence
   */

  export type AggregateDocumentSequence = {
    _count: DocumentSequenceCountAggregateOutputType | null
    _avg: DocumentSequenceAvgAggregateOutputType | null
    _sum: DocumentSequenceSumAggregateOutputType | null
    _min: DocumentSequenceMinAggregateOutputType | null
    _max: DocumentSequenceMaxAggregateOutputType | null
  }

  export type DocumentSequenceAvgAggregateOutputType = {
    id: number | null
    financial_year_id: number | null
    current_sequence_no: number | null
    start_sequence_no: number | null
    end_sequence_no: number | null
    sequence_length: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type DocumentSequenceSumAggregateOutputType = {
    id: number | null
    financial_year_id: number | null
    current_sequence_no: number | null
    start_sequence_no: number | null
    end_sequence_no: number | null
    sequence_length: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type DocumentSequenceMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    module_name: string | null
    financial_year_id: number | null
    current_sequence_no: number | null
    start_sequence_no: number | null
    end_sequence_no: number | null
    sequence_length: number | null
    status_id: number | null
    code_format: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type DocumentSequenceMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    module_name: string | null
    financial_year_id: number | null
    current_sequence_no: number | null
    start_sequence_no: number | null
    end_sequence_no: number | null
    sequence_length: number | null
    status_id: number | null
    code_format: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type DocumentSequenceCountAggregateOutputType = {
    id: number
    uuid: number
    module_name: number
    financial_year_id: number
    current_sequence_no: number
    start_sequence_no: number
    end_sequence_no: number
    sequence_length: number
    status_id: number
    code_format: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type DocumentSequenceAvgAggregateInputType = {
    id?: true
    financial_year_id?: true
    current_sequence_no?: true
    start_sequence_no?: true
    end_sequence_no?: true
    sequence_length?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type DocumentSequenceSumAggregateInputType = {
    id?: true
    financial_year_id?: true
    current_sequence_no?: true
    start_sequence_no?: true
    end_sequence_no?: true
    sequence_length?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type DocumentSequenceMinAggregateInputType = {
    id?: true
    uuid?: true
    module_name?: true
    financial_year_id?: true
    current_sequence_no?: true
    start_sequence_no?: true
    end_sequence_no?: true
    sequence_length?: true
    status_id?: true
    code_format?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type DocumentSequenceMaxAggregateInputType = {
    id?: true
    uuid?: true
    module_name?: true
    financial_year_id?: true
    current_sequence_no?: true
    start_sequence_no?: true
    end_sequence_no?: true
    sequence_length?: true
    status_id?: true
    code_format?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type DocumentSequenceCountAggregateInputType = {
    id?: true
    uuid?: true
    module_name?: true
    financial_year_id?: true
    current_sequence_no?: true
    start_sequence_no?: true
    end_sequence_no?: true
    sequence_length?: true
    status_id?: true
    code_format?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type DocumentSequenceAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which DocumentSequence to aggregate.
     */
    where?: DocumentSequenceWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DocumentSequences to fetch.
     */
    orderBy?: DocumentSequenceOrderByWithRelationInput | DocumentSequenceOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: DocumentSequenceWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DocumentSequences from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DocumentSequences.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned DocumentSequences
    **/
    _count?: true | DocumentSequenceCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: DocumentSequenceAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: DocumentSequenceSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: DocumentSequenceMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: DocumentSequenceMaxAggregateInputType
  }

  export type GetDocumentSequenceAggregateType<T extends DocumentSequenceAggregateArgs> = {
        [P in keyof T & keyof AggregateDocumentSequence]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateDocumentSequence[P]>
      : GetScalarType<T[P], AggregateDocumentSequence[P]>
  }




  export type DocumentSequenceGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DocumentSequenceWhereInput
    orderBy?: DocumentSequenceOrderByWithAggregationInput | DocumentSequenceOrderByWithAggregationInput[]
    by: DocumentSequenceScalarFieldEnum[] | DocumentSequenceScalarFieldEnum
    having?: DocumentSequenceScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: DocumentSequenceCountAggregateInputType | true
    _avg?: DocumentSequenceAvgAggregateInputType
    _sum?: DocumentSequenceSumAggregateInputType
    _min?: DocumentSequenceMinAggregateInputType
    _max?: DocumentSequenceMaxAggregateInputType
  }

  export type DocumentSequenceGroupByOutputType = {
    id: number
    uuid: string
    module_name: string
    financial_year_id: number | null
    current_sequence_no: number
    start_sequence_no: number
    end_sequence_no: number
    sequence_length: number
    status_id: number
    code_format: string | null
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: DocumentSequenceCountAggregateOutputType | null
    _avg: DocumentSequenceAvgAggregateOutputType | null
    _sum: DocumentSequenceSumAggregateOutputType | null
    _min: DocumentSequenceMinAggregateOutputType | null
    _max: DocumentSequenceMaxAggregateOutputType | null
  }

  type GetDocumentSequenceGroupByPayload<T extends DocumentSequenceGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<DocumentSequenceGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof DocumentSequenceGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], DocumentSequenceGroupByOutputType[P]>
            : GetScalarType<T[P], DocumentSequenceGroupByOutputType[P]>
        }
      >
    >


  export type DocumentSequenceSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    module_name?: boolean
    financial_year_id?: boolean
    current_sequence_no?: boolean
    start_sequence_no?: boolean
    end_sequence_no?: boolean
    sequence_length?: boolean
    status_id?: boolean
    code_format?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    finanicial_year?: boolean | DocumentSequence$finanicial_yearArgs<ExtArgs>
    created?: boolean | DocumentSequence$createdArgs<ExtArgs>
    updated?: boolean | DocumentSequence$updatedArgs<ExtArgs>
    deleted?: boolean | DocumentSequence$deletedArgs<ExtArgs>
  }, ExtArgs["result"]["documentSequence"]>


  export type DocumentSequenceSelectScalar = {
    id?: boolean
    uuid?: boolean
    module_name?: boolean
    financial_year_id?: boolean
    current_sequence_no?: boolean
    start_sequence_no?: boolean
    end_sequence_no?: boolean
    sequence_length?: boolean
    status_id?: boolean
    code_format?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type DocumentSequenceInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    finanicial_year?: boolean | DocumentSequence$finanicial_yearArgs<ExtArgs>
    created?: boolean | DocumentSequence$createdArgs<ExtArgs>
    updated?: boolean | DocumentSequence$updatedArgs<ExtArgs>
    deleted?: boolean | DocumentSequence$deletedArgs<ExtArgs>
  }

  export type $DocumentSequencePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "DocumentSequence"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      finanicial_year: Prisma.$FinancialYearPayload<ExtArgs> | null
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      module_name: string
      financial_year_id: number | null
      current_sequence_no: number
      start_sequence_no: number
      end_sequence_no: number
      sequence_length: number
      status_id: number
      code_format: string | null
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["documentSequence"]>
    composites: {}
  }

  type DocumentSequenceGetPayload<S extends boolean | null | undefined | DocumentSequenceDefaultArgs> = $Result.GetResult<Prisma.$DocumentSequencePayload, S>

  type DocumentSequenceCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<DocumentSequenceFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: DocumentSequenceCountAggregateInputType | true
    }

  export interface DocumentSequenceDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DocumentSequence'], meta: { name: 'DocumentSequence' } }
    /**
     * Find zero or one DocumentSequence that matches the filter.
     * @param {DocumentSequenceFindUniqueArgs} args - Arguments to find a DocumentSequence
     * @example
     * // Get one DocumentSequence
     * const documentSequence = await prisma.documentSequence.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends DocumentSequenceFindUniqueArgs>(args: SelectSubset<T, DocumentSequenceFindUniqueArgs<ExtArgs>>): Prisma__DocumentSequenceClient<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one DocumentSequence that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {DocumentSequenceFindUniqueOrThrowArgs} args - Arguments to find a DocumentSequence
     * @example
     * // Get one DocumentSequence
     * const documentSequence = await prisma.documentSequence.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends DocumentSequenceFindUniqueOrThrowArgs>(args: SelectSubset<T, DocumentSequenceFindUniqueOrThrowArgs<ExtArgs>>): Prisma__DocumentSequenceClient<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first DocumentSequence 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 {DocumentSequenceFindFirstArgs} args - Arguments to find a DocumentSequence
     * @example
     * // Get one DocumentSequence
     * const documentSequence = await prisma.documentSequence.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends DocumentSequenceFindFirstArgs>(args?: SelectSubset<T, DocumentSequenceFindFirstArgs<ExtArgs>>): Prisma__DocumentSequenceClient<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first DocumentSequence 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 {DocumentSequenceFindFirstOrThrowArgs} args - Arguments to find a DocumentSequence
     * @example
     * // Get one DocumentSequence
     * const documentSequence = await prisma.documentSequence.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends DocumentSequenceFindFirstOrThrowArgs>(args?: SelectSubset<T, DocumentSequenceFindFirstOrThrowArgs<ExtArgs>>): Prisma__DocumentSequenceClient<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more DocumentSequences 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 {DocumentSequenceFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all DocumentSequences
     * const documentSequences = await prisma.documentSequence.findMany()
     * 
     * // Get first 10 DocumentSequences
     * const documentSequences = await prisma.documentSequence.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const documentSequenceWithIdOnly = await prisma.documentSequence.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends DocumentSequenceFindManyArgs>(args?: SelectSubset<T, DocumentSequenceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a DocumentSequence.
     * @param {DocumentSequenceCreateArgs} args - Arguments to create a DocumentSequence.
     * @example
     * // Create one DocumentSequence
     * const DocumentSequence = await prisma.documentSequence.create({
     *   data: {
     *     // ... data to create a DocumentSequence
     *   }
     * })
     * 
     */
    create<T extends DocumentSequenceCreateArgs>(args: SelectSubset<T, DocumentSequenceCreateArgs<ExtArgs>>): Prisma__DocumentSequenceClient<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many DocumentSequences.
     * @param {DocumentSequenceCreateManyArgs} args - Arguments to create many DocumentSequences.
     * @example
     * // Create many DocumentSequences
     * const documentSequence = await prisma.documentSequence.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends DocumentSequenceCreateManyArgs>(args?: SelectSubset<T, DocumentSequenceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a DocumentSequence.
     * @param {DocumentSequenceDeleteArgs} args - Arguments to delete one DocumentSequence.
     * @example
     * // Delete one DocumentSequence
     * const DocumentSequence = await prisma.documentSequence.delete({
     *   where: {
     *     // ... filter to delete one DocumentSequence
     *   }
     * })
     * 
     */
    delete<T extends DocumentSequenceDeleteArgs>(args: SelectSubset<T, DocumentSequenceDeleteArgs<ExtArgs>>): Prisma__DocumentSequenceClient<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one DocumentSequence.
     * @param {DocumentSequenceUpdateArgs} args - Arguments to update one DocumentSequence.
     * @example
     * // Update one DocumentSequence
     * const documentSequence = await prisma.documentSequence.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends DocumentSequenceUpdateArgs>(args: SelectSubset<T, DocumentSequenceUpdateArgs<ExtArgs>>): Prisma__DocumentSequenceClient<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more DocumentSequences.
     * @param {DocumentSequenceDeleteManyArgs} args - Arguments to filter DocumentSequences to delete.
     * @example
     * // Delete a few DocumentSequences
     * const { count } = await prisma.documentSequence.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends DocumentSequenceDeleteManyArgs>(args?: SelectSubset<T, DocumentSequenceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more DocumentSequences.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DocumentSequenceUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many DocumentSequences
     * const documentSequence = await prisma.documentSequence.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends DocumentSequenceUpdateManyArgs>(args: SelectSubset<T, DocumentSequenceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one DocumentSequence.
     * @param {DocumentSequenceUpsertArgs} args - Arguments to update or create a DocumentSequence.
     * @example
     * // Update or create a DocumentSequence
     * const documentSequence = await prisma.documentSequence.upsert({
     *   create: {
     *     // ... data to create a DocumentSequence
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the DocumentSequence we want to update
     *   }
     * })
     */
    upsert<T extends DocumentSequenceUpsertArgs>(args: SelectSubset<T, DocumentSequenceUpsertArgs<ExtArgs>>): Prisma__DocumentSequenceClient<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of DocumentSequences.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DocumentSequenceCountArgs} args - Arguments to filter DocumentSequences to count.
     * @example
     * // Count the number of DocumentSequences
     * const count = await prisma.documentSequence.count({
     *   where: {
     *     // ... the filter for the DocumentSequences we want to count
     *   }
     * })
    **/
    count<T extends DocumentSequenceCountArgs>(
      args?: Subset<T, DocumentSequenceCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], DocumentSequenceCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a DocumentSequence.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DocumentSequenceAggregateArgs} 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<T extends DocumentSequenceAggregateArgs>(args: Subset<T, DocumentSequenceAggregateArgs>): Prisma.PrismaPromise<GetDocumentSequenceAggregateType<T>>

    /**
     * Group by DocumentSequence.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DocumentSequenceGroupByArgs} 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 DocumentSequenceGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: DocumentSequenceGroupByArgs['orderBy'] }
        : { orderBy?: DocumentSequenceGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, DocumentSequenceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDocumentSequenceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the DocumentSequence model
   */
  readonly fields: DocumentSequenceFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for DocumentSequence.
   * 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__DocumentSequenceClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    finanicial_year<T extends DocumentSequence$finanicial_yearArgs<ExtArgs> = {}>(args?: Subset<T, DocumentSequence$finanicial_yearArgs<ExtArgs>>): Prisma__FinancialYearClient<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    created<T extends DocumentSequence$createdArgs<ExtArgs> = {}>(args?: Subset<T, DocumentSequence$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends DocumentSequence$updatedArgs<ExtArgs> = {}>(args?: Subset<T, DocumentSequence$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends DocumentSequence$deletedArgs<ExtArgs> = {}>(args?: Subset<T, DocumentSequence$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the DocumentSequence model
   */ 
  interface DocumentSequenceFieldRefs {
    readonly id: FieldRef<"DocumentSequence", 'Int'>
    readonly uuid: FieldRef<"DocumentSequence", 'String'>
    readonly module_name: FieldRef<"DocumentSequence", 'String'>
    readonly financial_year_id: FieldRef<"DocumentSequence", 'Int'>
    readonly current_sequence_no: FieldRef<"DocumentSequence", 'Int'>
    readonly start_sequence_no: FieldRef<"DocumentSequence", 'Int'>
    readonly end_sequence_no: FieldRef<"DocumentSequence", 'Int'>
    readonly sequence_length: FieldRef<"DocumentSequence", 'Int'>
    readonly status_id: FieldRef<"DocumentSequence", 'Int'>
    readonly code_format: FieldRef<"DocumentSequence", 'String'>
    readonly company_id: FieldRef<"DocumentSequence", 'Int'>
    readonly created_by: FieldRef<"DocumentSequence", 'Int'>
    readonly updated_by: FieldRef<"DocumentSequence", 'Int'>
    readonly deleted_by: FieldRef<"DocumentSequence", 'Int'>
    readonly created_at: FieldRef<"DocumentSequence", 'DateTime'>
    readonly updated_at: FieldRef<"DocumentSequence", 'DateTime'>
    readonly deleted_at: FieldRef<"DocumentSequence", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * DocumentSequence findUnique
   */
  export type DocumentSequenceFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    /**
     * Filter, which DocumentSequence to fetch.
     */
    where: DocumentSequenceWhereUniqueInput
  }

  /**
   * DocumentSequence findUniqueOrThrow
   */
  export type DocumentSequenceFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    /**
     * Filter, which DocumentSequence to fetch.
     */
    where: DocumentSequenceWhereUniqueInput
  }

  /**
   * DocumentSequence findFirst
   */
  export type DocumentSequenceFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    /**
     * Filter, which DocumentSequence to fetch.
     */
    where?: DocumentSequenceWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DocumentSequences to fetch.
     */
    orderBy?: DocumentSequenceOrderByWithRelationInput | DocumentSequenceOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for DocumentSequences.
     */
    cursor?: DocumentSequenceWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DocumentSequences from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DocumentSequences.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of DocumentSequences.
     */
    distinct?: DocumentSequenceScalarFieldEnum | DocumentSequenceScalarFieldEnum[]
  }

  /**
   * DocumentSequence findFirstOrThrow
   */
  export type DocumentSequenceFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    /**
     * Filter, which DocumentSequence to fetch.
     */
    where?: DocumentSequenceWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DocumentSequences to fetch.
     */
    orderBy?: DocumentSequenceOrderByWithRelationInput | DocumentSequenceOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for DocumentSequences.
     */
    cursor?: DocumentSequenceWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DocumentSequences from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DocumentSequences.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of DocumentSequences.
     */
    distinct?: DocumentSequenceScalarFieldEnum | DocumentSequenceScalarFieldEnum[]
  }

  /**
   * DocumentSequence findMany
   */
  export type DocumentSequenceFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    /**
     * Filter, which DocumentSequences to fetch.
     */
    where?: DocumentSequenceWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DocumentSequences to fetch.
     */
    orderBy?: DocumentSequenceOrderByWithRelationInput | DocumentSequenceOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing DocumentSequences.
     */
    cursor?: DocumentSequenceWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DocumentSequences from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DocumentSequences.
     */
    skip?: number
    distinct?: DocumentSequenceScalarFieldEnum | DocumentSequenceScalarFieldEnum[]
  }

  /**
   * DocumentSequence create
   */
  export type DocumentSequenceCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    /**
     * The data needed to create a DocumentSequence.
     */
    data: XOR<DocumentSequenceCreateInput, DocumentSequenceUncheckedCreateInput>
  }

  /**
   * DocumentSequence createMany
   */
  export type DocumentSequenceCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many DocumentSequences.
     */
    data: DocumentSequenceCreateManyInput | DocumentSequenceCreateManyInput[]
  }

  /**
   * DocumentSequence update
   */
  export type DocumentSequenceUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    /**
     * The data needed to update a DocumentSequence.
     */
    data: XOR<DocumentSequenceUpdateInput, DocumentSequenceUncheckedUpdateInput>
    /**
     * Choose, which DocumentSequence to update.
     */
    where: DocumentSequenceWhereUniqueInput
  }

  /**
   * DocumentSequence updateMany
   */
  export type DocumentSequenceUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update DocumentSequences.
     */
    data: XOR<DocumentSequenceUpdateManyMutationInput, DocumentSequenceUncheckedUpdateManyInput>
    /**
     * Filter which DocumentSequences to update
     */
    where?: DocumentSequenceWhereInput
  }

  /**
   * DocumentSequence upsert
   */
  export type DocumentSequenceUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    /**
     * The filter to search for the DocumentSequence to update in case it exists.
     */
    where: DocumentSequenceWhereUniqueInput
    /**
     * In case the DocumentSequence found by the `where` argument doesn't exist, create a new DocumentSequence with this data.
     */
    create: XOR<DocumentSequenceCreateInput, DocumentSequenceUncheckedCreateInput>
    /**
     * In case the DocumentSequence was found with the provided `where` argument, update it with this data.
     */
    update: XOR<DocumentSequenceUpdateInput, DocumentSequenceUncheckedUpdateInput>
  }

  /**
   * DocumentSequence delete
   */
  export type DocumentSequenceDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    /**
     * Filter which DocumentSequence to delete.
     */
    where: DocumentSequenceWhereUniqueInput
  }

  /**
   * DocumentSequence deleteMany
   */
  export type DocumentSequenceDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which DocumentSequences to delete
     */
    where?: DocumentSequenceWhereInput
  }

  /**
   * DocumentSequence.finanicial_year
   */
  export type DocumentSequence$finanicial_yearArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    where?: FinancialYearWhereInput
  }

  /**
   * DocumentSequence.created
   */
  export type DocumentSequence$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * DocumentSequence.updated
   */
  export type DocumentSequence$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * DocumentSequence.deleted
   */
  export type DocumentSequence$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * DocumentSequence without action
   */
  export type DocumentSequenceDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
  }


  /**
   * Model AuditLog
   */

  export type AggregateAuditLog = {
    _count: AuditLogCountAggregateOutputType | null
    _avg: AuditLogAvgAggregateOutputType | null
    _sum: AuditLogSumAggregateOutputType | null
    _min: AuditLogMinAggregateOutputType | null
    _max: AuditLogMaxAggregateOutputType | null
  }

  export type AuditLogAvgAggregateOutputType = {
    id: number | null
    entity_id: number | null
    user_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type AuditLogSumAggregateOutputType = {
    id: number | null
    entity_id: number | null
    user_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type AuditLogMinAggregateOutputType = {
    id: number | null
    operation_type: string | null
    table_name: string | null
    field_name: string | null
    old_value: string | null
    new_value: string | null
    entity_id: number | null
    user_id: number | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type AuditLogMaxAggregateOutputType = {
    id: number | null
    operation_type: string | null
    table_name: string | null
    field_name: string | null
    old_value: string | null
    new_value: string | null
    entity_id: number | null
    user_id: number | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type AuditLogCountAggregateOutputType = {
    id: number
    operation_type: number
    table_name: number
    field_name: number
    old_value: number
    new_value: number
    entity_id: number
    user_id: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type AuditLogAvgAggregateInputType = {
    id?: true
    entity_id?: true
    user_id?: true
    status_id?: true
    company_id?: true
  }

  export type AuditLogSumAggregateInputType = {
    id?: true
    entity_id?: true
    user_id?: true
    status_id?: true
    company_id?: true
  }

  export type AuditLogMinAggregateInputType = {
    id?: true
    operation_type?: true
    table_name?: true
    field_name?: true
    old_value?: true
    new_value?: true
    entity_id?: true
    user_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type AuditLogMaxAggregateInputType = {
    id?: true
    operation_type?: true
    table_name?: true
    field_name?: true
    old_value?: true
    new_value?: true
    entity_id?: true
    user_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type AuditLogCountAggregateInputType = {
    id?: true
    operation_type?: true
    table_name?: true
    field_name?: true
    old_value?: true
    new_value?: true
    entity_id?: true
    user_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type AuditLogAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which AuditLog to aggregate.
     */
    where?: AuditLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of AuditLogs to fetch.
     */
    orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: AuditLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` AuditLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` AuditLogs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned AuditLogs
    **/
    _count?: true | AuditLogCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: AuditLogAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: AuditLogSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: AuditLogMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: AuditLogMaxAggregateInputType
  }

  export type GetAuditLogAggregateType<T extends AuditLogAggregateArgs> = {
        [P in keyof T & keyof AggregateAuditLog]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateAuditLog[P]>
      : GetScalarType<T[P], AggregateAuditLog[P]>
  }




  export type AuditLogGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: AuditLogWhereInput
    orderBy?: AuditLogOrderByWithAggregationInput | AuditLogOrderByWithAggregationInput[]
    by: AuditLogScalarFieldEnum[] | AuditLogScalarFieldEnum
    having?: AuditLogScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: AuditLogCountAggregateInputType | true
    _avg?: AuditLogAvgAggregateInputType
    _sum?: AuditLogSumAggregateInputType
    _min?: AuditLogMinAggregateInputType
    _max?: AuditLogMaxAggregateInputType
  }

  export type AuditLogGroupByOutputType = {
    id: number
    operation_type: string
    table_name: string
    field_name: string
    old_value: string | null
    new_value: string | null
    entity_id: number
    user_id: number | null
    status_id: number
    company_id: number | null
    created_at: Date
    _count: AuditLogCountAggregateOutputType | null
    _avg: AuditLogAvgAggregateOutputType | null
    _sum: AuditLogSumAggregateOutputType | null
    _min: AuditLogMinAggregateOutputType | null
    _max: AuditLogMaxAggregateOutputType | null
  }

  type GetAuditLogGroupByPayload<T extends AuditLogGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<AuditLogGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof AuditLogGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], AuditLogGroupByOutputType[P]>
            : GetScalarType<T[P], AuditLogGroupByOutputType[P]>
        }
      >
    >


  export type AuditLogSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    operation_type?: boolean
    table_name?: boolean
    field_name?: boolean
    old_value?: boolean
    new_value?: boolean
    entity_id?: boolean
    user_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    user?: boolean | AuditLog$userArgs<ExtArgs>
  }, ExtArgs["result"]["auditLog"]>


  export type AuditLogSelectScalar = {
    id?: boolean
    operation_type?: boolean
    table_name?: boolean
    field_name?: boolean
    old_value?: boolean
    new_value?: boolean
    entity_id?: boolean
    user_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type AuditLogInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    user?: boolean | AuditLog$userArgs<ExtArgs>
  }

  export type $AuditLogPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "AuditLog"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      user: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      operation_type: string
      table_name: string
      field_name: string
      old_value: string | null
      new_value: string | null
      entity_id: number
      user_id: number | null
      status_id: number
      company_id: number | null
      created_at: Date
    }, ExtArgs["result"]["auditLog"]>
    composites: {}
  }

  type AuditLogGetPayload<S extends boolean | null | undefined | AuditLogDefaultArgs> = $Result.GetResult<Prisma.$AuditLogPayload, S>

  type AuditLogCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<AuditLogFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: AuditLogCountAggregateInputType | true
    }

  export interface AuditLogDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AuditLog'], meta: { name: 'AuditLog' } }
    /**
     * Find zero or one AuditLog that matches the filter.
     * @param {AuditLogFindUniqueArgs} args - Arguments to find a AuditLog
     * @example
     * // Get one AuditLog
     * const auditLog = await prisma.auditLog.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends AuditLogFindUniqueArgs>(args: SelectSubset<T, AuditLogFindUniqueArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one AuditLog that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {AuditLogFindUniqueOrThrowArgs} args - Arguments to find a AuditLog
     * @example
     * // Get one AuditLog
     * const auditLog = await prisma.auditLog.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends AuditLogFindUniqueOrThrowArgs>(args: SelectSubset<T, AuditLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first AuditLog 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 {AuditLogFindFirstArgs} args - Arguments to find a AuditLog
     * @example
     * // Get one AuditLog
     * const auditLog = await prisma.auditLog.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends AuditLogFindFirstArgs>(args?: SelectSubset<T, AuditLogFindFirstArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first AuditLog 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 {AuditLogFindFirstOrThrowArgs} args - Arguments to find a AuditLog
     * @example
     * // Get one AuditLog
     * const auditLog = await prisma.auditLog.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends AuditLogFindFirstOrThrowArgs>(args?: SelectSubset<T, AuditLogFindFirstOrThrowArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more AuditLogs 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 {AuditLogFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all AuditLogs
     * const auditLogs = await prisma.auditLog.findMany()
     * 
     * // Get first 10 AuditLogs
     * const auditLogs = await prisma.auditLog.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const auditLogWithIdOnly = await prisma.auditLog.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends AuditLogFindManyArgs>(args?: SelectSubset<T, AuditLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a AuditLog.
     * @param {AuditLogCreateArgs} args - Arguments to create a AuditLog.
     * @example
     * // Create one AuditLog
     * const AuditLog = await prisma.auditLog.create({
     *   data: {
     *     // ... data to create a AuditLog
     *   }
     * })
     * 
     */
    create<T extends AuditLogCreateArgs>(args: SelectSubset<T, AuditLogCreateArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many AuditLogs.
     * @param {AuditLogCreateManyArgs} args - Arguments to create many AuditLogs.
     * @example
     * // Create many AuditLogs
     * const auditLog = await prisma.auditLog.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends AuditLogCreateManyArgs>(args?: SelectSubset<T, AuditLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a AuditLog.
     * @param {AuditLogDeleteArgs} args - Arguments to delete one AuditLog.
     * @example
     * // Delete one AuditLog
     * const AuditLog = await prisma.auditLog.delete({
     *   where: {
     *     // ... filter to delete one AuditLog
     *   }
     * })
     * 
     */
    delete<T extends AuditLogDeleteArgs>(args: SelectSubset<T, AuditLogDeleteArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one AuditLog.
     * @param {AuditLogUpdateArgs} args - Arguments to update one AuditLog.
     * @example
     * // Update one AuditLog
     * const auditLog = await prisma.auditLog.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends AuditLogUpdateArgs>(args: SelectSubset<T, AuditLogUpdateArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more AuditLogs.
     * @param {AuditLogDeleteManyArgs} args - Arguments to filter AuditLogs to delete.
     * @example
     * // Delete a few AuditLogs
     * const { count } = await prisma.auditLog.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends AuditLogDeleteManyArgs>(args?: SelectSubset<T, AuditLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more AuditLogs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {AuditLogUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many AuditLogs
     * const auditLog = await prisma.auditLog.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends AuditLogUpdateManyArgs>(args: SelectSubset<T, AuditLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one AuditLog.
     * @param {AuditLogUpsertArgs} args - Arguments to update or create a AuditLog.
     * @example
     * // Update or create a AuditLog
     * const auditLog = await prisma.auditLog.upsert({
     *   create: {
     *     // ... data to create a AuditLog
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the AuditLog we want to update
     *   }
     * })
     */
    upsert<T extends AuditLogUpsertArgs>(args: SelectSubset<T, AuditLogUpsertArgs<ExtArgs>>): Prisma__AuditLogClient<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of AuditLogs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {AuditLogCountArgs} args - Arguments to filter AuditLogs to count.
     * @example
     * // Count the number of AuditLogs
     * const count = await prisma.auditLog.count({
     *   where: {
     *     // ... the filter for the AuditLogs we want to count
     *   }
     * })
    **/
    count<T extends AuditLogCountArgs>(
      args?: Subset<T, AuditLogCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], AuditLogCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a AuditLog.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {AuditLogAggregateArgs} 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<T extends AuditLogAggregateArgs>(args: Subset<T, AuditLogAggregateArgs>): Prisma.PrismaPromise<GetAuditLogAggregateType<T>>

    /**
     * Group by AuditLog.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {AuditLogGroupByArgs} 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 AuditLogGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: AuditLogGroupByArgs['orderBy'] }
        : { orderBy?: AuditLogGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, AuditLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuditLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the AuditLog model
   */
  readonly fields: AuditLogFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for AuditLog.
   * 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__AuditLogClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    user<T extends AuditLog$userArgs<ExtArgs> = {}>(args?: Subset<T, AuditLog$userArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the AuditLog model
   */ 
  interface AuditLogFieldRefs {
    readonly id: FieldRef<"AuditLog", 'Int'>
    readonly operation_type: FieldRef<"AuditLog", 'String'>
    readonly table_name: FieldRef<"AuditLog", 'String'>
    readonly field_name: FieldRef<"AuditLog", 'String'>
    readonly old_value: FieldRef<"AuditLog", 'String'>
    readonly new_value: FieldRef<"AuditLog", 'String'>
    readonly entity_id: FieldRef<"AuditLog", 'Int'>
    readonly user_id: FieldRef<"AuditLog", 'Int'>
    readonly status_id: FieldRef<"AuditLog", 'Int'>
    readonly company_id: FieldRef<"AuditLog", 'Int'>
    readonly created_at: FieldRef<"AuditLog", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * AuditLog findUnique
   */
  export type AuditLogFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    /**
     * Filter, which AuditLog to fetch.
     */
    where: AuditLogWhereUniqueInput
  }

  /**
   * AuditLog findUniqueOrThrow
   */
  export type AuditLogFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    /**
     * Filter, which AuditLog to fetch.
     */
    where: AuditLogWhereUniqueInput
  }

  /**
   * AuditLog findFirst
   */
  export type AuditLogFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    /**
     * Filter, which AuditLog to fetch.
     */
    where?: AuditLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of AuditLogs to fetch.
     */
    orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for AuditLogs.
     */
    cursor?: AuditLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` AuditLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` AuditLogs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of AuditLogs.
     */
    distinct?: AuditLogScalarFieldEnum | AuditLogScalarFieldEnum[]
  }

  /**
   * AuditLog findFirstOrThrow
   */
  export type AuditLogFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    /**
     * Filter, which AuditLog to fetch.
     */
    where?: AuditLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of AuditLogs to fetch.
     */
    orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for AuditLogs.
     */
    cursor?: AuditLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` AuditLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` AuditLogs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of AuditLogs.
     */
    distinct?: AuditLogScalarFieldEnum | AuditLogScalarFieldEnum[]
  }

  /**
   * AuditLog findMany
   */
  export type AuditLogFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    /**
     * Filter, which AuditLogs to fetch.
     */
    where?: AuditLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of AuditLogs to fetch.
     */
    orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing AuditLogs.
     */
    cursor?: AuditLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` AuditLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` AuditLogs.
     */
    skip?: number
    distinct?: AuditLogScalarFieldEnum | AuditLogScalarFieldEnum[]
  }

  /**
   * AuditLog create
   */
  export type AuditLogCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    /**
     * The data needed to create a AuditLog.
     */
    data: XOR<AuditLogCreateInput, AuditLogUncheckedCreateInput>
  }

  /**
   * AuditLog createMany
   */
  export type AuditLogCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many AuditLogs.
     */
    data: AuditLogCreateManyInput | AuditLogCreateManyInput[]
  }

  /**
   * AuditLog update
   */
  export type AuditLogUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    /**
     * The data needed to update a AuditLog.
     */
    data: XOR<AuditLogUpdateInput, AuditLogUncheckedUpdateInput>
    /**
     * Choose, which AuditLog to update.
     */
    where: AuditLogWhereUniqueInput
  }

  /**
   * AuditLog updateMany
   */
  export type AuditLogUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update AuditLogs.
     */
    data: XOR<AuditLogUpdateManyMutationInput, AuditLogUncheckedUpdateManyInput>
    /**
     * Filter which AuditLogs to update
     */
    where?: AuditLogWhereInput
  }

  /**
   * AuditLog upsert
   */
  export type AuditLogUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    /**
     * The filter to search for the AuditLog to update in case it exists.
     */
    where: AuditLogWhereUniqueInput
    /**
     * In case the AuditLog found by the `where` argument doesn't exist, create a new AuditLog with this data.
     */
    create: XOR<AuditLogCreateInput, AuditLogUncheckedCreateInput>
    /**
     * In case the AuditLog was found with the provided `where` argument, update it with this data.
     */
    update: XOR<AuditLogUpdateInput, AuditLogUncheckedUpdateInput>
  }

  /**
   * AuditLog delete
   */
  export type AuditLogDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    /**
     * Filter which AuditLog to delete.
     */
    where: AuditLogWhereUniqueInput
  }

  /**
   * AuditLog deleteMany
   */
  export type AuditLogDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which AuditLogs to delete
     */
    where?: AuditLogWhereInput
  }

  /**
   * AuditLog.user
   */
  export type AuditLog$userArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * AuditLog without action
   */
  export type AuditLogDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
  }


  /**
   * Model Permissions
   */

  export type AggregatePermissions = {
    _count: PermissionsCountAggregateOutputType | null
    _avg: PermissionsAvgAggregateOutputType | null
    _sum: PermissionsSumAggregateOutputType | null
    _min: PermissionsMinAggregateOutputType | null
    _max: PermissionsMaxAggregateOutputType | null
  }

  export type PermissionsAvgAggregateOutputType = {
    id: number | null
    entity_id: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
  }

  export type PermissionsSumAggregateOutputType = {
    id: number | null
    entity_id: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
  }

  export type PermissionsMinAggregateOutputType = {
    id: number | null
    name: string | null
    slug: string | null
    entity_id: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type PermissionsMaxAggregateOutputType = {
    id: number | null
    name: string | null
    slug: string | null
    entity_id: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type PermissionsCountAggregateOutputType = {
    id: number
    name: number
    slug: number
    entity_id: number
    order_no: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type PermissionsAvgAggregateInputType = {
    id?: true
    entity_id?: true
    order_no?: true
    status_id?: true
    company_id?: true
  }

  export type PermissionsSumAggregateInputType = {
    id?: true
    entity_id?: true
    order_no?: true
    status_id?: true
    company_id?: true
  }

  export type PermissionsMinAggregateInputType = {
    id?: true
    name?: true
    slug?: true
    entity_id?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type PermissionsMaxAggregateInputType = {
    id?: true
    name?: true
    slug?: true
    entity_id?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type PermissionsCountAggregateInputType = {
    id?: true
    name?: true
    slug?: true
    entity_id?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type PermissionsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Permissions to aggregate.
     */
    where?: PermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Permissions to fetch.
     */
    orderBy?: PermissionsOrderByWithRelationInput | PermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: PermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Permissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Permissions.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Permissions
    **/
    _count?: true | PermissionsCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: PermissionsAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: PermissionsSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: PermissionsMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: PermissionsMaxAggregateInputType
  }

  export type GetPermissionsAggregateType<T extends PermissionsAggregateArgs> = {
        [P in keyof T & keyof AggregatePermissions]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregatePermissions[P]>
      : GetScalarType<T[P], AggregatePermissions[P]>
  }




  export type PermissionsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: PermissionsWhereInput
    orderBy?: PermissionsOrderByWithAggregationInput | PermissionsOrderByWithAggregationInput[]
    by: PermissionsScalarFieldEnum[] | PermissionsScalarFieldEnum
    having?: PermissionsScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: PermissionsCountAggregateInputType | true
    _avg?: PermissionsAvgAggregateInputType
    _sum?: PermissionsSumAggregateInputType
    _min?: PermissionsMinAggregateInputType
    _max?: PermissionsMaxAggregateInputType
  }

  export type PermissionsGroupByOutputType = {
    id: number
    name: string
    slug: string
    entity_id: number | null
    order_no: Decimal
    status_id: number
    company_id: number
    created_at: Date
    _count: PermissionsCountAggregateOutputType | null
    _avg: PermissionsAvgAggregateOutputType | null
    _sum: PermissionsSumAggregateOutputType | null
    _min: PermissionsMinAggregateOutputType | null
    _max: PermissionsMaxAggregateOutputType | null
  }

  type GetPermissionsGroupByPayload<T extends PermissionsGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<PermissionsGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof PermissionsGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], PermissionsGroupByOutputType[P]>
            : GetScalarType<T[P], PermissionsGroupByOutputType[P]>
        }
      >
    >


  export type PermissionsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    name?: boolean
    slug?: boolean
    entity_id?: boolean
    order_no?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    entity?: boolean | Permissions$entityArgs<ExtArgs>
    roles?: boolean | Permissions$rolesArgs<ExtArgs>
    users?: boolean | Permissions$usersArgs<ExtArgs>
    menus?: boolean | Permissions$menusArgs<ExtArgs>
    _count?: boolean | PermissionsCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["permissions"]>


  export type PermissionsSelectScalar = {
    id?: boolean
    name?: boolean
    slug?: boolean
    entity_id?: boolean
    order_no?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type PermissionsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    entity?: boolean | Permissions$entityArgs<ExtArgs>
    roles?: boolean | Permissions$rolesArgs<ExtArgs>
    users?: boolean | Permissions$usersArgs<ExtArgs>
    menus?: boolean | Permissions$menusArgs<ExtArgs>
    _count?: boolean | PermissionsCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $PermissionsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Permissions"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      entity: Prisma.$MasterEntityPayload<ExtArgs> | null
      roles: Prisma.$RolePermissionsPayload<ExtArgs>[]
      users: Prisma.$UserPermissionsPayload<ExtArgs>[]
      menus: Prisma.$MenuItemsPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      name: string
      slug: string
      entity_id: number | null
      order_no: Prisma.Decimal
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["permissions"]>
    composites: {}
  }

  type PermissionsGetPayload<S extends boolean | null | undefined | PermissionsDefaultArgs> = $Result.GetResult<Prisma.$PermissionsPayload, S>

  type PermissionsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<PermissionsFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: PermissionsCountAggregateInputType | true
    }

  export interface PermissionsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Permissions'], meta: { name: 'Permissions' } }
    /**
     * Find zero or one Permissions that matches the filter.
     * @param {PermissionsFindUniqueArgs} args - Arguments to find a Permissions
     * @example
     * // Get one Permissions
     * const permissions = await prisma.permissions.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends PermissionsFindUniqueArgs>(args: SelectSubset<T, PermissionsFindUniqueArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Permissions that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {PermissionsFindUniqueOrThrowArgs} args - Arguments to find a Permissions
     * @example
     * // Get one Permissions
     * const permissions = await prisma.permissions.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends PermissionsFindUniqueOrThrowArgs>(args: SelectSubset<T, PermissionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Permissions 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 {PermissionsFindFirstArgs} args - Arguments to find a Permissions
     * @example
     * // Get one Permissions
     * const permissions = await prisma.permissions.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends PermissionsFindFirstArgs>(args?: SelectSubset<T, PermissionsFindFirstArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Permissions 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 {PermissionsFindFirstOrThrowArgs} args - Arguments to find a Permissions
     * @example
     * // Get one Permissions
     * const permissions = await prisma.permissions.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends PermissionsFindFirstOrThrowArgs>(args?: SelectSubset<T, PermissionsFindFirstOrThrowArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Permissions 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 {PermissionsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Permissions
     * const permissions = await prisma.permissions.findMany()
     * 
     * // Get first 10 Permissions
     * const permissions = await prisma.permissions.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const permissionsWithIdOnly = await prisma.permissions.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends PermissionsFindManyArgs>(args?: SelectSubset<T, PermissionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Permissions.
     * @param {PermissionsCreateArgs} args - Arguments to create a Permissions.
     * @example
     * // Create one Permissions
     * const Permissions = await prisma.permissions.create({
     *   data: {
     *     // ... data to create a Permissions
     *   }
     * })
     * 
     */
    create<T extends PermissionsCreateArgs>(args: SelectSubset<T, PermissionsCreateArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Permissions.
     * @param {PermissionsCreateManyArgs} args - Arguments to create many Permissions.
     * @example
     * // Create many Permissions
     * const permissions = await prisma.permissions.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends PermissionsCreateManyArgs>(args?: SelectSubset<T, PermissionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Permissions.
     * @param {PermissionsDeleteArgs} args - Arguments to delete one Permissions.
     * @example
     * // Delete one Permissions
     * const Permissions = await prisma.permissions.delete({
     *   where: {
     *     // ... filter to delete one Permissions
     *   }
     * })
     * 
     */
    delete<T extends PermissionsDeleteArgs>(args: SelectSubset<T, PermissionsDeleteArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Permissions.
     * @param {PermissionsUpdateArgs} args - Arguments to update one Permissions.
     * @example
     * // Update one Permissions
     * const permissions = await prisma.permissions.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends PermissionsUpdateArgs>(args: SelectSubset<T, PermissionsUpdateArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Permissions.
     * @param {PermissionsDeleteManyArgs} args - Arguments to filter Permissions to delete.
     * @example
     * // Delete a few Permissions
     * const { count } = await prisma.permissions.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends PermissionsDeleteManyArgs>(args?: SelectSubset<T, PermissionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Permissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {PermissionsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Permissions
     * const permissions = await prisma.permissions.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends PermissionsUpdateManyArgs>(args: SelectSubset<T, PermissionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Permissions.
     * @param {PermissionsUpsertArgs} args - Arguments to update or create a Permissions.
     * @example
     * // Update or create a Permissions
     * const permissions = await prisma.permissions.upsert({
     *   create: {
     *     // ... data to create a Permissions
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Permissions we want to update
     *   }
     * })
     */
    upsert<T extends PermissionsUpsertArgs>(args: SelectSubset<T, PermissionsUpsertArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Permissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {PermissionsCountArgs} args - Arguments to filter Permissions to count.
     * @example
     * // Count the number of Permissions
     * const count = await prisma.permissions.count({
     *   where: {
     *     // ... the filter for the Permissions we want to count
     *   }
     * })
    **/
    count<T extends PermissionsCountArgs>(
      args?: Subset<T, PermissionsCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], PermissionsCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Permissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {PermissionsAggregateArgs} 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<T extends PermissionsAggregateArgs>(args: Subset<T, PermissionsAggregateArgs>): Prisma.PrismaPromise<GetPermissionsAggregateType<T>>

    /**
     * Group by Permissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {PermissionsGroupByArgs} 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 PermissionsGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: PermissionsGroupByArgs['orderBy'] }
        : { orderBy?: PermissionsGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, PermissionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPermissionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Permissions model
   */
  readonly fields: PermissionsFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Permissions.
   * 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__PermissionsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    entity<T extends Permissions$entityArgs<ExtArgs> = {}>(args?: Subset<T, Permissions$entityArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    roles<T extends Permissions$rolesArgs<ExtArgs> = {}>(args?: Subset<T, Permissions$rolesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "findMany"> | Null>
    users<T extends Permissions$usersArgs<ExtArgs> = {}>(args?: Subset<T, Permissions$usersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "findMany"> | Null>
    menus<T extends Permissions$menusArgs<ExtArgs> = {}>(args?: Subset<T, Permissions$menusArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Permissions model
   */ 
  interface PermissionsFieldRefs {
    readonly id: FieldRef<"Permissions", 'Int'>
    readonly name: FieldRef<"Permissions", 'String'>
    readonly slug: FieldRef<"Permissions", 'String'>
    readonly entity_id: FieldRef<"Permissions", 'Int'>
    readonly order_no: FieldRef<"Permissions", 'Decimal'>
    readonly status_id: FieldRef<"Permissions", 'Int'>
    readonly company_id: FieldRef<"Permissions", 'Int'>
    readonly created_at: FieldRef<"Permissions", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * Permissions findUnique
   */
  export type PermissionsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    /**
     * Filter, which Permissions to fetch.
     */
    where: PermissionsWhereUniqueInput
  }

  /**
   * Permissions findUniqueOrThrow
   */
  export type PermissionsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    /**
     * Filter, which Permissions to fetch.
     */
    where: PermissionsWhereUniqueInput
  }

  /**
   * Permissions findFirst
   */
  export type PermissionsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    /**
     * Filter, which Permissions to fetch.
     */
    where?: PermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Permissions to fetch.
     */
    orderBy?: PermissionsOrderByWithRelationInput | PermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Permissions.
     */
    cursor?: PermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Permissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Permissions.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Permissions.
     */
    distinct?: PermissionsScalarFieldEnum | PermissionsScalarFieldEnum[]
  }

  /**
   * Permissions findFirstOrThrow
   */
  export type PermissionsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    /**
     * Filter, which Permissions to fetch.
     */
    where?: PermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Permissions to fetch.
     */
    orderBy?: PermissionsOrderByWithRelationInput | PermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Permissions.
     */
    cursor?: PermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Permissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Permissions.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Permissions.
     */
    distinct?: PermissionsScalarFieldEnum | PermissionsScalarFieldEnum[]
  }

  /**
   * Permissions findMany
   */
  export type PermissionsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    /**
     * Filter, which Permissions to fetch.
     */
    where?: PermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Permissions to fetch.
     */
    orderBy?: PermissionsOrderByWithRelationInput | PermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Permissions.
     */
    cursor?: PermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Permissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Permissions.
     */
    skip?: number
    distinct?: PermissionsScalarFieldEnum | PermissionsScalarFieldEnum[]
  }

  /**
   * Permissions create
   */
  export type PermissionsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    /**
     * The data needed to create a Permissions.
     */
    data: XOR<PermissionsCreateInput, PermissionsUncheckedCreateInput>
  }

  /**
   * Permissions createMany
   */
  export type PermissionsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Permissions.
     */
    data: PermissionsCreateManyInput | PermissionsCreateManyInput[]
  }

  /**
   * Permissions update
   */
  export type PermissionsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    /**
     * The data needed to update a Permissions.
     */
    data: XOR<PermissionsUpdateInput, PermissionsUncheckedUpdateInput>
    /**
     * Choose, which Permissions to update.
     */
    where: PermissionsWhereUniqueInput
  }

  /**
   * Permissions updateMany
   */
  export type PermissionsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Permissions.
     */
    data: XOR<PermissionsUpdateManyMutationInput, PermissionsUncheckedUpdateManyInput>
    /**
     * Filter which Permissions to update
     */
    where?: PermissionsWhereInput
  }

  /**
   * Permissions upsert
   */
  export type PermissionsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    /**
     * The filter to search for the Permissions to update in case it exists.
     */
    where: PermissionsWhereUniqueInput
    /**
     * In case the Permissions found by the `where` argument doesn't exist, create a new Permissions with this data.
     */
    create: XOR<PermissionsCreateInput, PermissionsUncheckedCreateInput>
    /**
     * In case the Permissions was found with the provided `where` argument, update it with this data.
     */
    update: XOR<PermissionsUpdateInput, PermissionsUncheckedUpdateInput>
  }

  /**
   * Permissions delete
   */
  export type PermissionsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    /**
     * Filter which Permissions to delete.
     */
    where: PermissionsWhereUniqueInput
  }

  /**
   * Permissions deleteMany
   */
  export type PermissionsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Permissions to delete
     */
    where?: PermissionsWhereInput
  }

  /**
   * Permissions.entity
   */
  export type Permissions$entityArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    where?: MasterEntityWhereInput
  }

  /**
   * Permissions.roles
   */
  export type Permissions$rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    where?: RolePermissionsWhereInput
    orderBy?: RolePermissionsOrderByWithRelationInput | RolePermissionsOrderByWithRelationInput[]
    cursor?: RolePermissionsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: RolePermissionsScalarFieldEnum | RolePermissionsScalarFieldEnum[]
  }

  /**
   * Permissions.users
   */
  export type Permissions$usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    where?: UserPermissionsWhereInput
    orderBy?: UserPermissionsOrderByWithRelationInput | UserPermissionsOrderByWithRelationInput[]
    cursor?: UserPermissionsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserPermissionsScalarFieldEnum | UserPermissionsScalarFieldEnum[]
  }

  /**
   * Permissions.menus
   */
  export type Permissions$menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    where?: MenuItemsWhereInput
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    cursor?: MenuItemsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * Permissions without action
   */
  export type PermissionsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
  }


  /**
   * Model Role
   */

  export type AggregateRole = {
    _count: RoleCountAggregateOutputType | null
    _avg: RoleAvgAggregateOutputType | null
    _sum: RoleSumAggregateOutputType | null
    _min: RoleMinAggregateOutputType | null
    _max: RoleMaxAggregateOutputType | null
  }

  export type RoleAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type RoleSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type RoleMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    description: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type RoleMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    description: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type RoleCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    description: number
    status_id: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type RoleAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type RoleSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type RoleMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    description?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type RoleMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    description?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type RoleCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    description?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type RoleAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Role to aggregate.
     */
    where?: RoleWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Roles to fetch.
     */
    orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: RoleWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Roles from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Roles.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Roles
    **/
    _count?: true | RoleCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: RoleAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: RoleSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: RoleMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: RoleMaxAggregateInputType
  }

  export type GetRoleAggregateType<T extends RoleAggregateArgs> = {
        [P in keyof T & keyof AggregateRole]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateRole[P]>
      : GetScalarType<T[P], AggregateRole[P]>
  }




  export type RoleGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RoleWhereInput
    orderBy?: RoleOrderByWithAggregationInput | RoleOrderByWithAggregationInput[]
    by: RoleScalarFieldEnum[] | RoleScalarFieldEnum
    having?: RoleScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: RoleCountAggregateInputType | true
    _avg?: RoleAvgAggregateInputType
    _sum?: RoleSumAggregateInputType
    _min?: RoleMinAggregateInputType
    _max?: RoleMaxAggregateInputType
  }

  export type RoleGroupByOutputType = {
    id: number
    uuid: string
    name: string
    description: string | null
    status_id: number
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: RoleCountAggregateOutputType | null
    _avg: RoleAvgAggregateOutputType | null
    _sum: RoleSumAggregateOutputType | null
    _min: RoleMinAggregateOutputType | null
    _max: RoleMaxAggregateOutputType | null
  }

  type GetRoleGroupByPayload<T extends RoleGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<RoleGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof RoleGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], RoleGroupByOutputType[P]>
            : GetScalarType<T[P], RoleGroupByOutputType[P]>
        }
      >
    >


  export type RoleSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    permissions?: boolean | Role$permissionsArgs<ExtArgs>
    users?: boolean | Role$usersArgs<ExtArgs>
    created?: boolean | Role$createdArgs<ExtArgs>
    updated?: boolean | Role$updatedArgs<ExtArgs>
    deleted?: boolean | Role$deletedArgs<ExtArgs>
    _count?: boolean | RoleCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["role"]>


  export type RoleSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type RoleInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    permissions?: boolean | Role$permissionsArgs<ExtArgs>
    users?: boolean | Role$usersArgs<ExtArgs>
    created?: boolean | Role$createdArgs<ExtArgs>
    updated?: boolean | Role$updatedArgs<ExtArgs>
    deleted?: boolean | Role$deletedArgs<ExtArgs>
    _count?: boolean | RoleCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $RolePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Role"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      permissions: Prisma.$RolePermissionsPayload<ExtArgs>[]
      users: Prisma.$UserRolesPayload<ExtArgs>[]
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      description: string | null
      status_id: number
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["role"]>
    composites: {}
  }

  type RoleGetPayload<S extends boolean | null | undefined | RoleDefaultArgs> = $Result.GetResult<Prisma.$RolePayload, S>

  type RoleCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<RoleFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: RoleCountAggregateInputType | true
    }

  export interface RoleDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Role'], meta: { name: 'Role' } }
    /**
     * Find zero or one Role that matches the filter.
     * @param {RoleFindUniqueArgs} args - Arguments to find a Role
     * @example
     * // Get one Role
     * const role = await prisma.role.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends RoleFindUniqueArgs>(args: SelectSubset<T, RoleFindUniqueArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Role that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {RoleFindUniqueOrThrowArgs} args - Arguments to find a Role
     * @example
     * // Get one Role
     * const role = await prisma.role.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends RoleFindUniqueOrThrowArgs>(args: SelectSubset<T, RoleFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Role 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 {RoleFindFirstArgs} args - Arguments to find a Role
     * @example
     * // Get one Role
     * const role = await prisma.role.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends RoleFindFirstArgs>(args?: SelectSubset<T, RoleFindFirstArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Role 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 {RoleFindFirstOrThrowArgs} args - Arguments to find a Role
     * @example
     * // Get one Role
     * const role = await prisma.role.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends RoleFindFirstOrThrowArgs>(args?: SelectSubset<T, RoleFindFirstOrThrowArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Roles 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 {RoleFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Roles
     * const roles = await prisma.role.findMany()
     * 
     * // Get first 10 Roles
     * const roles = await prisma.role.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const roleWithIdOnly = await prisma.role.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends RoleFindManyArgs>(args?: SelectSubset<T, RoleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Role.
     * @param {RoleCreateArgs} args - Arguments to create a Role.
     * @example
     * // Create one Role
     * const Role = await prisma.role.create({
     *   data: {
     *     // ... data to create a Role
     *   }
     * })
     * 
     */
    create<T extends RoleCreateArgs>(args: SelectSubset<T, RoleCreateArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Roles.
     * @param {RoleCreateManyArgs} args - Arguments to create many Roles.
     * @example
     * // Create many Roles
     * const role = await prisma.role.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends RoleCreateManyArgs>(args?: SelectSubset<T, RoleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Role.
     * @param {RoleDeleteArgs} args - Arguments to delete one Role.
     * @example
     * // Delete one Role
     * const Role = await prisma.role.delete({
     *   where: {
     *     // ... filter to delete one Role
     *   }
     * })
     * 
     */
    delete<T extends RoleDeleteArgs>(args: SelectSubset<T, RoleDeleteArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Role.
     * @param {RoleUpdateArgs} args - Arguments to update one Role.
     * @example
     * // Update one Role
     * const role = await prisma.role.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends RoleUpdateArgs>(args: SelectSubset<T, RoleUpdateArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Roles.
     * @param {RoleDeleteManyArgs} args - Arguments to filter Roles to delete.
     * @example
     * // Delete a few Roles
     * const { count } = await prisma.role.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends RoleDeleteManyArgs>(args?: SelectSubset<T, RoleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Roles.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RoleUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Roles
     * const role = await prisma.role.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends RoleUpdateManyArgs>(args: SelectSubset<T, RoleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Role.
     * @param {RoleUpsertArgs} args - Arguments to update or create a Role.
     * @example
     * // Update or create a Role
     * const role = await prisma.role.upsert({
     *   create: {
     *     // ... data to create a Role
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Role we want to update
     *   }
     * })
     */
    upsert<T extends RoleUpsertArgs>(args: SelectSubset<T, RoleUpsertArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Roles.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RoleCountArgs} args - Arguments to filter Roles to count.
     * @example
     * // Count the number of Roles
     * const count = await prisma.role.count({
     *   where: {
     *     // ... the filter for the Roles we want to count
     *   }
     * })
    **/
    count<T extends RoleCountArgs>(
      args?: Subset<T, RoleCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], RoleCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Role.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RoleAggregateArgs} 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<T extends RoleAggregateArgs>(args: Subset<T, RoleAggregateArgs>): Prisma.PrismaPromise<GetRoleAggregateType<T>>

    /**
     * Group by Role.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RoleGroupByArgs} 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 RoleGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: RoleGroupByArgs['orderBy'] }
        : { orderBy?: RoleGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, RoleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRoleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Role model
   */
  readonly fields: RoleFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Role.
   * 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__RoleClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    permissions<T extends Role$permissionsArgs<ExtArgs> = {}>(args?: Subset<T, Role$permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "findMany"> | Null>
    users<T extends Role$usersArgs<ExtArgs> = {}>(args?: Subset<T, Role$usersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "findMany"> | Null>
    created<T extends Role$createdArgs<ExtArgs> = {}>(args?: Subset<T, Role$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends Role$updatedArgs<ExtArgs> = {}>(args?: Subset<T, Role$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends Role$deletedArgs<ExtArgs> = {}>(args?: Subset<T, Role$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Role model
   */ 
  interface RoleFieldRefs {
    readonly id: FieldRef<"Role", 'Int'>
    readonly uuid: FieldRef<"Role", 'String'>
    readonly name: FieldRef<"Role", 'String'>
    readonly description: FieldRef<"Role", 'String'>
    readonly status_id: FieldRef<"Role", 'Int'>
    readonly company_id: FieldRef<"Role", 'Int'>
    readonly created_by: FieldRef<"Role", 'Int'>
    readonly updated_by: FieldRef<"Role", 'Int'>
    readonly deleted_by: FieldRef<"Role", 'Int'>
    readonly created_at: FieldRef<"Role", 'DateTime'>
    readonly updated_at: FieldRef<"Role", 'DateTime'>
    readonly deleted_at: FieldRef<"Role", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * Role findUnique
   */
  export type RoleFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    /**
     * Filter, which Role to fetch.
     */
    where: RoleWhereUniqueInput
  }

  /**
   * Role findUniqueOrThrow
   */
  export type RoleFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    /**
     * Filter, which Role to fetch.
     */
    where: RoleWhereUniqueInput
  }

  /**
   * Role findFirst
   */
  export type RoleFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    /**
     * Filter, which Role to fetch.
     */
    where?: RoleWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Roles to fetch.
     */
    orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Roles.
     */
    cursor?: RoleWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Roles from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Roles.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Roles.
     */
    distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
  }

  /**
   * Role findFirstOrThrow
   */
  export type RoleFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    /**
     * Filter, which Role to fetch.
     */
    where?: RoleWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Roles to fetch.
     */
    orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Roles.
     */
    cursor?: RoleWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Roles from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Roles.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Roles.
     */
    distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
  }

  /**
   * Role findMany
   */
  export type RoleFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    /**
     * Filter, which Roles to fetch.
     */
    where?: RoleWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Roles to fetch.
     */
    orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Roles.
     */
    cursor?: RoleWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Roles from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Roles.
     */
    skip?: number
    distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
  }

  /**
   * Role create
   */
  export type RoleCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    /**
     * The data needed to create a Role.
     */
    data: XOR<RoleCreateInput, RoleUncheckedCreateInput>
  }

  /**
   * Role createMany
   */
  export type RoleCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Roles.
     */
    data: RoleCreateManyInput | RoleCreateManyInput[]
  }

  /**
   * Role update
   */
  export type RoleUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    /**
     * The data needed to update a Role.
     */
    data: XOR<RoleUpdateInput, RoleUncheckedUpdateInput>
    /**
     * Choose, which Role to update.
     */
    where: RoleWhereUniqueInput
  }

  /**
   * Role updateMany
   */
  export type RoleUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Roles.
     */
    data: XOR<RoleUpdateManyMutationInput, RoleUncheckedUpdateManyInput>
    /**
     * Filter which Roles to update
     */
    where?: RoleWhereInput
  }

  /**
   * Role upsert
   */
  export type RoleUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    /**
     * The filter to search for the Role to update in case it exists.
     */
    where: RoleWhereUniqueInput
    /**
     * In case the Role found by the `where` argument doesn't exist, create a new Role with this data.
     */
    create: XOR<RoleCreateInput, RoleUncheckedCreateInput>
    /**
     * In case the Role was found with the provided `where` argument, update it with this data.
     */
    update: XOR<RoleUpdateInput, RoleUncheckedUpdateInput>
  }

  /**
   * Role delete
   */
  export type RoleDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    /**
     * Filter which Role to delete.
     */
    where: RoleWhereUniqueInput
  }

  /**
   * Role deleteMany
   */
  export type RoleDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Roles to delete
     */
    where?: RoleWhereInput
  }

  /**
   * Role.permissions
   */
  export type Role$permissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    where?: RolePermissionsWhereInput
    orderBy?: RolePermissionsOrderByWithRelationInput | RolePermissionsOrderByWithRelationInput[]
    cursor?: RolePermissionsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: RolePermissionsScalarFieldEnum | RolePermissionsScalarFieldEnum[]
  }

  /**
   * Role.users
   */
  export type Role$usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    where?: UserRolesWhereInput
    orderBy?: UserRolesOrderByWithRelationInput | UserRolesOrderByWithRelationInput[]
    cursor?: UserRolesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserRolesScalarFieldEnum | UserRolesScalarFieldEnum[]
  }

  /**
   * Role.created
   */
  export type Role$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Role.updated
   */
  export type Role$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Role.deleted
   */
  export type Role$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Role without action
   */
  export type RoleDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
  }


  /**
   * Model RolePermissions
   */

  export type AggregateRolePermissions = {
    _count: RolePermissionsCountAggregateOutputType | null
    _avg: RolePermissionsAvgAggregateOutputType | null
    _sum: RolePermissionsSumAggregateOutputType | null
    _min: RolePermissionsMinAggregateOutputType | null
    _max: RolePermissionsMaxAggregateOutputType | null
  }

  export type RolePermissionsAvgAggregateOutputType = {
    role_id: number | null
    permission_id: number | null
    company_id: number | null
  }

  export type RolePermissionsSumAggregateOutputType = {
    role_id: number | null
    permission_id: number | null
    company_id: number | null
  }

  export type RolePermissionsMinAggregateOutputType = {
    role_id: number | null
    permission_id: number | null
    company_id: number | null
  }

  export type RolePermissionsMaxAggregateOutputType = {
    role_id: number | null
    permission_id: number | null
    company_id: number | null
  }

  export type RolePermissionsCountAggregateOutputType = {
    role_id: number
    permission_id: number
    company_id: number
    _all: number
  }


  export type RolePermissionsAvgAggregateInputType = {
    role_id?: true
    permission_id?: true
    company_id?: true
  }

  export type RolePermissionsSumAggregateInputType = {
    role_id?: true
    permission_id?: true
    company_id?: true
  }

  export type RolePermissionsMinAggregateInputType = {
    role_id?: true
    permission_id?: true
    company_id?: true
  }

  export type RolePermissionsMaxAggregateInputType = {
    role_id?: true
    permission_id?: true
    company_id?: true
  }

  export type RolePermissionsCountAggregateInputType = {
    role_id?: true
    permission_id?: true
    company_id?: true
    _all?: true
  }

  export type RolePermissionsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which RolePermissions to aggregate.
     */
    where?: RolePermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of RolePermissions to fetch.
     */
    orderBy?: RolePermissionsOrderByWithRelationInput | RolePermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: RolePermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` RolePermissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` RolePermissions.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned RolePermissions
    **/
    _count?: true | RolePermissionsCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: RolePermissionsAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: RolePermissionsSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: RolePermissionsMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: RolePermissionsMaxAggregateInputType
  }

  export type GetRolePermissionsAggregateType<T extends RolePermissionsAggregateArgs> = {
        [P in keyof T & keyof AggregateRolePermissions]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateRolePermissions[P]>
      : GetScalarType<T[P], AggregateRolePermissions[P]>
  }




  export type RolePermissionsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: RolePermissionsWhereInput
    orderBy?: RolePermissionsOrderByWithAggregationInput | RolePermissionsOrderByWithAggregationInput[]
    by: RolePermissionsScalarFieldEnum[] | RolePermissionsScalarFieldEnum
    having?: RolePermissionsScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: RolePermissionsCountAggregateInputType | true
    _avg?: RolePermissionsAvgAggregateInputType
    _sum?: RolePermissionsSumAggregateInputType
    _min?: RolePermissionsMinAggregateInputType
    _max?: RolePermissionsMaxAggregateInputType
  }

  export type RolePermissionsGroupByOutputType = {
    role_id: number
    permission_id: number
    company_id: number
    _count: RolePermissionsCountAggregateOutputType | null
    _avg: RolePermissionsAvgAggregateOutputType | null
    _sum: RolePermissionsSumAggregateOutputType | null
    _min: RolePermissionsMinAggregateOutputType | null
    _max: RolePermissionsMaxAggregateOutputType | null
  }

  type GetRolePermissionsGroupByPayload<T extends RolePermissionsGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<RolePermissionsGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof RolePermissionsGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], RolePermissionsGroupByOutputType[P]>
            : GetScalarType<T[P], RolePermissionsGroupByOutputType[P]>
        }
      >
    >


  export type RolePermissionsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    role_id?: boolean
    permission_id?: boolean
    company_id?: boolean
    role?: boolean | RoleDefaultArgs<ExtArgs>
    permission?: boolean | PermissionsDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["rolePermissions"]>


  export type RolePermissionsSelectScalar = {
    role_id?: boolean
    permission_id?: boolean
    company_id?: boolean
  }

  export type RolePermissionsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    role?: boolean | RoleDefaultArgs<ExtArgs>
    permission?: boolean | PermissionsDefaultArgs<ExtArgs>
  }

  export type $RolePermissionsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "RolePermissions"
    objects: {
      role: Prisma.$RolePayload<ExtArgs>
      permission: Prisma.$PermissionsPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      role_id: number
      permission_id: number
      company_id: number
    }, ExtArgs["result"]["rolePermissions"]>
    composites: {}
  }

  type RolePermissionsGetPayload<S extends boolean | null | undefined | RolePermissionsDefaultArgs> = $Result.GetResult<Prisma.$RolePermissionsPayload, S>

  type RolePermissionsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<RolePermissionsFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: RolePermissionsCountAggregateInputType | true
    }

  export interface RolePermissionsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['RolePermissions'], meta: { name: 'RolePermissions' } }
    /**
     * Find zero or one RolePermissions that matches the filter.
     * @param {RolePermissionsFindUniqueArgs} args - Arguments to find a RolePermissions
     * @example
     * // Get one RolePermissions
     * const rolePermissions = await prisma.rolePermissions.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends RolePermissionsFindUniqueArgs>(args: SelectSubset<T, RolePermissionsFindUniqueArgs<ExtArgs>>): Prisma__RolePermissionsClient<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one RolePermissions that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {RolePermissionsFindUniqueOrThrowArgs} args - Arguments to find a RolePermissions
     * @example
     * // Get one RolePermissions
     * const rolePermissions = await prisma.rolePermissions.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends RolePermissionsFindUniqueOrThrowArgs>(args: SelectSubset<T, RolePermissionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__RolePermissionsClient<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first RolePermissions 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 {RolePermissionsFindFirstArgs} args - Arguments to find a RolePermissions
     * @example
     * // Get one RolePermissions
     * const rolePermissions = await prisma.rolePermissions.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends RolePermissionsFindFirstArgs>(args?: SelectSubset<T, RolePermissionsFindFirstArgs<ExtArgs>>): Prisma__RolePermissionsClient<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first RolePermissions 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 {RolePermissionsFindFirstOrThrowArgs} args - Arguments to find a RolePermissions
     * @example
     * // Get one RolePermissions
     * const rolePermissions = await prisma.rolePermissions.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends RolePermissionsFindFirstOrThrowArgs>(args?: SelectSubset<T, RolePermissionsFindFirstOrThrowArgs<ExtArgs>>): Prisma__RolePermissionsClient<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more RolePermissions 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 {RolePermissionsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all RolePermissions
     * const rolePermissions = await prisma.rolePermissions.findMany()
     * 
     * // Get first 10 RolePermissions
     * const rolePermissions = await prisma.rolePermissions.findMany({ take: 10 })
     * 
     * // Only select the `role_id`
     * const rolePermissionsWithRole_idOnly = await prisma.rolePermissions.findMany({ select: { role_id: true } })
     * 
     */
    findMany<T extends RolePermissionsFindManyArgs>(args?: SelectSubset<T, RolePermissionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a RolePermissions.
     * @param {RolePermissionsCreateArgs} args - Arguments to create a RolePermissions.
     * @example
     * // Create one RolePermissions
     * const RolePermissions = await prisma.rolePermissions.create({
     *   data: {
     *     // ... data to create a RolePermissions
     *   }
     * })
     * 
     */
    create<T extends RolePermissionsCreateArgs>(args: SelectSubset<T, RolePermissionsCreateArgs<ExtArgs>>): Prisma__RolePermissionsClient<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many RolePermissions.
     * @param {RolePermissionsCreateManyArgs} args - Arguments to create many RolePermissions.
     * @example
     * // Create many RolePermissions
     * const rolePermissions = await prisma.rolePermissions.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends RolePermissionsCreateManyArgs>(args?: SelectSubset<T, RolePermissionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a RolePermissions.
     * @param {RolePermissionsDeleteArgs} args - Arguments to delete one RolePermissions.
     * @example
     * // Delete one RolePermissions
     * const RolePermissions = await prisma.rolePermissions.delete({
     *   where: {
     *     // ... filter to delete one RolePermissions
     *   }
     * })
     * 
     */
    delete<T extends RolePermissionsDeleteArgs>(args: SelectSubset<T, RolePermissionsDeleteArgs<ExtArgs>>): Prisma__RolePermissionsClient<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one RolePermissions.
     * @param {RolePermissionsUpdateArgs} args - Arguments to update one RolePermissions.
     * @example
     * // Update one RolePermissions
     * const rolePermissions = await prisma.rolePermissions.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends RolePermissionsUpdateArgs>(args: SelectSubset<T, RolePermissionsUpdateArgs<ExtArgs>>): Prisma__RolePermissionsClient<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more RolePermissions.
     * @param {RolePermissionsDeleteManyArgs} args - Arguments to filter RolePermissions to delete.
     * @example
     * // Delete a few RolePermissions
     * const { count } = await prisma.rolePermissions.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends RolePermissionsDeleteManyArgs>(args?: SelectSubset<T, RolePermissionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more RolePermissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RolePermissionsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many RolePermissions
     * const rolePermissions = await prisma.rolePermissions.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends RolePermissionsUpdateManyArgs>(args: SelectSubset<T, RolePermissionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one RolePermissions.
     * @param {RolePermissionsUpsertArgs} args - Arguments to update or create a RolePermissions.
     * @example
     * // Update or create a RolePermissions
     * const rolePermissions = await prisma.rolePermissions.upsert({
     *   create: {
     *     // ... data to create a RolePermissions
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the RolePermissions we want to update
     *   }
     * })
     */
    upsert<T extends RolePermissionsUpsertArgs>(args: SelectSubset<T, RolePermissionsUpsertArgs<ExtArgs>>): Prisma__RolePermissionsClient<$Result.GetResult<Prisma.$RolePermissionsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of RolePermissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RolePermissionsCountArgs} args - Arguments to filter RolePermissions to count.
     * @example
     * // Count the number of RolePermissions
     * const count = await prisma.rolePermissions.count({
     *   where: {
     *     // ... the filter for the RolePermissions we want to count
     *   }
     * })
    **/
    count<T extends RolePermissionsCountArgs>(
      args?: Subset<T, RolePermissionsCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], RolePermissionsCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a RolePermissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RolePermissionsAggregateArgs} 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<T extends RolePermissionsAggregateArgs>(args: Subset<T, RolePermissionsAggregateArgs>): Prisma.PrismaPromise<GetRolePermissionsAggregateType<T>>

    /**
     * Group by RolePermissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {RolePermissionsGroupByArgs} 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 RolePermissionsGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: RolePermissionsGroupByArgs['orderBy'] }
        : { orderBy?: RolePermissionsGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, RolePermissionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRolePermissionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the RolePermissions model
   */
  readonly fields: RolePermissionsFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for RolePermissions.
   * 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__RolePermissionsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    role<T extends RoleDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RoleDefaultArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    permission<T extends PermissionsDefaultArgs<ExtArgs> = {}>(args?: Subset<T, PermissionsDefaultArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the RolePermissions model
   */ 
  interface RolePermissionsFieldRefs {
    readonly role_id: FieldRef<"RolePermissions", 'Int'>
    readonly permission_id: FieldRef<"RolePermissions", 'Int'>
    readonly company_id: FieldRef<"RolePermissions", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * RolePermissions findUnique
   */
  export type RolePermissionsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    /**
     * Filter, which RolePermissions to fetch.
     */
    where: RolePermissionsWhereUniqueInput
  }

  /**
   * RolePermissions findUniqueOrThrow
   */
  export type RolePermissionsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    /**
     * Filter, which RolePermissions to fetch.
     */
    where: RolePermissionsWhereUniqueInput
  }

  /**
   * RolePermissions findFirst
   */
  export type RolePermissionsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    /**
     * Filter, which RolePermissions to fetch.
     */
    where?: RolePermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of RolePermissions to fetch.
     */
    orderBy?: RolePermissionsOrderByWithRelationInput | RolePermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for RolePermissions.
     */
    cursor?: RolePermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` RolePermissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` RolePermissions.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of RolePermissions.
     */
    distinct?: RolePermissionsScalarFieldEnum | RolePermissionsScalarFieldEnum[]
  }

  /**
   * RolePermissions findFirstOrThrow
   */
  export type RolePermissionsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    /**
     * Filter, which RolePermissions to fetch.
     */
    where?: RolePermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of RolePermissions to fetch.
     */
    orderBy?: RolePermissionsOrderByWithRelationInput | RolePermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for RolePermissions.
     */
    cursor?: RolePermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` RolePermissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` RolePermissions.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of RolePermissions.
     */
    distinct?: RolePermissionsScalarFieldEnum | RolePermissionsScalarFieldEnum[]
  }

  /**
   * RolePermissions findMany
   */
  export type RolePermissionsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    /**
     * Filter, which RolePermissions to fetch.
     */
    where?: RolePermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of RolePermissions to fetch.
     */
    orderBy?: RolePermissionsOrderByWithRelationInput | RolePermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing RolePermissions.
     */
    cursor?: RolePermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` RolePermissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` RolePermissions.
     */
    skip?: number
    distinct?: RolePermissionsScalarFieldEnum | RolePermissionsScalarFieldEnum[]
  }

  /**
   * RolePermissions create
   */
  export type RolePermissionsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    /**
     * The data needed to create a RolePermissions.
     */
    data: XOR<RolePermissionsCreateInput, RolePermissionsUncheckedCreateInput>
  }

  /**
   * RolePermissions createMany
   */
  export type RolePermissionsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many RolePermissions.
     */
    data: RolePermissionsCreateManyInput | RolePermissionsCreateManyInput[]
  }

  /**
   * RolePermissions update
   */
  export type RolePermissionsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    /**
     * The data needed to update a RolePermissions.
     */
    data: XOR<RolePermissionsUpdateInput, RolePermissionsUncheckedUpdateInput>
    /**
     * Choose, which RolePermissions to update.
     */
    where: RolePermissionsWhereUniqueInput
  }

  /**
   * RolePermissions updateMany
   */
  export type RolePermissionsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update RolePermissions.
     */
    data: XOR<RolePermissionsUpdateManyMutationInput, RolePermissionsUncheckedUpdateManyInput>
    /**
     * Filter which RolePermissions to update
     */
    where?: RolePermissionsWhereInput
  }

  /**
   * RolePermissions upsert
   */
  export type RolePermissionsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    /**
     * The filter to search for the RolePermissions to update in case it exists.
     */
    where: RolePermissionsWhereUniqueInput
    /**
     * In case the RolePermissions found by the `where` argument doesn't exist, create a new RolePermissions with this data.
     */
    create: XOR<RolePermissionsCreateInput, RolePermissionsUncheckedCreateInput>
    /**
     * In case the RolePermissions was found with the provided `where` argument, update it with this data.
     */
    update: XOR<RolePermissionsUpdateInput, RolePermissionsUncheckedUpdateInput>
  }

  /**
   * RolePermissions delete
   */
  export type RolePermissionsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
    /**
     * Filter which RolePermissions to delete.
     */
    where: RolePermissionsWhereUniqueInput
  }

  /**
   * RolePermissions deleteMany
   */
  export type RolePermissionsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which RolePermissions to delete
     */
    where?: RolePermissionsWhereInput
  }

  /**
   * RolePermissions without action
   */
  export type RolePermissionsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RolePermissions
     */
    select?: RolePermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RolePermissionsInclude<ExtArgs> | null
  }


  /**
   * Model UserRoles
   */

  export type AggregateUserRoles = {
    _count: UserRolesCountAggregateOutputType | null
    _avg: UserRolesAvgAggregateOutputType | null
    _sum: UserRolesSumAggregateOutputType | null
    _min: UserRolesMinAggregateOutputType | null
    _max: UserRolesMaxAggregateOutputType | null
  }

  export type UserRolesAvgAggregateOutputType = {
    user_id: number | null
    role_id: number | null
    company_id: number | null
  }

  export type UserRolesSumAggregateOutputType = {
    user_id: number | null
    role_id: number | null
    company_id: number | null
  }

  export type UserRolesMinAggregateOutputType = {
    user_id: number | null
    role_id: number | null
    company_id: number | null
  }

  export type UserRolesMaxAggregateOutputType = {
    user_id: number | null
    role_id: number | null
    company_id: number | null
  }

  export type UserRolesCountAggregateOutputType = {
    user_id: number
    role_id: number
    company_id: number
    _all: number
  }


  export type UserRolesAvgAggregateInputType = {
    user_id?: true
    role_id?: true
    company_id?: true
  }

  export type UserRolesSumAggregateInputType = {
    user_id?: true
    role_id?: true
    company_id?: true
  }

  export type UserRolesMinAggregateInputType = {
    user_id?: true
    role_id?: true
    company_id?: true
  }

  export type UserRolesMaxAggregateInputType = {
    user_id?: true
    role_id?: true
    company_id?: true
  }

  export type UserRolesCountAggregateInputType = {
    user_id?: true
    role_id?: true
    company_id?: true
    _all?: true
  }

  export type UserRolesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which UserRoles to aggregate.
     */
    where?: UserRolesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserRoles to fetch.
     */
    orderBy?: UserRolesOrderByWithRelationInput | UserRolesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: UserRolesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserRoles from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserRoles.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned UserRoles
    **/
    _count?: true | UserRolesCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: UserRolesAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: UserRolesSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: UserRolesMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: UserRolesMaxAggregateInputType
  }

  export type GetUserRolesAggregateType<T extends UserRolesAggregateArgs> = {
        [P in keyof T & keyof AggregateUserRoles]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateUserRoles[P]>
      : GetScalarType<T[P], AggregateUserRoles[P]>
  }




  export type UserRolesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserRolesWhereInput
    orderBy?: UserRolesOrderByWithAggregationInput | UserRolesOrderByWithAggregationInput[]
    by: UserRolesScalarFieldEnum[] | UserRolesScalarFieldEnum
    having?: UserRolesScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: UserRolesCountAggregateInputType | true
    _avg?: UserRolesAvgAggregateInputType
    _sum?: UserRolesSumAggregateInputType
    _min?: UserRolesMinAggregateInputType
    _max?: UserRolesMaxAggregateInputType
  }

  export type UserRolesGroupByOutputType = {
    user_id: number
    role_id: number
    company_id: number
    _count: UserRolesCountAggregateOutputType | null
    _avg: UserRolesAvgAggregateOutputType | null
    _sum: UserRolesSumAggregateOutputType | null
    _min: UserRolesMinAggregateOutputType | null
    _max: UserRolesMaxAggregateOutputType | null
  }

  type GetUserRolesGroupByPayload<T extends UserRolesGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<UserRolesGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof UserRolesGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], UserRolesGroupByOutputType[P]>
            : GetScalarType<T[P], UserRolesGroupByOutputType[P]>
        }
      >
    >


  export type UserRolesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    user_id?: boolean
    role_id?: boolean
    company_id?: boolean
    user?: boolean | UserDefaultArgs<ExtArgs>
    role?: boolean | RoleDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["userRoles"]>


  export type UserRolesSelectScalar = {
    user_id?: boolean
    role_id?: boolean
    company_id?: boolean
  }

  export type UserRolesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    user?: boolean | UserDefaultArgs<ExtArgs>
    role?: boolean | RoleDefaultArgs<ExtArgs>
  }

  export type $UserRolesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "UserRoles"
    objects: {
      user: Prisma.$UserPayload<ExtArgs>
      role: Prisma.$RolePayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      user_id: number
      role_id: number
      company_id: number
    }, ExtArgs["result"]["userRoles"]>
    composites: {}
  }

  type UserRolesGetPayload<S extends boolean | null | undefined | UserRolesDefaultArgs> = $Result.GetResult<Prisma.$UserRolesPayload, S>

  type UserRolesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<UserRolesFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: UserRolesCountAggregateInputType | true
    }

  export interface UserRolesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserRoles'], meta: { name: 'UserRoles' } }
    /**
     * Find zero or one UserRoles that matches the filter.
     * @param {UserRolesFindUniqueArgs} args - Arguments to find a UserRoles
     * @example
     * // Get one UserRoles
     * const userRoles = await prisma.userRoles.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends UserRolesFindUniqueArgs>(args: SelectSubset<T, UserRolesFindUniqueArgs<ExtArgs>>): Prisma__UserRolesClient<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one UserRoles that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {UserRolesFindUniqueOrThrowArgs} args - Arguments to find a UserRoles
     * @example
     * // Get one UserRoles
     * const userRoles = await prisma.userRoles.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends UserRolesFindUniqueOrThrowArgs>(args: SelectSubset<T, UserRolesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserRolesClient<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first UserRoles 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 {UserRolesFindFirstArgs} args - Arguments to find a UserRoles
     * @example
     * // Get one UserRoles
     * const userRoles = await prisma.userRoles.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends UserRolesFindFirstArgs>(args?: SelectSubset<T, UserRolesFindFirstArgs<ExtArgs>>): Prisma__UserRolesClient<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first UserRoles 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 {UserRolesFindFirstOrThrowArgs} args - Arguments to find a UserRoles
     * @example
     * // Get one UserRoles
     * const userRoles = await prisma.userRoles.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends UserRolesFindFirstOrThrowArgs>(args?: SelectSubset<T, UserRolesFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserRolesClient<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more UserRoles 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 {UserRolesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all UserRoles
     * const userRoles = await prisma.userRoles.findMany()
     * 
     * // Get first 10 UserRoles
     * const userRoles = await prisma.userRoles.findMany({ take: 10 })
     * 
     * // Only select the `user_id`
     * const userRolesWithUser_idOnly = await prisma.userRoles.findMany({ select: { user_id: true } })
     * 
     */
    findMany<T extends UserRolesFindManyArgs>(args?: SelectSubset<T, UserRolesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a UserRoles.
     * @param {UserRolesCreateArgs} args - Arguments to create a UserRoles.
     * @example
     * // Create one UserRoles
     * const UserRoles = await prisma.userRoles.create({
     *   data: {
     *     // ... data to create a UserRoles
     *   }
     * })
     * 
     */
    create<T extends UserRolesCreateArgs>(args: SelectSubset<T, UserRolesCreateArgs<ExtArgs>>): Prisma__UserRolesClient<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many UserRoles.
     * @param {UserRolesCreateManyArgs} args - Arguments to create many UserRoles.
     * @example
     * // Create many UserRoles
     * const userRoles = await prisma.userRoles.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends UserRolesCreateManyArgs>(args?: SelectSubset<T, UserRolesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a UserRoles.
     * @param {UserRolesDeleteArgs} args - Arguments to delete one UserRoles.
     * @example
     * // Delete one UserRoles
     * const UserRoles = await prisma.userRoles.delete({
     *   where: {
     *     // ... filter to delete one UserRoles
     *   }
     * })
     * 
     */
    delete<T extends UserRolesDeleteArgs>(args: SelectSubset<T, UserRolesDeleteArgs<ExtArgs>>): Prisma__UserRolesClient<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one UserRoles.
     * @param {UserRolesUpdateArgs} args - Arguments to update one UserRoles.
     * @example
     * // Update one UserRoles
     * const userRoles = await prisma.userRoles.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends UserRolesUpdateArgs>(args: SelectSubset<T, UserRolesUpdateArgs<ExtArgs>>): Prisma__UserRolesClient<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more UserRoles.
     * @param {UserRolesDeleteManyArgs} args - Arguments to filter UserRoles to delete.
     * @example
     * // Delete a few UserRoles
     * const { count } = await prisma.userRoles.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends UserRolesDeleteManyArgs>(args?: SelectSubset<T, UserRolesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more UserRoles.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserRolesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many UserRoles
     * const userRoles = await prisma.userRoles.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends UserRolesUpdateManyArgs>(args: SelectSubset<T, UserRolesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one UserRoles.
     * @param {UserRolesUpsertArgs} args - Arguments to update or create a UserRoles.
     * @example
     * // Update or create a UserRoles
     * const userRoles = await prisma.userRoles.upsert({
     *   create: {
     *     // ... data to create a UserRoles
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the UserRoles we want to update
     *   }
     * })
     */
    upsert<T extends UserRolesUpsertArgs>(args: SelectSubset<T, UserRolesUpsertArgs<ExtArgs>>): Prisma__UserRolesClient<$Result.GetResult<Prisma.$UserRolesPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of UserRoles.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserRolesCountArgs} args - Arguments to filter UserRoles to count.
     * @example
     * // Count the number of UserRoles
     * const count = await prisma.userRoles.count({
     *   where: {
     *     // ... the filter for the UserRoles we want to count
     *   }
     * })
    **/
    count<T extends UserRolesCountArgs>(
      args?: Subset<T, UserRolesCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], UserRolesCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a UserRoles.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserRolesAggregateArgs} 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<T extends UserRolesAggregateArgs>(args: Subset<T, UserRolesAggregateArgs>): Prisma.PrismaPromise<GetUserRolesAggregateType<T>>

    /**
     * Group by UserRoles.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserRolesGroupByArgs} 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 UserRolesGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: UserRolesGroupByArgs['orderBy'] }
        : { orderBy?: UserRolesGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, UserRolesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserRolesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the UserRoles model
   */
  readonly fields: UserRolesFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for UserRoles.
   * 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__UserRolesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    role<T extends RoleDefaultArgs<ExtArgs> = {}>(args?: Subset<T, RoleDefaultArgs<ExtArgs>>): Prisma__RoleClient<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the UserRoles model
   */ 
  interface UserRolesFieldRefs {
    readonly user_id: FieldRef<"UserRoles", 'Int'>
    readonly role_id: FieldRef<"UserRoles", 'Int'>
    readonly company_id: FieldRef<"UserRoles", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * UserRoles findUnique
   */
  export type UserRolesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    /**
     * Filter, which UserRoles to fetch.
     */
    where: UserRolesWhereUniqueInput
  }

  /**
   * UserRoles findUniqueOrThrow
   */
  export type UserRolesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    /**
     * Filter, which UserRoles to fetch.
     */
    where: UserRolesWhereUniqueInput
  }

  /**
   * UserRoles findFirst
   */
  export type UserRolesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    /**
     * Filter, which UserRoles to fetch.
     */
    where?: UserRolesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserRoles to fetch.
     */
    orderBy?: UserRolesOrderByWithRelationInput | UserRolesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for UserRoles.
     */
    cursor?: UserRolesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserRoles from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserRoles.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of UserRoles.
     */
    distinct?: UserRolesScalarFieldEnum | UserRolesScalarFieldEnum[]
  }

  /**
   * UserRoles findFirstOrThrow
   */
  export type UserRolesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    /**
     * Filter, which UserRoles to fetch.
     */
    where?: UserRolesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserRoles to fetch.
     */
    orderBy?: UserRolesOrderByWithRelationInput | UserRolesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for UserRoles.
     */
    cursor?: UserRolesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserRoles from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserRoles.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of UserRoles.
     */
    distinct?: UserRolesScalarFieldEnum | UserRolesScalarFieldEnum[]
  }

  /**
   * UserRoles findMany
   */
  export type UserRolesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    /**
     * Filter, which UserRoles to fetch.
     */
    where?: UserRolesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserRoles to fetch.
     */
    orderBy?: UserRolesOrderByWithRelationInput | UserRolesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing UserRoles.
     */
    cursor?: UserRolesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserRoles from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserRoles.
     */
    skip?: number
    distinct?: UserRolesScalarFieldEnum | UserRolesScalarFieldEnum[]
  }

  /**
   * UserRoles create
   */
  export type UserRolesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    /**
     * The data needed to create a UserRoles.
     */
    data: XOR<UserRolesCreateInput, UserRolesUncheckedCreateInput>
  }

  /**
   * UserRoles createMany
   */
  export type UserRolesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many UserRoles.
     */
    data: UserRolesCreateManyInput | UserRolesCreateManyInput[]
  }

  /**
   * UserRoles update
   */
  export type UserRolesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    /**
     * The data needed to update a UserRoles.
     */
    data: XOR<UserRolesUpdateInput, UserRolesUncheckedUpdateInput>
    /**
     * Choose, which UserRoles to update.
     */
    where: UserRolesWhereUniqueInput
  }

  /**
   * UserRoles updateMany
   */
  export type UserRolesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update UserRoles.
     */
    data: XOR<UserRolesUpdateManyMutationInput, UserRolesUncheckedUpdateManyInput>
    /**
     * Filter which UserRoles to update
     */
    where?: UserRolesWhereInput
  }

  /**
   * UserRoles upsert
   */
  export type UserRolesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    /**
     * The filter to search for the UserRoles to update in case it exists.
     */
    where: UserRolesWhereUniqueInput
    /**
     * In case the UserRoles found by the `where` argument doesn't exist, create a new UserRoles with this data.
     */
    create: XOR<UserRolesCreateInput, UserRolesUncheckedCreateInput>
    /**
     * In case the UserRoles was found with the provided `where` argument, update it with this data.
     */
    update: XOR<UserRolesUpdateInput, UserRolesUncheckedUpdateInput>
  }

  /**
   * UserRoles delete
   */
  export type UserRolesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
    /**
     * Filter which UserRoles to delete.
     */
    where: UserRolesWhereUniqueInput
  }

  /**
   * UserRoles deleteMany
   */
  export type UserRolesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which UserRoles to delete
     */
    where?: UserRolesWhereInput
  }

  /**
   * UserRoles without action
   */
  export type UserRolesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserRoles
     */
    select?: UserRolesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserRolesInclude<ExtArgs> | null
  }


  /**
   * Model UserPermissions
   */

  export type AggregateUserPermissions = {
    _count: UserPermissionsCountAggregateOutputType | null
    _avg: UserPermissionsAvgAggregateOutputType | null
    _sum: UserPermissionsSumAggregateOutputType | null
    _min: UserPermissionsMinAggregateOutputType | null
    _max: UserPermissionsMaxAggregateOutputType | null
  }

  export type UserPermissionsAvgAggregateOutputType = {
    user_id: number | null
    permission_id: number | null
    company_id: number | null
  }

  export type UserPermissionsSumAggregateOutputType = {
    user_id: number | null
    permission_id: number | null
    company_id: number | null
  }

  export type UserPermissionsMinAggregateOutputType = {
    user_id: number | null
    permission_id: number | null
    company_id: number | null
  }

  export type UserPermissionsMaxAggregateOutputType = {
    user_id: number | null
    permission_id: number | null
    company_id: number | null
  }

  export type UserPermissionsCountAggregateOutputType = {
    user_id: number
    permission_id: number
    company_id: number
    _all: number
  }


  export type UserPermissionsAvgAggregateInputType = {
    user_id?: true
    permission_id?: true
    company_id?: true
  }

  export type UserPermissionsSumAggregateInputType = {
    user_id?: true
    permission_id?: true
    company_id?: true
  }

  export type UserPermissionsMinAggregateInputType = {
    user_id?: true
    permission_id?: true
    company_id?: true
  }

  export type UserPermissionsMaxAggregateInputType = {
    user_id?: true
    permission_id?: true
    company_id?: true
  }

  export type UserPermissionsCountAggregateInputType = {
    user_id?: true
    permission_id?: true
    company_id?: true
    _all?: true
  }

  export type UserPermissionsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which UserPermissions to aggregate.
     */
    where?: UserPermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserPermissions to fetch.
     */
    orderBy?: UserPermissionsOrderByWithRelationInput | UserPermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: UserPermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserPermissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserPermissions.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned UserPermissions
    **/
    _count?: true | UserPermissionsCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: UserPermissionsAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: UserPermissionsSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: UserPermissionsMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: UserPermissionsMaxAggregateInputType
  }

  export type GetUserPermissionsAggregateType<T extends UserPermissionsAggregateArgs> = {
        [P in keyof T & keyof AggregateUserPermissions]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateUserPermissions[P]>
      : GetScalarType<T[P], AggregateUserPermissions[P]>
  }




  export type UserPermissionsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: UserPermissionsWhereInput
    orderBy?: UserPermissionsOrderByWithAggregationInput | UserPermissionsOrderByWithAggregationInput[]
    by: UserPermissionsScalarFieldEnum[] | UserPermissionsScalarFieldEnum
    having?: UserPermissionsScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: UserPermissionsCountAggregateInputType | true
    _avg?: UserPermissionsAvgAggregateInputType
    _sum?: UserPermissionsSumAggregateInputType
    _min?: UserPermissionsMinAggregateInputType
    _max?: UserPermissionsMaxAggregateInputType
  }

  export type UserPermissionsGroupByOutputType = {
    user_id: number
    permission_id: number
    company_id: number
    _count: UserPermissionsCountAggregateOutputType | null
    _avg: UserPermissionsAvgAggregateOutputType | null
    _sum: UserPermissionsSumAggregateOutputType | null
    _min: UserPermissionsMinAggregateOutputType | null
    _max: UserPermissionsMaxAggregateOutputType | null
  }

  type GetUserPermissionsGroupByPayload<T extends UserPermissionsGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<UserPermissionsGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof UserPermissionsGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], UserPermissionsGroupByOutputType[P]>
            : GetScalarType<T[P], UserPermissionsGroupByOutputType[P]>
        }
      >
    >


  export type UserPermissionsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    user_id?: boolean
    permission_id?: boolean
    company_id?: boolean
    user?: boolean | UserDefaultArgs<ExtArgs>
    permission?: boolean | PermissionsDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["userPermissions"]>


  export type UserPermissionsSelectScalar = {
    user_id?: boolean
    permission_id?: boolean
    company_id?: boolean
  }

  export type UserPermissionsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    user?: boolean | UserDefaultArgs<ExtArgs>
    permission?: boolean | PermissionsDefaultArgs<ExtArgs>
  }

  export type $UserPermissionsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "UserPermissions"
    objects: {
      user: Prisma.$UserPayload<ExtArgs>
      permission: Prisma.$PermissionsPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      user_id: number
      permission_id: number
      company_id: number
    }, ExtArgs["result"]["userPermissions"]>
    composites: {}
  }

  type UserPermissionsGetPayload<S extends boolean | null | undefined | UserPermissionsDefaultArgs> = $Result.GetResult<Prisma.$UserPermissionsPayload, S>

  type UserPermissionsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<UserPermissionsFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: UserPermissionsCountAggregateInputType | true
    }

  export interface UserPermissionsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UserPermissions'], meta: { name: 'UserPermissions' } }
    /**
     * Find zero or one UserPermissions that matches the filter.
     * @param {UserPermissionsFindUniqueArgs} args - Arguments to find a UserPermissions
     * @example
     * // Get one UserPermissions
     * const userPermissions = await prisma.userPermissions.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends UserPermissionsFindUniqueArgs>(args: SelectSubset<T, UserPermissionsFindUniqueArgs<ExtArgs>>): Prisma__UserPermissionsClient<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one UserPermissions that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {UserPermissionsFindUniqueOrThrowArgs} args - Arguments to find a UserPermissions
     * @example
     * // Get one UserPermissions
     * const userPermissions = await prisma.userPermissions.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends UserPermissionsFindUniqueOrThrowArgs>(args: SelectSubset<T, UserPermissionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserPermissionsClient<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first UserPermissions 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 {UserPermissionsFindFirstArgs} args - Arguments to find a UserPermissions
     * @example
     * // Get one UserPermissions
     * const userPermissions = await prisma.userPermissions.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends UserPermissionsFindFirstArgs>(args?: SelectSubset<T, UserPermissionsFindFirstArgs<ExtArgs>>): Prisma__UserPermissionsClient<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first UserPermissions 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 {UserPermissionsFindFirstOrThrowArgs} args - Arguments to find a UserPermissions
     * @example
     * // Get one UserPermissions
     * const userPermissions = await prisma.userPermissions.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends UserPermissionsFindFirstOrThrowArgs>(args?: SelectSubset<T, UserPermissionsFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserPermissionsClient<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more UserPermissions 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 {UserPermissionsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all UserPermissions
     * const userPermissions = await prisma.userPermissions.findMany()
     * 
     * // Get first 10 UserPermissions
     * const userPermissions = await prisma.userPermissions.findMany({ take: 10 })
     * 
     * // Only select the `user_id`
     * const userPermissionsWithUser_idOnly = await prisma.userPermissions.findMany({ select: { user_id: true } })
     * 
     */
    findMany<T extends UserPermissionsFindManyArgs>(args?: SelectSubset<T, UserPermissionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a UserPermissions.
     * @param {UserPermissionsCreateArgs} args - Arguments to create a UserPermissions.
     * @example
     * // Create one UserPermissions
     * const UserPermissions = await prisma.userPermissions.create({
     *   data: {
     *     // ... data to create a UserPermissions
     *   }
     * })
     * 
     */
    create<T extends UserPermissionsCreateArgs>(args: SelectSubset<T, UserPermissionsCreateArgs<ExtArgs>>): Prisma__UserPermissionsClient<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many UserPermissions.
     * @param {UserPermissionsCreateManyArgs} args - Arguments to create many UserPermissions.
     * @example
     * // Create many UserPermissions
     * const userPermissions = await prisma.userPermissions.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends UserPermissionsCreateManyArgs>(args?: SelectSubset<T, UserPermissionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a UserPermissions.
     * @param {UserPermissionsDeleteArgs} args - Arguments to delete one UserPermissions.
     * @example
     * // Delete one UserPermissions
     * const UserPermissions = await prisma.userPermissions.delete({
     *   where: {
     *     // ... filter to delete one UserPermissions
     *   }
     * })
     * 
     */
    delete<T extends UserPermissionsDeleteArgs>(args: SelectSubset<T, UserPermissionsDeleteArgs<ExtArgs>>): Prisma__UserPermissionsClient<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one UserPermissions.
     * @param {UserPermissionsUpdateArgs} args - Arguments to update one UserPermissions.
     * @example
     * // Update one UserPermissions
     * const userPermissions = await prisma.userPermissions.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends UserPermissionsUpdateArgs>(args: SelectSubset<T, UserPermissionsUpdateArgs<ExtArgs>>): Prisma__UserPermissionsClient<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more UserPermissions.
     * @param {UserPermissionsDeleteManyArgs} args - Arguments to filter UserPermissions to delete.
     * @example
     * // Delete a few UserPermissions
     * const { count } = await prisma.userPermissions.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends UserPermissionsDeleteManyArgs>(args?: SelectSubset<T, UserPermissionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more UserPermissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserPermissionsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many UserPermissions
     * const userPermissions = await prisma.userPermissions.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends UserPermissionsUpdateManyArgs>(args: SelectSubset<T, UserPermissionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one UserPermissions.
     * @param {UserPermissionsUpsertArgs} args - Arguments to update or create a UserPermissions.
     * @example
     * // Update or create a UserPermissions
     * const userPermissions = await prisma.userPermissions.upsert({
     *   create: {
     *     // ... data to create a UserPermissions
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the UserPermissions we want to update
     *   }
     * })
     */
    upsert<T extends UserPermissionsUpsertArgs>(args: SelectSubset<T, UserPermissionsUpsertArgs<ExtArgs>>): Prisma__UserPermissionsClient<$Result.GetResult<Prisma.$UserPermissionsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of UserPermissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserPermissionsCountArgs} args - Arguments to filter UserPermissions to count.
     * @example
     * // Count the number of UserPermissions
     * const count = await prisma.userPermissions.count({
     *   where: {
     *     // ... the filter for the UserPermissions we want to count
     *   }
     * })
    **/
    count<T extends UserPermissionsCountArgs>(
      args?: Subset<T, UserPermissionsCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], UserPermissionsCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a UserPermissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserPermissionsAggregateArgs} 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<T extends UserPermissionsAggregateArgs>(args: Subset<T, UserPermissionsAggregateArgs>): Prisma.PrismaPromise<GetUserPermissionsAggregateType<T>>

    /**
     * Group by UserPermissions.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {UserPermissionsGroupByArgs} 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 UserPermissionsGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: UserPermissionsGroupByArgs['orderBy'] }
        : { orderBy?: UserPermissionsGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, UserPermissionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserPermissionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the UserPermissions model
   */
  readonly fields: UserPermissionsFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for UserPermissions.
   * 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__UserPermissionsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    permission<T extends PermissionsDefaultArgs<ExtArgs> = {}>(args?: Subset<T, PermissionsDefaultArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the UserPermissions model
   */ 
  interface UserPermissionsFieldRefs {
    readonly user_id: FieldRef<"UserPermissions", 'Int'>
    readonly permission_id: FieldRef<"UserPermissions", 'Int'>
    readonly company_id: FieldRef<"UserPermissions", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * UserPermissions findUnique
   */
  export type UserPermissionsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    /**
     * Filter, which UserPermissions to fetch.
     */
    where: UserPermissionsWhereUniqueInput
  }

  /**
   * UserPermissions findUniqueOrThrow
   */
  export type UserPermissionsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    /**
     * Filter, which UserPermissions to fetch.
     */
    where: UserPermissionsWhereUniqueInput
  }

  /**
   * UserPermissions findFirst
   */
  export type UserPermissionsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    /**
     * Filter, which UserPermissions to fetch.
     */
    where?: UserPermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserPermissions to fetch.
     */
    orderBy?: UserPermissionsOrderByWithRelationInput | UserPermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for UserPermissions.
     */
    cursor?: UserPermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserPermissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserPermissions.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of UserPermissions.
     */
    distinct?: UserPermissionsScalarFieldEnum | UserPermissionsScalarFieldEnum[]
  }

  /**
   * UserPermissions findFirstOrThrow
   */
  export type UserPermissionsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    /**
     * Filter, which UserPermissions to fetch.
     */
    where?: UserPermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserPermissions to fetch.
     */
    orderBy?: UserPermissionsOrderByWithRelationInput | UserPermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for UserPermissions.
     */
    cursor?: UserPermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserPermissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserPermissions.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of UserPermissions.
     */
    distinct?: UserPermissionsScalarFieldEnum | UserPermissionsScalarFieldEnum[]
  }

  /**
   * UserPermissions findMany
   */
  export type UserPermissionsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    /**
     * Filter, which UserPermissions to fetch.
     */
    where?: UserPermissionsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of UserPermissions to fetch.
     */
    orderBy?: UserPermissionsOrderByWithRelationInput | UserPermissionsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing UserPermissions.
     */
    cursor?: UserPermissionsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` UserPermissions from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` UserPermissions.
     */
    skip?: number
    distinct?: UserPermissionsScalarFieldEnum | UserPermissionsScalarFieldEnum[]
  }

  /**
   * UserPermissions create
   */
  export type UserPermissionsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    /**
     * The data needed to create a UserPermissions.
     */
    data: XOR<UserPermissionsCreateInput, UserPermissionsUncheckedCreateInput>
  }

  /**
   * UserPermissions createMany
   */
  export type UserPermissionsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many UserPermissions.
     */
    data: UserPermissionsCreateManyInput | UserPermissionsCreateManyInput[]
  }

  /**
   * UserPermissions update
   */
  export type UserPermissionsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    /**
     * The data needed to update a UserPermissions.
     */
    data: XOR<UserPermissionsUpdateInput, UserPermissionsUncheckedUpdateInput>
    /**
     * Choose, which UserPermissions to update.
     */
    where: UserPermissionsWhereUniqueInput
  }

  /**
   * UserPermissions updateMany
   */
  export type UserPermissionsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update UserPermissions.
     */
    data: XOR<UserPermissionsUpdateManyMutationInput, UserPermissionsUncheckedUpdateManyInput>
    /**
     * Filter which UserPermissions to update
     */
    where?: UserPermissionsWhereInput
  }

  /**
   * UserPermissions upsert
   */
  export type UserPermissionsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    /**
     * The filter to search for the UserPermissions to update in case it exists.
     */
    where: UserPermissionsWhereUniqueInput
    /**
     * In case the UserPermissions found by the `where` argument doesn't exist, create a new UserPermissions with this data.
     */
    create: XOR<UserPermissionsCreateInput, UserPermissionsUncheckedCreateInput>
    /**
     * In case the UserPermissions was found with the provided `where` argument, update it with this data.
     */
    update: XOR<UserPermissionsUpdateInput, UserPermissionsUncheckedUpdateInput>
  }

  /**
   * UserPermissions delete
   */
  export type UserPermissionsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
    /**
     * Filter which UserPermissions to delete.
     */
    where: UserPermissionsWhereUniqueInput
  }

  /**
   * UserPermissions deleteMany
   */
  export type UserPermissionsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which UserPermissions to delete
     */
    where?: UserPermissionsWhereInput
  }

  /**
   * UserPermissions without action
   */
  export type UserPermissionsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the UserPermissions
     */
    select?: UserPermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserPermissionsInclude<ExtArgs> | null
  }


  /**
   * Model Otp
   */

  export type AggregateOtp = {
    _count: OtpCountAggregateOutputType | null
    _avg: OtpAvgAggregateOutputType | null
    _sum: OtpSumAggregateOutputType | null
    _min: OtpMinAggregateOutputType | null
    _max: OtpMaxAggregateOutputType | null
  }

  export type OtpAvgAggregateOutputType = {
    id: number | null
    user_id: number | null
    company_id: number | null
  }

  export type OtpSumAggregateOutputType = {
    id: number | null
    user_id: number | null
    company_id: number | null
  }

  export type OtpMinAggregateOutputType = {
    id: number | null
    user_id: number | null
    otp: string | null
    purpose: string | null
    company_id: number | null
    created_at: Date | null
  }

  export type OtpMaxAggregateOutputType = {
    id: number | null
    user_id: number | null
    otp: string | null
    purpose: string | null
    company_id: number | null
    created_at: Date | null
  }

  export type OtpCountAggregateOutputType = {
    id: number
    user_id: number
    otp: number
    purpose: number
    company_id: number
    created_at: number
    _all: number
  }


  export type OtpAvgAggregateInputType = {
    id?: true
    user_id?: true
    company_id?: true
  }

  export type OtpSumAggregateInputType = {
    id?: true
    user_id?: true
    company_id?: true
  }

  export type OtpMinAggregateInputType = {
    id?: true
    user_id?: true
    otp?: true
    purpose?: true
    company_id?: true
    created_at?: true
  }

  export type OtpMaxAggregateInputType = {
    id?: true
    user_id?: true
    otp?: true
    purpose?: true
    company_id?: true
    created_at?: true
  }

  export type OtpCountAggregateInputType = {
    id?: true
    user_id?: true
    otp?: true
    purpose?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type OtpAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Otp to aggregate.
     */
    where?: OtpWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Otps to fetch.
     */
    orderBy?: OtpOrderByWithRelationInput | OtpOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: OtpWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Otps from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Otps.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Otps
    **/
    _count?: true | OtpCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: OtpAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: OtpSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: OtpMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: OtpMaxAggregateInputType
  }

  export type GetOtpAggregateType<T extends OtpAggregateArgs> = {
        [P in keyof T & keyof AggregateOtp]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateOtp[P]>
      : GetScalarType<T[P], AggregateOtp[P]>
  }




  export type OtpGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: OtpWhereInput
    orderBy?: OtpOrderByWithAggregationInput | OtpOrderByWithAggregationInput[]
    by: OtpScalarFieldEnum[] | OtpScalarFieldEnum
    having?: OtpScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: OtpCountAggregateInputType | true
    _avg?: OtpAvgAggregateInputType
    _sum?: OtpSumAggregateInputType
    _min?: OtpMinAggregateInputType
    _max?: OtpMaxAggregateInputType
  }

  export type OtpGroupByOutputType = {
    id: number
    user_id: number
    otp: string
    purpose: string
    company_id: number
    created_at: Date
    _count: OtpCountAggregateOutputType | null
    _avg: OtpAvgAggregateOutputType | null
    _sum: OtpSumAggregateOutputType | null
    _min: OtpMinAggregateOutputType | null
    _max: OtpMaxAggregateOutputType | null
  }

  type GetOtpGroupByPayload<T extends OtpGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<OtpGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof OtpGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], OtpGroupByOutputType[P]>
            : GetScalarType<T[P], OtpGroupByOutputType[P]>
        }
      >
    >


  export type OtpSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    user_id?: boolean
    otp?: boolean
    purpose?: boolean
    company_id?: boolean
    created_at?: boolean
    user?: boolean | UserDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["otp"]>


  export type OtpSelectScalar = {
    id?: boolean
    user_id?: boolean
    otp?: boolean
    purpose?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type OtpInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    user?: boolean | UserDefaultArgs<ExtArgs>
  }

  export type $OtpPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Otp"
    objects: {
      user: Prisma.$UserPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      user_id: number
      otp: string
      purpose: string
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["otp"]>
    composites: {}
  }

  type OtpGetPayload<S extends boolean | null | undefined | OtpDefaultArgs> = $Result.GetResult<Prisma.$OtpPayload, S>

  type OtpCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<OtpFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: OtpCountAggregateInputType | true
    }

  export interface OtpDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Otp'], meta: { name: 'Otp' } }
    /**
     * Find zero or one Otp that matches the filter.
     * @param {OtpFindUniqueArgs} args - Arguments to find a Otp
     * @example
     * // Get one Otp
     * const otp = await prisma.otp.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends OtpFindUniqueArgs>(args: SelectSubset<T, OtpFindUniqueArgs<ExtArgs>>): Prisma__OtpClient<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Otp that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {OtpFindUniqueOrThrowArgs} args - Arguments to find a Otp
     * @example
     * // Get one Otp
     * const otp = await prisma.otp.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends OtpFindUniqueOrThrowArgs>(args: SelectSubset<T, OtpFindUniqueOrThrowArgs<ExtArgs>>): Prisma__OtpClient<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Otp 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 {OtpFindFirstArgs} args - Arguments to find a Otp
     * @example
     * // Get one Otp
     * const otp = await prisma.otp.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends OtpFindFirstArgs>(args?: SelectSubset<T, OtpFindFirstArgs<ExtArgs>>): Prisma__OtpClient<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Otp 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 {OtpFindFirstOrThrowArgs} args - Arguments to find a Otp
     * @example
     * // Get one Otp
     * const otp = await prisma.otp.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends OtpFindFirstOrThrowArgs>(args?: SelectSubset<T, OtpFindFirstOrThrowArgs<ExtArgs>>): Prisma__OtpClient<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Otps 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 {OtpFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Otps
     * const otps = await prisma.otp.findMany()
     * 
     * // Get first 10 Otps
     * const otps = await prisma.otp.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const otpWithIdOnly = await prisma.otp.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends OtpFindManyArgs>(args?: SelectSubset<T, OtpFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Otp.
     * @param {OtpCreateArgs} args - Arguments to create a Otp.
     * @example
     * // Create one Otp
     * const Otp = await prisma.otp.create({
     *   data: {
     *     // ... data to create a Otp
     *   }
     * })
     * 
     */
    create<T extends OtpCreateArgs>(args: SelectSubset<T, OtpCreateArgs<ExtArgs>>): Prisma__OtpClient<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Otps.
     * @param {OtpCreateManyArgs} args - Arguments to create many Otps.
     * @example
     * // Create many Otps
     * const otp = await prisma.otp.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends OtpCreateManyArgs>(args?: SelectSubset<T, OtpCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Otp.
     * @param {OtpDeleteArgs} args - Arguments to delete one Otp.
     * @example
     * // Delete one Otp
     * const Otp = await prisma.otp.delete({
     *   where: {
     *     // ... filter to delete one Otp
     *   }
     * })
     * 
     */
    delete<T extends OtpDeleteArgs>(args: SelectSubset<T, OtpDeleteArgs<ExtArgs>>): Prisma__OtpClient<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Otp.
     * @param {OtpUpdateArgs} args - Arguments to update one Otp.
     * @example
     * // Update one Otp
     * const otp = await prisma.otp.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends OtpUpdateArgs>(args: SelectSubset<T, OtpUpdateArgs<ExtArgs>>): Prisma__OtpClient<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Otps.
     * @param {OtpDeleteManyArgs} args - Arguments to filter Otps to delete.
     * @example
     * // Delete a few Otps
     * const { count } = await prisma.otp.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends OtpDeleteManyArgs>(args?: SelectSubset<T, OtpDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Otps.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {OtpUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Otps
     * const otp = await prisma.otp.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends OtpUpdateManyArgs>(args: SelectSubset<T, OtpUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Otp.
     * @param {OtpUpsertArgs} args - Arguments to update or create a Otp.
     * @example
     * // Update or create a Otp
     * const otp = await prisma.otp.upsert({
     *   create: {
     *     // ... data to create a Otp
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Otp we want to update
     *   }
     * })
     */
    upsert<T extends OtpUpsertArgs>(args: SelectSubset<T, OtpUpsertArgs<ExtArgs>>): Prisma__OtpClient<$Result.GetResult<Prisma.$OtpPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Otps.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {OtpCountArgs} args - Arguments to filter Otps to count.
     * @example
     * // Count the number of Otps
     * const count = await prisma.otp.count({
     *   where: {
     *     // ... the filter for the Otps we want to count
     *   }
     * })
    **/
    count<T extends OtpCountArgs>(
      args?: Subset<T, OtpCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], OtpCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Otp.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {OtpAggregateArgs} 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<T extends OtpAggregateArgs>(args: Subset<T, OtpAggregateArgs>): Prisma.PrismaPromise<GetOtpAggregateType<T>>

    /**
     * Group by Otp.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {OtpGroupByArgs} 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 OtpGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: OtpGroupByArgs['orderBy'] }
        : { orderBy?: OtpGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, OtpGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOtpGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Otp model
   */
  readonly fields: OtpFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Otp.
   * 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__OtpClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Otp model
   */ 
  interface OtpFieldRefs {
    readonly id: FieldRef<"Otp", 'Int'>
    readonly user_id: FieldRef<"Otp", 'Int'>
    readonly otp: FieldRef<"Otp", 'String'>
    readonly purpose: FieldRef<"Otp", 'String'>
    readonly company_id: FieldRef<"Otp", 'Int'>
    readonly created_at: FieldRef<"Otp", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * Otp findUnique
   */
  export type OtpFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    /**
     * Filter, which Otp to fetch.
     */
    where: OtpWhereUniqueInput
  }

  /**
   * Otp findUniqueOrThrow
   */
  export type OtpFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    /**
     * Filter, which Otp to fetch.
     */
    where: OtpWhereUniqueInput
  }

  /**
   * Otp findFirst
   */
  export type OtpFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    /**
     * Filter, which Otp to fetch.
     */
    where?: OtpWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Otps to fetch.
     */
    orderBy?: OtpOrderByWithRelationInput | OtpOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Otps.
     */
    cursor?: OtpWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Otps from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Otps.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Otps.
     */
    distinct?: OtpScalarFieldEnum | OtpScalarFieldEnum[]
  }

  /**
   * Otp findFirstOrThrow
   */
  export type OtpFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    /**
     * Filter, which Otp to fetch.
     */
    where?: OtpWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Otps to fetch.
     */
    orderBy?: OtpOrderByWithRelationInput | OtpOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Otps.
     */
    cursor?: OtpWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Otps from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Otps.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Otps.
     */
    distinct?: OtpScalarFieldEnum | OtpScalarFieldEnum[]
  }

  /**
   * Otp findMany
   */
  export type OtpFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    /**
     * Filter, which Otps to fetch.
     */
    where?: OtpWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Otps to fetch.
     */
    orderBy?: OtpOrderByWithRelationInput | OtpOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Otps.
     */
    cursor?: OtpWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Otps from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Otps.
     */
    skip?: number
    distinct?: OtpScalarFieldEnum | OtpScalarFieldEnum[]
  }

  /**
   * Otp create
   */
  export type OtpCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    /**
     * The data needed to create a Otp.
     */
    data: XOR<OtpCreateInput, OtpUncheckedCreateInput>
  }

  /**
   * Otp createMany
   */
  export type OtpCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Otps.
     */
    data: OtpCreateManyInput | OtpCreateManyInput[]
  }

  /**
   * Otp update
   */
  export type OtpUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    /**
     * The data needed to update a Otp.
     */
    data: XOR<OtpUpdateInput, OtpUncheckedUpdateInput>
    /**
     * Choose, which Otp to update.
     */
    where: OtpWhereUniqueInput
  }

  /**
   * Otp updateMany
   */
  export type OtpUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Otps.
     */
    data: XOR<OtpUpdateManyMutationInput, OtpUncheckedUpdateManyInput>
    /**
     * Filter which Otps to update
     */
    where?: OtpWhereInput
  }

  /**
   * Otp upsert
   */
  export type OtpUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    /**
     * The filter to search for the Otp to update in case it exists.
     */
    where: OtpWhereUniqueInput
    /**
     * In case the Otp found by the `where` argument doesn't exist, create a new Otp with this data.
     */
    create: XOR<OtpCreateInput, OtpUncheckedCreateInput>
    /**
     * In case the Otp was found with the provided `where` argument, update it with this data.
     */
    update: XOR<OtpUpdateInput, OtpUncheckedUpdateInput>
  }

  /**
   * Otp delete
   */
  export type OtpDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
    /**
     * Filter which Otp to delete.
     */
    where: OtpWhereUniqueInput
  }

  /**
   * Otp deleteMany
   */
  export type OtpDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Otps to delete
     */
    where?: OtpWhereInput
  }

  /**
   * Otp without action
   */
  export type OtpDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Otp
     */
    select?: OtpSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: OtpInclude<ExtArgs> | null
  }


  /**
   * Model Language
   */

  export type AggregateLanguage = {
    _count: LanguageCountAggregateOutputType | null
    _avg: LanguageAvgAggregateOutputType | null
    _sum: LanguageSumAggregateOutputType | null
    _min: LanguageMinAggregateOutputType | null
    _max: LanguageMaxAggregateOutputType | null
  }

  export type LanguageAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type LanguageSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type LanguageMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    name_in_english: string | null
    flag: string | null
    code: string | null
    rtl: boolean | null
    description: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type LanguageMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    name_in_english: string | null
    flag: string | null
    code: string | null
    rtl: boolean | null
    description: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type LanguageCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    name_in_english: number
    flag: number
    code: number
    rtl: number
    description: number
    status_id: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type LanguageAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type LanguageSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type LanguageMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    name_in_english?: true
    flag?: true
    code?: true
    rtl?: true
    description?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type LanguageMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    name_in_english?: true
    flag?: true
    code?: true
    rtl?: true
    description?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type LanguageCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    name_in_english?: true
    flag?: true
    code?: true
    rtl?: true
    description?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type LanguageAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Language to aggregate.
     */
    where?: LanguageWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Languages to fetch.
     */
    orderBy?: LanguageOrderByWithRelationInput | LanguageOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: LanguageWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Languages from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Languages.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Languages
    **/
    _count?: true | LanguageCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: LanguageAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: LanguageSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: LanguageMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: LanguageMaxAggregateInputType
  }

  export type GetLanguageAggregateType<T extends LanguageAggregateArgs> = {
        [P in keyof T & keyof AggregateLanguage]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateLanguage[P]>
      : GetScalarType<T[P], AggregateLanguage[P]>
  }




  export type LanguageGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: LanguageWhereInput
    orderBy?: LanguageOrderByWithAggregationInput | LanguageOrderByWithAggregationInput[]
    by: LanguageScalarFieldEnum[] | LanguageScalarFieldEnum
    having?: LanguageScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: LanguageCountAggregateInputType | true
    _avg?: LanguageAvgAggregateInputType
    _sum?: LanguageSumAggregateInputType
    _min?: LanguageMinAggregateInputType
    _max?: LanguageMaxAggregateInputType
  }

  export type LanguageGroupByOutputType = {
    id: number
    uuid: string
    name: string
    name_in_english: string | null
    flag: string | null
    code: string | null
    rtl: boolean
    description: string
    status_id: number
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: LanguageCountAggregateOutputType | null
    _avg: LanguageAvgAggregateOutputType | null
    _sum: LanguageSumAggregateOutputType | null
    _min: LanguageMinAggregateOutputType | null
    _max: LanguageMaxAggregateOutputType | null
  }

  type GetLanguageGroupByPayload<T extends LanguageGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<LanguageGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof LanguageGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], LanguageGroupByOutputType[P]>
            : GetScalarType<T[P], LanguageGroupByOutputType[P]>
        }
      >
    >


  export type LanguageSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    name_in_english?: boolean
    flag?: boolean
    code?: boolean
    rtl?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    translations?: boolean | Language$translationsArgs<ExtArgs>
    created?: boolean | Language$createdArgs<ExtArgs>
    updated?: boolean | Language$updatedArgs<ExtArgs>
    deleted?: boolean | Language$deletedArgs<ExtArgs>
    _count?: boolean | LanguageCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["language"]>


  export type LanguageSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    name_in_english?: boolean
    flag?: boolean
    code?: boolean
    rtl?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type LanguageInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    translations?: boolean | Language$translationsArgs<ExtArgs>
    created?: boolean | Language$createdArgs<ExtArgs>
    updated?: boolean | Language$updatedArgs<ExtArgs>
    deleted?: boolean | Language$deletedArgs<ExtArgs>
    _count?: boolean | LanguageCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $LanguagePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Language"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      translations: Prisma.$LanguageContentPayload<ExtArgs>[]
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      name_in_english: string | null
      flag: string | null
      code: string | null
      rtl: boolean
      description: string
      status_id: number
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["language"]>
    composites: {}
  }

  type LanguageGetPayload<S extends boolean | null | undefined | LanguageDefaultArgs> = $Result.GetResult<Prisma.$LanguagePayload, S>

  type LanguageCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<LanguageFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: LanguageCountAggregateInputType | true
    }

  export interface LanguageDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Language'], meta: { name: 'Language' } }
    /**
     * Find zero or one Language that matches the filter.
     * @param {LanguageFindUniqueArgs} args - Arguments to find a Language
     * @example
     * // Get one Language
     * const language = await prisma.language.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends LanguageFindUniqueArgs>(args: SelectSubset<T, LanguageFindUniqueArgs<ExtArgs>>): Prisma__LanguageClient<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Language that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {LanguageFindUniqueOrThrowArgs} args - Arguments to find a Language
     * @example
     * // Get one Language
     * const language = await prisma.language.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends LanguageFindUniqueOrThrowArgs>(args: SelectSubset<T, LanguageFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LanguageClient<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Language 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 {LanguageFindFirstArgs} args - Arguments to find a Language
     * @example
     * // Get one Language
     * const language = await prisma.language.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends LanguageFindFirstArgs>(args?: SelectSubset<T, LanguageFindFirstArgs<ExtArgs>>): Prisma__LanguageClient<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Language 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 {LanguageFindFirstOrThrowArgs} args - Arguments to find a Language
     * @example
     * // Get one Language
     * const language = await prisma.language.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends LanguageFindFirstOrThrowArgs>(args?: SelectSubset<T, LanguageFindFirstOrThrowArgs<ExtArgs>>): Prisma__LanguageClient<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Languages 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 {LanguageFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Languages
     * const languages = await prisma.language.findMany()
     * 
     * // Get first 10 Languages
     * const languages = await prisma.language.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const languageWithIdOnly = await prisma.language.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends LanguageFindManyArgs>(args?: SelectSubset<T, LanguageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Language.
     * @param {LanguageCreateArgs} args - Arguments to create a Language.
     * @example
     * // Create one Language
     * const Language = await prisma.language.create({
     *   data: {
     *     // ... data to create a Language
     *   }
     * })
     * 
     */
    create<T extends LanguageCreateArgs>(args: SelectSubset<T, LanguageCreateArgs<ExtArgs>>): Prisma__LanguageClient<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Languages.
     * @param {LanguageCreateManyArgs} args - Arguments to create many Languages.
     * @example
     * // Create many Languages
     * const language = await prisma.language.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends LanguageCreateManyArgs>(args?: SelectSubset<T, LanguageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Language.
     * @param {LanguageDeleteArgs} args - Arguments to delete one Language.
     * @example
     * // Delete one Language
     * const Language = await prisma.language.delete({
     *   where: {
     *     // ... filter to delete one Language
     *   }
     * })
     * 
     */
    delete<T extends LanguageDeleteArgs>(args: SelectSubset<T, LanguageDeleteArgs<ExtArgs>>): Prisma__LanguageClient<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Language.
     * @param {LanguageUpdateArgs} args - Arguments to update one Language.
     * @example
     * // Update one Language
     * const language = await prisma.language.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends LanguageUpdateArgs>(args: SelectSubset<T, LanguageUpdateArgs<ExtArgs>>): Prisma__LanguageClient<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Languages.
     * @param {LanguageDeleteManyArgs} args - Arguments to filter Languages to delete.
     * @example
     * // Delete a few Languages
     * const { count } = await prisma.language.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends LanguageDeleteManyArgs>(args?: SelectSubset<T, LanguageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Languages.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {LanguageUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Languages
     * const language = await prisma.language.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends LanguageUpdateManyArgs>(args: SelectSubset<T, LanguageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Language.
     * @param {LanguageUpsertArgs} args - Arguments to update or create a Language.
     * @example
     * // Update or create a Language
     * const language = await prisma.language.upsert({
     *   create: {
     *     // ... data to create a Language
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Language we want to update
     *   }
     * })
     */
    upsert<T extends LanguageUpsertArgs>(args: SelectSubset<T, LanguageUpsertArgs<ExtArgs>>): Prisma__LanguageClient<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Languages.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {LanguageCountArgs} args - Arguments to filter Languages to count.
     * @example
     * // Count the number of Languages
     * const count = await prisma.language.count({
     *   where: {
     *     // ... the filter for the Languages we want to count
     *   }
     * })
    **/
    count<T extends LanguageCountArgs>(
      args?: Subset<T, LanguageCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], LanguageCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Language.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {LanguageAggregateArgs} 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<T extends LanguageAggregateArgs>(args: Subset<T, LanguageAggregateArgs>): Prisma.PrismaPromise<GetLanguageAggregateType<T>>

    /**
     * Group by Language.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {LanguageGroupByArgs} 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 LanguageGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: LanguageGroupByArgs['orderBy'] }
        : { orderBy?: LanguageGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, LanguageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLanguageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Language model
   */
  readonly fields: LanguageFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Language.
   * 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__LanguageClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    translations<T extends Language$translationsArgs<ExtArgs> = {}>(args?: Subset<T, Language$translationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "findMany"> | Null>
    created<T extends Language$createdArgs<ExtArgs> = {}>(args?: Subset<T, Language$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends Language$updatedArgs<ExtArgs> = {}>(args?: Subset<T, Language$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends Language$deletedArgs<ExtArgs> = {}>(args?: Subset<T, Language$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Language model
   */ 
  interface LanguageFieldRefs {
    readonly id: FieldRef<"Language", 'Int'>
    readonly uuid: FieldRef<"Language", 'String'>
    readonly name: FieldRef<"Language", 'String'>
    readonly name_in_english: FieldRef<"Language", 'String'>
    readonly flag: FieldRef<"Language", 'String'>
    readonly code: FieldRef<"Language", 'String'>
    readonly rtl: FieldRef<"Language", 'Boolean'>
    readonly description: FieldRef<"Language", 'String'>
    readonly status_id: FieldRef<"Language", 'Int'>
    readonly company_id: FieldRef<"Language", 'Int'>
    readonly created_by: FieldRef<"Language", 'Int'>
    readonly updated_by: FieldRef<"Language", 'Int'>
    readonly deleted_by: FieldRef<"Language", 'Int'>
    readonly created_at: FieldRef<"Language", 'DateTime'>
    readonly updated_at: FieldRef<"Language", 'DateTime'>
    readonly deleted_at: FieldRef<"Language", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * Language findUnique
   */
  export type LanguageFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    /**
     * Filter, which Language to fetch.
     */
    where: LanguageWhereUniqueInput
  }

  /**
   * Language findUniqueOrThrow
   */
  export type LanguageFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    /**
     * Filter, which Language to fetch.
     */
    where: LanguageWhereUniqueInput
  }

  /**
   * Language findFirst
   */
  export type LanguageFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    /**
     * Filter, which Language to fetch.
     */
    where?: LanguageWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Languages to fetch.
     */
    orderBy?: LanguageOrderByWithRelationInput | LanguageOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Languages.
     */
    cursor?: LanguageWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Languages from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Languages.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Languages.
     */
    distinct?: LanguageScalarFieldEnum | LanguageScalarFieldEnum[]
  }

  /**
   * Language findFirstOrThrow
   */
  export type LanguageFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    /**
     * Filter, which Language to fetch.
     */
    where?: LanguageWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Languages to fetch.
     */
    orderBy?: LanguageOrderByWithRelationInput | LanguageOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Languages.
     */
    cursor?: LanguageWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Languages from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Languages.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Languages.
     */
    distinct?: LanguageScalarFieldEnum | LanguageScalarFieldEnum[]
  }

  /**
   * Language findMany
   */
  export type LanguageFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    /**
     * Filter, which Languages to fetch.
     */
    where?: LanguageWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Languages to fetch.
     */
    orderBy?: LanguageOrderByWithRelationInput | LanguageOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Languages.
     */
    cursor?: LanguageWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Languages from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Languages.
     */
    skip?: number
    distinct?: LanguageScalarFieldEnum | LanguageScalarFieldEnum[]
  }

  /**
   * Language create
   */
  export type LanguageCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    /**
     * The data needed to create a Language.
     */
    data: XOR<LanguageCreateInput, LanguageUncheckedCreateInput>
  }

  /**
   * Language createMany
   */
  export type LanguageCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Languages.
     */
    data: LanguageCreateManyInput | LanguageCreateManyInput[]
  }

  /**
   * Language update
   */
  export type LanguageUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    /**
     * The data needed to update a Language.
     */
    data: XOR<LanguageUpdateInput, LanguageUncheckedUpdateInput>
    /**
     * Choose, which Language to update.
     */
    where: LanguageWhereUniqueInput
  }

  /**
   * Language updateMany
   */
  export type LanguageUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Languages.
     */
    data: XOR<LanguageUpdateManyMutationInput, LanguageUncheckedUpdateManyInput>
    /**
     * Filter which Languages to update
     */
    where?: LanguageWhereInput
  }

  /**
   * Language upsert
   */
  export type LanguageUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    /**
     * The filter to search for the Language to update in case it exists.
     */
    where: LanguageWhereUniqueInput
    /**
     * In case the Language found by the `where` argument doesn't exist, create a new Language with this data.
     */
    create: XOR<LanguageCreateInput, LanguageUncheckedCreateInput>
    /**
     * In case the Language was found with the provided `where` argument, update it with this data.
     */
    update: XOR<LanguageUpdateInput, LanguageUncheckedUpdateInput>
  }

  /**
   * Language delete
   */
  export type LanguageDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    /**
     * Filter which Language to delete.
     */
    where: LanguageWhereUniqueInput
  }

  /**
   * Language deleteMany
   */
  export type LanguageDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Languages to delete
     */
    where?: LanguageWhereInput
  }

  /**
   * Language.translations
   */
  export type Language$translationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    where?: LanguageContentWhereInput
    orderBy?: LanguageContentOrderByWithRelationInput | LanguageContentOrderByWithRelationInput[]
    cursor?: LanguageContentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: LanguageContentScalarFieldEnum | LanguageContentScalarFieldEnum[]
  }

  /**
   * Language.created
   */
  export type Language$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Language.updated
   */
  export type Language$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Language.deleted
   */
  export type Language$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Language without action
   */
  export type LanguageDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
  }


  /**
   * Model LanguageContent
   */

  export type AggregateLanguageContent = {
    _count: LanguageContentCountAggregateOutputType | null
    _avg: LanguageContentAvgAggregateOutputType | null
    _sum: LanguageContentSumAggregateOutputType | null
    _min: LanguageContentMinAggregateOutputType | null
    _max: LanguageContentMaxAggregateOutputType | null
  }

  export type LanguageContentAvgAggregateOutputType = {
    id: number | null
    language_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type LanguageContentSumAggregateOutputType = {
    id: number | null
    language_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type LanguageContentMinAggregateOutputType = {
    id: number | null
    language_id: number | null
    key_content: string | null
    values: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type LanguageContentMaxAggregateOutputType = {
    id: number | null
    language_id: number | null
    key_content: string | null
    values: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type LanguageContentCountAggregateOutputType = {
    id: number
    language_id: number
    key_content: number
    values: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type LanguageContentAvgAggregateInputType = {
    id?: true
    language_id?: true
    status_id?: true
    company_id?: true
  }

  export type LanguageContentSumAggregateInputType = {
    id?: true
    language_id?: true
    status_id?: true
    company_id?: true
  }

  export type LanguageContentMinAggregateInputType = {
    id?: true
    language_id?: true
    key_content?: true
    values?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type LanguageContentMaxAggregateInputType = {
    id?: true
    language_id?: true
    key_content?: true
    values?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type LanguageContentCountAggregateInputType = {
    id?: true
    language_id?: true
    key_content?: true
    values?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type LanguageContentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which LanguageContent to aggregate.
     */
    where?: LanguageContentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of LanguageContents to fetch.
     */
    orderBy?: LanguageContentOrderByWithRelationInput | LanguageContentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: LanguageContentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` LanguageContents from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` LanguageContents.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned LanguageContents
    **/
    _count?: true | LanguageContentCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: LanguageContentAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: LanguageContentSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: LanguageContentMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: LanguageContentMaxAggregateInputType
  }

  export type GetLanguageContentAggregateType<T extends LanguageContentAggregateArgs> = {
        [P in keyof T & keyof AggregateLanguageContent]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateLanguageContent[P]>
      : GetScalarType<T[P], AggregateLanguageContent[P]>
  }




  export type LanguageContentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: LanguageContentWhereInput
    orderBy?: LanguageContentOrderByWithAggregationInput | LanguageContentOrderByWithAggregationInput[]
    by: LanguageContentScalarFieldEnum[] | LanguageContentScalarFieldEnum
    having?: LanguageContentScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: LanguageContentCountAggregateInputType | true
    _avg?: LanguageContentAvgAggregateInputType
    _sum?: LanguageContentSumAggregateInputType
    _min?: LanguageContentMinAggregateInputType
    _max?: LanguageContentMaxAggregateInputType
  }

  export type LanguageContentGroupByOutputType = {
    id: number
    language_id: number
    key_content: string
    values: string
    status_id: number
    company_id: number
    created_at: Date
    _count: LanguageContentCountAggregateOutputType | null
    _avg: LanguageContentAvgAggregateOutputType | null
    _sum: LanguageContentSumAggregateOutputType | null
    _min: LanguageContentMinAggregateOutputType | null
    _max: LanguageContentMaxAggregateOutputType | null
  }

  type GetLanguageContentGroupByPayload<T extends LanguageContentGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<LanguageContentGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof LanguageContentGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], LanguageContentGroupByOutputType[P]>
            : GetScalarType<T[P], LanguageContentGroupByOutputType[P]>
        }
      >
    >


  export type LanguageContentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    language_id?: boolean
    key_content?: boolean
    values?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    language?: boolean | LanguageContent$languageArgs<ExtArgs>
  }, ExtArgs["result"]["languageContent"]>


  export type LanguageContentSelectScalar = {
    id?: boolean
    language_id?: boolean
    key_content?: boolean
    values?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type LanguageContentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    language?: boolean | LanguageContent$languageArgs<ExtArgs>
  }

  export type $LanguageContentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "LanguageContent"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      language: Prisma.$LanguagePayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      language_id: number
      key_content: string
      values: string
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["languageContent"]>
    composites: {}
  }

  type LanguageContentGetPayload<S extends boolean | null | undefined | LanguageContentDefaultArgs> = $Result.GetResult<Prisma.$LanguageContentPayload, S>

  type LanguageContentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<LanguageContentFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: LanguageContentCountAggregateInputType | true
    }

  export interface LanguageContentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LanguageContent'], meta: { name: 'LanguageContent' } }
    /**
     * Find zero or one LanguageContent that matches the filter.
     * @param {LanguageContentFindUniqueArgs} args - Arguments to find a LanguageContent
     * @example
     * // Get one LanguageContent
     * const languageContent = await prisma.languageContent.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends LanguageContentFindUniqueArgs>(args: SelectSubset<T, LanguageContentFindUniqueArgs<ExtArgs>>): Prisma__LanguageContentClient<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one LanguageContent that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {LanguageContentFindUniqueOrThrowArgs} args - Arguments to find a LanguageContent
     * @example
     * // Get one LanguageContent
     * const languageContent = await prisma.languageContent.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends LanguageContentFindUniqueOrThrowArgs>(args: SelectSubset<T, LanguageContentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LanguageContentClient<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first LanguageContent 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 {LanguageContentFindFirstArgs} args - Arguments to find a LanguageContent
     * @example
     * // Get one LanguageContent
     * const languageContent = await prisma.languageContent.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends LanguageContentFindFirstArgs>(args?: SelectSubset<T, LanguageContentFindFirstArgs<ExtArgs>>): Prisma__LanguageContentClient<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first LanguageContent 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 {LanguageContentFindFirstOrThrowArgs} args - Arguments to find a LanguageContent
     * @example
     * // Get one LanguageContent
     * const languageContent = await prisma.languageContent.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends LanguageContentFindFirstOrThrowArgs>(args?: SelectSubset<T, LanguageContentFindFirstOrThrowArgs<ExtArgs>>): Prisma__LanguageContentClient<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more LanguageContents 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 {LanguageContentFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all LanguageContents
     * const languageContents = await prisma.languageContent.findMany()
     * 
     * // Get first 10 LanguageContents
     * const languageContents = await prisma.languageContent.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const languageContentWithIdOnly = await prisma.languageContent.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends LanguageContentFindManyArgs>(args?: SelectSubset<T, LanguageContentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a LanguageContent.
     * @param {LanguageContentCreateArgs} args - Arguments to create a LanguageContent.
     * @example
     * // Create one LanguageContent
     * const LanguageContent = await prisma.languageContent.create({
     *   data: {
     *     // ... data to create a LanguageContent
     *   }
     * })
     * 
     */
    create<T extends LanguageContentCreateArgs>(args: SelectSubset<T, LanguageContentCreateArgs<ExtArgs>>): Prisma__LanguageContentClient<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many LanguageContents.
     * @param {LanguageContentCreateManyArgs} args - Arguments to create many LanguageContents.
     * @example
     * // Create many LanguageContents
     * const languageContent = await prisma.languageContent.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends LanguageContentCreateManyArgs>(args?: SelectSubset<T, LanguageContentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a LanguageContent.
     * @param {LanguageContentDeleteArgs} args - Arguments to delete one LanguageContent.
     * @example
     * // Delete one LanguageContent
     * const LanguageContent = await prisma.languageContent.delete({
     *   where: {
     *     // ... filter to delete one LanguageContent
     *   }
     * })
     * 
     */
    delete<T extends LanguageContentDeleteArgs>(args: SelectSubset<T, LanguageContentDeleteArgs<ExtArgs>>): Prisma__LanguageContentClient<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one LanguageContent.
     * @param {LanguageContentUpdateArgs} args - Arguments to update one LanguageContent.
     * @example
     * // Update one LanguageContent
     * const languageContent = await prisma.languageContent.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends LanguageContentUpdateArgs>(args: SelectSubset<T, LanguageContentUpdateArgs<ExtArgs>>): Prisma__LanguageContentClient<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more LanguageContents.
     * @param {LanguageContentDeleteManyArgs} args - Arguments to filter LanguageContents to delete.
     * @example
     * // Delete a few LanguageContents
     * const { count } = await prisma.languageContent.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends LanguageContentDeleteManyArgs>(args?: SelectSubset<T, LanguageContentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more LanguageContents.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {LanguageContentUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many LanguageContents
     * const languageContent = await prisma.languageContent.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends LanguageContentUpdateManyArgs>(args: SelectSubset<T, LanguageContentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one LanguageContent.
     * @param {LanguageContentUpsertArgs} args - Arguments to update or create a LanguageContent.
     * @example
     * // Update or create a LanguageContent
     * const languageContent = await prisma.languageContent.upsert({
     *   create: {
     *     // ... data to create a LanguageContent
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the LanguageContent we want to update
     *   }
     * })
     */
    upsert<T extends LanguageContentUpsertArgs>(args: SelectSubset<T, LanguageContentUpsertArgs<ExtArgs>>): Prisma__LanguageContentClient<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of LanguageContents.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {LanguageContentCountArgs} args - Arguments to filter LanguageContents to count.
     * @example
     * // Count the number of LanguageContents
     * const count = await prisma.languageContent.count({
     *   where: {
     *     // ... the filter for the LanguageContents we want to count
     *   }
     * })
    **/
    count<T extends LanguageContentCountArgs>(
      args?: Subset<T, LanguageContentCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], LanguageContentCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a LanguageContent.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {LanguageContentAggregateArgs} 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<T extends LanguageContentAggregateArgs>(args: Subset<T, LanguageContentAggregateArgs>): Prisma.PrismaPromise<GetLanguageContentAggregateType<T>>

    /**
     * Group by LanguageContent.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {LanguageContentGroupByArgs} 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 LanguageContentGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: LanguageContentGroupByArgs['orderBy'] }
        : { orderBy?: LanguageContentGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, LanguageContentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLanguageContentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the LanguageContent model
   */
  readonly fields: LanguageContentFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for LanguageContent.
   * 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__LanguageContentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    language<T extends LanguageContent$languageArgs<ExtArgs> = {}>(args?: Subset<T, LanguageContent$languageArgs<ExtArgs>>): Prisma__LanguageClient<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the LanguageContent model
   */ 
  interface LanguageContentFieldRefs {
    readonly id: FieldRef<"LanguageContent", 'Int'>
    readonly language_id: FieldRef<"LanguageContent", 'Int'>
    readonly key_content: FieldRef<"LanguageContent", 'String'>
    readonly values: FieldRef<"LanguageContent", 'String'>
    readonly status_id: FieldRef<"LanguageContent", 'Int'>
    readonly company_id: FieldRef<"LanguageContent", 'Int'>
    readonly created_at: FieldRef<"LanguageContent", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * LanguageContent findUnique
   */
  export type LanguageContentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    /**
     * Filter, which LanguageContent to fetch.
     */
    where: LanguageContentWhereUniqueInput
  }

  /**
   * LanguageContent findUniqueOrThrow
   */
  export type LanguageContentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    /**
     * Filter, which LanguageContent to fetch.
     */
    where: LanguageContentWhereUniqueInput
  }

  /**
   * LanguageContent findFirst
   */
  export type LanguageContentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    /**
     * Filter, which LanguageContent to fetch.
     */
    where?: LanguageContentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of LanguageContents to fetch.
     */
    orderBy?: LanguageContentOrderByWithRelationInput | LanguageContentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for LanguageContents.
     */
    cursor?: LanguageContentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` LanguageContents from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` LanguageContents.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of LanguageContents.
     */
    distinct?: LanguageContentScalarFieldEnum | LanguageContentScalarFieldEnum[]
  }

  /**
   * LanguageContent findFirstOrThrow
   */
  export type LanguageContentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    /**
     * Filter, which LanguageContent to fetch.
     */
    where?: LanguageContentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of LanguageContents to fetch.
     */
    orderBy?: LanguageContentOrderByWithRelationInput | LanguageContentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for LanguageContents.
     */
    cursor?: LanguageContentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` LanguageContents from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` LanguageContents.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of LanguageContents.
     */
    distinct?: LanguageContentScalarFieldEnum | LanguageContentScalarFieldEnum[]
  }

  /**
   * LanguageContent findMany
   */
  export type LanguageContentFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    /**
     * Filter, which LanguageContents to fetch.
     */
    where?: LanguageContentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of LanguageContents to fetch.
     */
    orderBy?: LanguageContentOrderByWithRelationInput | LanguageContentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing LanguageContents.
     */
    cursor?: LanguageContentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` LanguageContents from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` LanguageContents.
     */
    skip?: number
    distinct?: LanguageContentScalarFieldEnum | LanguageContentScalarFieldEnum[]
  }

  /**
   * LanguageContent create
   */
  export type LanguageContentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    /**
     * The data needed to create a LanguageContent.
     */
    data: XOR<LanguageContentCreateInput, LanguageContentUncheckedCreateInput>
  }

  /**
   * LanguageContent createMany
   */
  export type LanguageContentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many LanguageContents.
     */
    data: LanguageContentCreateManyInput | LanguageContentCreateManyInput[]
  }

  /**
   * LanguageContent update
   */
  export type LanguageContentUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    /**
     * The data needed to update a LanguageContent.
     */
    data: XOR<LanguageContentUpdateInput, LanguageContentUncheckedUpdateInput>
    /**
     * Choose, which LanguageContent to update.
     */
    where: LanguageContentWhereUniqueInput
  }

  /**
   * LanguageContent updateMany
   */
  export type LanguageContentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update LanguageContents.
     */
    data: XOR<LanguageContentUpdateManyMutationInput, LanguageContentUncheckedUpdateManyInput>
    /**
     * Filter which LanguageContents to update
     */
    where?: LanguageContentWhereInput
  }

  /**
   * LanguageContent upsert
   */
  export type LanguageContentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    /**
     * The filter to search for the LanguageContent to update in case it exists.
     */
    where: LanguageContentWhereUniqueInput
    /**
     * In case the LanguageContent found by the `where` argument doesn't exist, create a new LanguageContent with this data.
     */
    create: XOR<LanguageContentCreateInput, LanguageContentUncheckedCreateInput>
    /**
     * In case the LanguageContent was found with the provided `where` argument, update it with this data.
     */
    update: XOR<LanguageContentUpdateInput, LanguageContentUncheckedUpdateInput>
  }

  /**
   * LanguageContent delete
   */
  export type LanguageContentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    /**
     * Filter which LanguageContent to delete.
     */
    where: LanguageContentWhereUniqueInput
  }

  /**
   * LanguageContent deleteMany
   */
  export type LanguageContentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which LanguageContents to delete
     */
    where?: LanguageContentWhereInput
  }

  /**
   * LanguageContent.language
   */
  export type LanguageContent$languageArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    where?: LanguageWhereInput
  }

  /**
   * LanguageContent without action
   */
  export type LanguageContentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
  }


  /**
   * Model Menus
   */

  export type AggregateMenus = {
    _count: MenusCountAggregateOutputType | null
    _avg: MenusAvgAggregateOutputType | null
    _sum: MenusSumAggregateOutputType | null
    _min: MenusMinAggregateOutputType | null
    _max: MenusMaxAggregateOutputType | null
  }

  export type MenusAvgAggregateOutputType = {
    id: number | null
    menu_type: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type MenusSumAggregateOutputType = {
    id: number | null
    menu_type: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type MenusMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    description: string | null
    menu_type: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type MenusMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    description: string | null
    menu_type: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type MenusCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    slug: number
    description: number
    menu_type: number
    status_id: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type MenusAvgAggregateInputType = {
    id?: true
    menu_type?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type MenusSumAggregateInputType = {
    id?: true
    menu_type?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type MenusMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    menu_type?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type MenusMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    menu_type?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type MenusCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    menu_type?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type MenusAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Menus to aggregate.
     */
    where?: MenusWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Menus to fetch.
     */
    orderBy?: MenusOrderByWithRelationInput | MenusOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: MenusWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Menus from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Menus.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Menus
    **/
    _count?: true | MenusCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: MenusAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: MenusSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: MenusMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: MenusMaxAggregateInputType
  }

  export type GetMenusAggregateType<T extends MenusAggregateArgs> = {
        [P in keyof T & keyof AggregateMenus]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateMenus[P]>
      : GetScalarType<T[P], AggregateMenus[P]>
  }




  export type MenusGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenusWhereInput
    orderBy?: MenusOrderByWithAggregationInput | MenusOrderByWithAggregationInput[]
    by: MenusScalarFieldEnum[] | MenusScalarFieldEnum
    having?: MenusScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: MenusCountAggregateInputType | true
    _avg?: MenusAvgAggregateInputType
    _sum?: MenusSumAggregateInputType
    _min?: MenusMinAggregateInputType
    _max?: MenusMaxAggregateInputType
  }

  export type MenusGroupByOutputType = {
    id: number
    uuid: string
    name: string
    slug: string | null
    description: string | null
    menu_type: number
    status_id: number
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: MenusCountAggregateOutputType | null
    _avg: MenusAvgAggregateOutputType | null
    _sum: MenusSumAggregateOutputType | null
    _min: MenusMinAggregateOutputType | null
    _max: MenusMaxAggregateOutputType | null
  }

  type GetMenusGroupByPayload<T extends MenusGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<MenusGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof MenusGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], MenusGroupByOutputType[P]>
            : GetScalarType<T[P], MenusGroupByOutputType[P]>
        }
      >
    >


  export type MenusSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    menu_type?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    menuitems?: boolean | Menus$menuitemsArgs<ExtArgs>
    created?: boolean | Menus$createdArgs<ExtArgs>
    updated?: boolean | Menus$updatedArgs<ExtArgs>
    deleted?: boolean | Menus$deletedArgs<ExtArgs>
    _count?: boolean | MenusCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["menus"]>


  export type MenusSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    menu_type?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type MenusInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    menuitems?: boolean | Menus$menuitemsArgs<ExtArgs>
    created?: boolean | Menus$createdArgs<ExtArgs>
    updated?: boolean | Menus$updatedArgs<ExtArgs>
    deleted?: boolean | Menus$deletedArgs<ExtArgs>
    _count?: boolean | MenusCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $MenusPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Menus"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      menuitems: Prisma.$MenuItemsPayload<ExtArgs>[]
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      slug: string | null
      description: string | null
      menu_type: number
      status_id: number
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["menus"]>
    composites: {}
  }

  type MenusGetPayload<S extends boolean | null | undefined | MenusDefaultArgs> = $Result.GetResult<Prisma.$MenusPayload, S>

  type MenusCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<MenusFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: MenusCountAggregateInputType | true
    }

  export interface MenusDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Menus'], meta: { name: 'Menus' } }
    /**
     * Find zero or one Menus that matches the filter.
     * @param {MenusFindUniqueArgs} args - Arguments to find a Menus
     * @example
     * // Get one Menus
     * const menus = await prisma.menus.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends MenusFindUniqueArgs>(args: SelectSubset<T, MenusFindUniqueArgs<ExtArgs>>): Prisma__MenusClient<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Menus that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {MenusFindUniqueOrThrowArgs} args - Arguments to find a Menus
     * @example
     * // Get one Menus
     * const menus = await prisma.menus.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends MenusFindUniqueOrThrowArgs>(args: SelectSubset<T, MenusFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MenusClient<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Menus 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 {MenusFindFirstArgs} args - Arguments to find a Menus
     * @example
     * // Get one Menus
     * const menus = await prisma.menus.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends MenusFindFirstArgs>(args?: SelectSubset<T, MenusFindFirstArgs<ExtArgs>>): Prisma__MenusClient<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Menus 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 {MenusFindFirstOrThrowArgs} args - Arguments to find a Menus
     * @example
     * // Get one Menus
     * const menus = await prisma.menus.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends MenusFindFirstOrThrowArgs>(args?: SelectSubset<T, MenusFindFirstOrThrowArgs<ExtArgs>>): Prisma__MenusClient<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Menus 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 {MenusFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Menus
     * const menus = await prisma.menus.findMany()
     * 
     * // Get first 10 Menus
     * const menus = await prisma.menus.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const menusWithIdOnly = await prisma.menus.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends MenusFindManyArgs>(args?: SelectSubset<T, MenusFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Menus.
     * @param {MenusCreateArgs} args - Arguments to create a Menus.
     * @example
     * // Create one Menus
     * const Menus = await prisma.menus.create({
     *   data: {
     *     // ... data to create a Menus
     *   }
     * })
     * 
     */
    create<T extends MenusCreateArgs>(args: SelectSubset<T, MenusCreateArgs<ExtArgs>>): Prisma__MenusClient<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Menus.
     * @param {MenusCreateManyArgs} args - Arguments to create many Menus.
     * @example
     * // Create many Menus
     * const menus = await prisma.menus.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends MenusCreateManyArgs>(args?: SelectSubset<T, MenusCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Menus.
     * @param {MenusDeleteArgs} args - Arguments to delete one Menus.
     * @example
     * // Delete one Menus
     * const Menus = await prisma.menus.delete({
     *   where: {
     *     // ... filter to delete one Menus
     *   }
     * })
     * 
     */
    delete<T extends MenusDeleteArgs>(args: SelectSubset<T, MenusDeleteArgs<ExtArgs>>): Prisma__MenusClient<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Menus.
     * @param {MenusUpdateArgs} args - Arguments to update one Menus.
     * @example
     * // Update one Menus
     * const menus = await prisma.menus.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends MenusUpdateArgs>(args: SelectSubset<T, MenusUpdateArgs<ExtArgs>>): Prisma__MenusClient<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Menus.
     * @param {MenusDeleteManyArgs} args - Arguments to filter Menus to delete.
     * @example
     * // Delete a few Menus
     * const { count } = await prisma.menus.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends MenusDeleteManyArgs>(args?: SelectSubset<T, MenusDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Menus.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MenusUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Menus
     * const menus = await prisma.menus.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends MenusUpdateManyArgs>(args: SelectSubset<T, MenusUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Menus.
     * @param {MenusUpsertArgs} args - Arguments to update or create a Menus.
     * @example
     * // Update or create a Menus
     * const menus = await prisma.menus.upsert({
     *   create: {
     *     // ... data to create a Menus
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Menus we want to update
     *   }
     * })
     */
    upsert<T extends MenusUpsertArgs>(args: SelectSubset<T, MenusUpsertArgs<ExtArgs>>): Prisma__MenusClient<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Menus.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MenusCountArgs} args - Arguments to filter Menus to count.
     * @example
     * // Count the number of Menus
     * const count = await prisma.menus.count({
     *   where: {
     *     // ... the filter for the Menus we want to count
     *   }
     * })
    **/
    count<T extends MenusCountArgs>(
      args?: Subset<T, MenusCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], MenusCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Menus.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MenusAggregateArgs} 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<T extends MenusAggregateArgs>(args: Subset<T, MenusAggregateArgs>): Prisma.PrismaPromise<GetMenusAggregateType<T>>

    /**
     * Group by Menus.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MenusGroupByArgs} 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 MenusGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: MenusGroupByArgs['orderBy'] }
        : { orderBy?: MenusGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, MenusGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMenusGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Menus model
   */
  readonly fields: MenusFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Menus.
   * 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__MenusClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    menuitems<T extends Menus$menuitemsArgs<ExtArgs> = {}>(args?: Subset<T, Menus$menuitemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findMany"> | Null>
    created<T extends Menus$createdArgs<ExtArgs> = {}>(args?: Subset<T, Menus$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends Menus$updatedArgs<ExtArgs> = {}>(args?: Subset<T, Menus$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends Menus$deletedArgs<ExtArgs> = {}>(args?: Subset<T, Menus$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Menus model
   */ 
  interface MenusFieldRefs {
    readonly id: FieldRef<"Menus", 'Int'>
    readonly uuid: FieldRef<"Menus", 'String'>
    readonly name: FieldRef<"Menus", 'String'>
    readonly slug: FieldRef<"Menus", 'String'>
    readonly description: FieldRef<"Menus", 'String'>
    readonly menu_type: FieldRef<"Menus", 'Int'>
    readonly status_id: FieldRef<"Menus", 'Int'>
    readonly company_id: FieldRef<"Menus", 'Int'>
    readonly created_by: FieldRef<"Menus", 'Int'>
    readonly updated_by: FieldRef<"Menus", 'Int'>
    readonly deleted_by: FieldRef<"Menus", 'Int'>
    readonly created_at: FieldRef<"Menus", 'DateTime'>
    readonly updated_at: FieldRef<"Menus", 'DateTime'>
    readonly deleted_at: FieldRef<"Menus", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * Menus findUnique
   */
  export type MenusFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    /**
     * Filter, which Menus to fetch.
     */
    where: MenusWhereUniqueInput
  }

  /**
   * Menus findUniqueOrThrow
   */
  export type MenusFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    /**
     * Filter, which Menus to fetch.
     */
    where: MenusWhereUniqueInput
  }

  /**
   * Menus findFirst
   */
  export type MenusFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    /**
     * Filter, which Menus to fetch.
     */
    where?: MenusWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Menus to fetch.
     */
    orderBy?: MenusOrderByWithRelationInput | MenusOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Menus.
     */
    cursor?: MenusWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Menus from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Menus.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Menus.
     */
    distinct?: MenusScalarFieldEnum | MenusScalarFieldEnum[]
  }

  /**
   * Menus findFirstOrThrow
   */
  export type MenusFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    /**
     * Filter, which Menus to fetch.
     */
    where?: MenusWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Menus to fetch.
     */
    orderBy?: MenusOrderByWithRelationInput | MenusOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Menus.
     */
    cursor?: MenusWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Menus from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Menus.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Menus.
     */
    distinct?: MenusScalarFieldEnum | MenusScalarFieldEnum[]
  }

  /**
   * Menus findMany
   */
  export type MenusFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    /**
     * Filter, which Menus to fetch.
     */
    where?: MenusWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Menus to fetch.
     */
    orderBy?: MenusOrderByWithRelationInput | MenusOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Menus.
     */
    cursor?: MenusWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Menus from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Menus.
     */
    skip?: number
    distinct?: MenusScalarFieldEnum | MenusScalarFieldEnum[]
  }

  /**
   * Menus create
   */
  export type MenusCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    /**
     * The data needed to create a Menus.
     */
    data: XOR<MenusCreateInput, MenusUncheckedCreateInput>
  }

  /**
   * Menus createMany
   */
  export type MenusCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Menus.
     */
    data: MenusCreateManyInput | MenusCreateManyInput[]
  }

  /**
   * Menus update
   */
  export type MenusUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    /**
     * The data needed to update a Menus.
     */
    data: XOR<MenusUpdateInput, MenusUncheckedUpdateInput>
    /**
     * Choose, which Menus to update.
     */
    where: MenusWhereUniqueInput
  }

  /**
   * Menus updateMany
   */
  export type MenusUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Menus.
     */
    data: XOR<MenusUpdateManyMutationInput, MenusUncheckedUpdateManyInput>
    /**
     * Filter which Menus to update
     */
    where?: MenusWhereInput
  }

  /**
   * Menus upsert
   */
  export type MenusUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    /**
     * The filter to search for the Menus to update in case it exists.
     */
    where: MenusWhereUniqueInput
    /**
     * In case the Menus found by the `where` argument doesn't exist, create a new Menus with this data.
     */
    create: XOR<MenusCreateInput, MenusUncheckedCreateInput>
    /**
     * In case the Menus was found with the provided `where` argument, update it with this data.
     */
    update: XOR<MenusUpdateInput, MenusUncheckedUpdateInput>
  }

  /**
   * Menus delete
   */
  export type MenusDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    /**
     * Filter which Menus to delete.
     */
    where: MenusWhereUniqueInput
  }

  /**
   * Menus deleteMany
   */
  export type MenusDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Menus to delete
     */
    where?: MenusWhereInput
  }

  /**
   * Menus.menuitems
   */
  export type Menus$menuitemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    where?: MenuItemsWhereInput
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    cursor?: MenuItemsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * Menus.created
   */
  export type Menus$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Menus.updated
   */
  export type Menus$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Menus.deleted
   */
  export type Menus$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Menus without action
   */
  export type MenusDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
  }


  /**
   * Model MenuItems
   */

  export type AggregateMenuItems = {
    _count: MenuItemsCountAggregateOutputType | null
    _avg: MenuItemsAvgAggregateOutputType | null
    _sum: MenuItemsSumAggregateOutputType | null
    _min: MenuItemsMinAggregateOutputType | null
    _max: MenuItemsMaxAggregateOutputType | null
  }

  export type MenuItemsAvgAggregateOutputType = {
    id: number | null
    menu_id: number | null
    parent_id: number | null
    permission_id: number | null
    entity_id: number | null
    link_type: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type MenuItemsSumAggregateOutputType = {
    id: number | null
    menu_id: number | null
    parent_id: number | null
    permission_id: number | null
    entity_id: number | null
    link_type: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type MenuItemsMinAggregateOutputType = {
    id: number | null
    menu_id: number | null
    name: string | null
    target: string | null
    parent_id: number | null
    permission_id: number | null
    entity_id: number | null
    link_type: number | null
    order_no: Decimal | null
    menu_img: string | null
    short_cut_keys: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type MenuItemsMaxAggregateOutputType = {
    id: number | null
    menu_id: number | null
    name: string | null
    target: string | null
    parent_id: number | null
    permission_id: number | null
    entity_id: number | null
    link_type: number | null
    order_no: Decimal | null
    menu_img: string | null
    short_cut_keys: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type MenuItemsCountAggregateOutputType = {
    id: number
    menu_id: number
    name: number
    target: number
    parent_id: number
    permission_id: number
    entity_id: number
    link_type: number
    order_no: number
    menu_img: number
    short_cut_keys: number
    status_id: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type MenuItemsAvgAggregateInputType = {
    id?: true
    menu_id?: true
    parent_id?: true
    permission_id?: true
    entity_id?: true
    link_type?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type MenuItemsSumAggregateInputType = {
    id?: true
    menu_id?: true
    parent_id?: true
    permission_id?: true
    entity_id?: true
    link_type?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type MenuItemsMinAggregateInputType = {
    id?: true
    menu_id?: true
    name?: true
    target?: true
    parent_id?: true
    permission_id?: true
    entity_id?: true
    link_type?: true
    order_no?: true
    menu_img?: true
    short_cut_keys?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type MenuItemsMaxAggregateInputType = {
    id?: true
    menu_id?: true
    name?: true
    target?: true
    parent_id?: true
    permission_id?: true
    entity_id?: true
    link_type?: true
    order_no?: true
    menu_img?: true
    short_cut_keys?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type MenuItemsCountAggregateInputType = {
    id?: true
    menu_id?: true
    name?: true
    target?: true
    parent_id?: true
    permission_id?: true
    entity_id?: true
    link_type?: true
    order_no?: true
    menu_img?: true
    short_cut_keys?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type MenuItemsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which MenuItems to aggregate.
     */
    where?: MenuItemsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MenuItems to fetch.
     */
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: MenuItemsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MenuItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MenuItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned MenuItems
    **/
    _count?: true | MenuItemsCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: MenuItemsAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: MenuItemsSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: MenuItemsMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: MenuItemsMaxAggregateInputType
  }

  export type GetMenuItemsAggregateType<T extends MenuItemsAggregateArgs> = {
        [P in keyof T & keyof AggregateMenuItems]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateMenuItems[P]>
      : GetScalarType<T[P], AggregateMenuItems[P]>
  }




  export type MenuItemsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MenuItemsWhereInput
    orderBy?: MenuItemsOrderByWithAggregationInput | MenuItemsOrderByWithAggregationInput[]
    by: MenuItemsScalarFieldEnum[] | MenuItemsScalarFieldEnum
    having?: MenuItemsScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: MenuItemsCountAggregateInputType | true
    _avg?: MenuItemsAvgAggregateInputType
    _sum?: MenuItemsSumAggregateInputType
    _min?: MenuItemsMinAggregateInputType
    _max?: MenuItemsMaxAggregateInputType
  }

  export type MenuItemsGroupByOutputType = {
    id: number
    menu_id: number
    name: string
    target: string | null
    parent_id: number | null
    permission_id: number | null
    entity_id: number | null
    link_type: number | null
    order_no: Decimal
    menu_img: string | null
    short_cut_keys: string | null
    status_id: number
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: MenuItemsCountAggregateOutputType | null
    _avg: MenuItemsAvgAggregateOutputType | null
    _sum: MenuItemsSumAggregateOutputType | null
    _min: MenuItemsMinAggregateOutputType | null
    _max: MenuItemsMaxAggregateOutputType | null
  }

  type GetMenuItemsGroupByPayload<T extends MenuItemsGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<MenuItemsGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof MenuItemsGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], MenuItemsGroupByOutputType[P]>
            : GetScalarType<T[P], MenuItemsGroupByOutputType[P]>
        }
      >
    >


  export type MenuItemsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    menu_id?: boolean
    name?: boolean
    target?: boolean
    parent_id?: boolean
    permission_id?: boolean
    entity_id?: boolean
    link_type?: boolean
    order_no?: boolean
    menu_img?: boolean
    short_cut_keys?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    menus?: boolean | MenuItems$menusArgs<ExtArgs>
    entity?: boolean | MenuItems$entityArgs<ExtArgs>
    permission?: boolean | MenuItems$permissionArgs<ExtArgs>
    parent?: boolean | MenuItems$parentArgs<ExtArgs>
    children?: boolean | MenuItems$childrenArgs<ExtArgs>
    created?: boolean | MenuItems$createdArgs<ExtArgs>
    updated?: boolean | MenuItems$updatedArgs<ExtArgs>
    deleted?: boolean | MenuItems$deletedArgs<ExtArgs>
    _count?: boolean | MenuItemsCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["menuItems"]>


  export type MenuItemsSelectScalar = {
    id?: boolean
    menu_id?: boolean
    name?: boolean
    target?: boolean
    parent_id?: boolean
    permission_id?: boolean
    entity_id?: boolean
    link_type?: boolean
    order_no?: boolean
    menu_img?: boolean
    short_cut_keys?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type MenuItemsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    menus?: boolean | MenuItems$menusArgs<ExtArgs>
    entity?: boolean | MenuItems$entityArgs<ExtArgs>
    permission?: boolean | MenuItems$permissionArgs<ExtArgs>
    parent?: boolean | MenuItems$parentArgs<ExtArgs>
    children?: boolean | MenuItems$childrenArgs<ExtArgs>
    created?: boolean | MenuItems$createdArgs<ExtArgs>
    updated?: boolean | MenuItems$updatedArgs<ExtArgs>
    deleted?: boolean | MenuItems$deletedArgs<ExtArgs>
    _count?: boolean | MenuItemsCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $MenuItemsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "MenuItems"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      menus: Prisma.$MenusPayload<ExtArgs> | null
      entity: Prisma.$MasterEntityPayload<ExtArgs> | null
      permission: Prisma.$PermissionsPayload<ExtArgs> | null
      parent: Prisma.$MenuItemsPayload<ExtArgs> | null
      children: Prisma.$MenuItemsPayload<ExtArgs>[]
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      menu_id: number
      name: string
      target: string | null
      parent_id: number | null
      permission_id: number | null
      entity_id: number | null
      link_type: number | null
      order_no: Prisma.Decimal
      menu_img: string | null
      short_cut_keys: string | null
      status_id: number
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["menuItems"]>
    composites: {}
  }

  type MenuItemsGetPayload<S extends boolean | null | undefined | MenuItemsDefaultArgs> = $Result.GetResult<Prisma.$MenuItemsPayload, S>

  type MenuItemsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<MenuItemsFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: MenuItemsCountAggregateInputType | true
    }

  export interface MenuItemsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MenuItems'], meta: { name: 'MenuItems' } }
    /**
     * Find zero or one MenuItems that matches the filter.
     * @param {MenuItemsFindUniqueArgs} args - Arguments to find a MenuItems
     * @example
     * // Get one MenuItems
     * const menuItems = await prisma.menuItems.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends MenuItemsFindUniqueArgs>(args: SelectSubset<T, MenuItemsFindUniqueArgs<ExtArgs>>): Prisma__MenuItemsClient<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one MenuItems that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {MenuItemsFindUniqueOrThrowArgs} args - Arguments to find a MenuItems
     * @example
     * // Get one MenuItems
     * const menuItems = await prisma.menuItems.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends MenuItemsFindUniqueOrThrowArgs>(args: SelectSubset<T, MenuItemsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MenuItemsClient<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first MenuItems 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 {MenuItemsFindFirstArgs} args - Arguments to find a MenuItems
     * @example
     * // Get one MenuItems
     * const menuItems = await prisma.menuItems.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends MenuItemsFindFirstArgs>(args?: SelectSubset<T, MenuItemsFindFirstArgs<ExtArgs>>): Prisma__MenuItemsClient<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first MenuItems 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 {MenuItemsFindFirstOrThrowArgs} args - Arguments to find a MenuItems
     * @example
     * // Get one MenuItems
     * const menuItems = await prisma.menuItems.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends MenuItemsFindFirstOrThrowArgs>(args?: SelectSubset<T, MenuItemsFindFirstOrThrowArgs<ExtArgs>>): Prisma__MenuItemsClient<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more MenuItems 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 {MenuItemsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all MenuItems
     * const menuItems = await prisma.menuItems.findMany()
     * 
     * // Get first 10 MenuItems
     * const menuItems = await prisma.menuItems.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const menuItemsWithIdOnly = await prisma.menuItems.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends MenuItemsFindManyArgs>(args?: SelectSubset<T, MenuItemsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a MenuItems.
     * @param {MenuItemsCreateArgs} args - Arguments to create a MenuItems.
     * @example
     * // Create one MenuItems
     * const MenuItems = await prisma.menuItems.create({
     *   data: {
     *     // ... data to create a MenuItems
     *   }
     * })
     * 
     */
    create<T extends MenuItemsCreateArgs>(args: SelectSubset<T, MenuItemsCreateArgs<ExtArgs>>): Prisma__MenuItemsClient<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many MenuItems.
     * @param {MenuItemsCreateManyArgs} args - Arguments to create many MenuItems.
     * @example
     * // Create many MenuItems
     * const menuItems = await prisma.menuItems.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends MenuItemsCreateManyArgs>(args?: SelectSubset<T, MenuItemsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a MenuItems.
     * @param {MenuItemsDeleteArgs} args - Arguments to delete one MenuItems.
     * @example
     * // Delete one MenuItems
     * const MenuItems = await prisma.menuItems.delete({
     *   where: {
     *     // ... filter to delete one MenuItems
     *   }
     * })
     * 
     */
    delete<T extends MenuItemsDeleteArgs>(args: SelectSubset<T, MenuItemsDeleteArgs<ExtArgs>>): Prisma__MenuItemsClient<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one MenuItems.
     * @param {MenuItemsUpdateArgs} args - Arguments to update one MenuItems.
     * @example
     * // Update one MenuItems
     * const menuItems = await prisma.menuItems.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends MenuItemsUpdateArgs>(args: SelectSubset<T, MenuItemsUpdateArgs<ExtArgs>>): Prisma__MenuItemsClient<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more MenuItems.
     * @param {MenuItemsDeleteManyArgs} args - Arguments to filter MenuItems to delete.
     * @example
     * // Delete a few MenuItems
     * const { count } = await prisma.menuItems.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends MenuItemsDeleteManyArgs>(args?: SelectSubset<T, MenuItemsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more MenuItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MenuItemsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many MenuItems
     * const menuItems = await prisma.menuItems.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends MenuItemsUpdateManyArgs>(args: SelectSubset<T, MenuItemsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one MenuItems.
     * @param {MenuItemsUpsertArgs} args - Arguments to update or create a MenuItems.
     * @example
     * // Update or create a MenuItems
     * const menuItems = await prisma.menuItems.upsert({
     *   create: {
     *     // ... data to create a MenuItems
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the MenuItems we want to update
     *   }
     * })
     */
    upsert<T extends MenuItemsUpsertArgs>(args: SelectSubset<T, MenuItemsUpsertArgs<ExtArgs>>): Prisma__MenuItemsClient<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of MenuItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MenuItemsCountArgs} args - Arguments to filter MenuItems to count.
     * @example
     * // Count the number of MenuItems
     * const count = await prisma.menuItems.count({
     *   where: {
     *     // ... the filter for the MenuItems we want to count
     *   }
     * })
    **/
    count<T extends MenuItemsCountArgs>(
      args?: Subset<T, MenuItemsCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], MenuItemsCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a MenuItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MenuItemsAggregateArgs} 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<T extends MenuItemsAggregateArgs>(args: Subset<T, MenuItemsAggregateArgs>): Prisma.PrismaPromise<GetMenuItemsAggregateType<T>>

    /**
     * Group by MenuItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MenuItemsGroupByArgs} 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 MenuItemsGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: MenuItemsGroupByArgs['orderBy'] }
        : { orderBy?: MenuItemsGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, MenuItemsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMenuItemsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the MenuItems model
   */
  readonly fields: MenuItemsFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for MenuItems.
   * 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__MenuItemsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    menus<T extends MenuItems$menusArgs<ExtArgs> = {}>(args?: Subset<T, MenuItems$menusArgs<ExtArgs>>): Prisma__MenusClient<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    entity<T extends MenuItems$entityArgs<ExtArgs> = {}>(args?: Subset<T, MenuItems$entityArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    permission<T extends MenuItems$permissionArgs<ExtArgs> = {}>(args?: Subset<T, MenuItems$permissionArgs<ExtArgs>>): Prisma__PermissionsClient<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    parent<T extends MenuItems$parentArgs<ExtArgs> = {}>(args?: Subset<T, MenuItems$parentArgs<ExtArgs>>): Prisma__MenuItemsClient<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    children<T extends MenuItems$childrenArgs<ExtArgs> = {}>(args?: Subset<T, MenuItems$childrenArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findMany"> | Null>
    created<T extends MenuItems$createdArgs<ExtArgs> = {}>(args?: Subset<T, MenuItems$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends MenuItems$updatedArgs<ExtArgs> = {}>(args?: Subset<T, MenuItems$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends MenuItems$deletedArgs<ExtArgs> = {}>(args?: Subset<T, MenuItems$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the MenuItems model
   */ 
  interface MenuItemsFieldRefs {
    readonly id: FieldRef<"MenuItems", 'Int'>
    readonly menu_id: FieldRef<"MenuItems", 'Int'>
    readonly name: FieldRef<"MenuItems", 'String'>
    readonly target: FieldRef<"MenuItems", 'String'>
    readonly parent_id: FieldRef<"MenuItems", 'Int'>
    readonly permission_id: FieldRef<"MenuItems", 'Int'>
    readonly entity_id: FieldRef<"MenuItems", 'Int'>
    readonly link_type: FieldRef<"MenuItems", 'Int'>
    readonly order_no: FieldRef<"MenuItems", 'Decimal'>
    readonly menu_img: FieldRef<"MenuItems", 'String'>
    readonly short_cut_keys: FieldRef<"MenuItems", 'String'>
    readonly status_id: FieldRef<"MenuItems", 'Int'>
    readonly company_id: FieldRef<"MenuItems", 'Int'>
    readonly created_by: FieldRef<"MenuItems", 'Int'>
    readonly updated_by: FieldRef<"MenuItems", 'Int'>
    readonly deleted_by: FieldRef<"MenuItems", 'Int'>
    readonly created_at: FieldRef<"MenuItems", 'DateTime'>
    readonly updated_at: FieldRef<"MenuItems", 'DateTime'>
    readonly deleted_at: FieldRef<"MenuItems", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * MenuItems findUnique
   */
  export type MenuItemsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    /**
     * Filter, which MenuItems to fetch.
     */
    where: MenuItemsWhereUniqueInput
  }

  /**
   * MenuItems findUniqueOrThrow
   */
  export type MenuItemsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    /**
     * Filter, which MenuItems to fetch.
     */
    where: MenuItemsWhereUniqueInput
  }

  /**
   * MenuItems findFirst
   */
  export type MenuItemsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    /**
     * Filter, which MenuItems to fetch.
     */
    where?: MenuItemsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MenuItems to fetch.
     */
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for MenuItems.
     */
    cursor?: MenuItemsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MenuItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MenuItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of MenuItems.
     */
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * MenuItems findFirstOrThrow
   */
  export type MenuItemsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    /**
     * Filter, which MenuItems to fetch.
     */
    where?: MenuItemsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MenuItems to fetch.
     */
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for MenuItems.
     */
    cursor?: MenuItemsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MenuItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MenuItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of MenuItems.
     */
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * MenuItems findMany
   */
  export type MenuItemsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    /**
     * Filter, which MenuItems to fetch.
     */
    where?: MenuItemsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MenuItems to fetch.
     */
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing MenuItems.
     */
    cursor?: MenuItemsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MenuItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MenuItems.
     */
    skip?: number
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * MenuItems create
   */
  export type MenuItemsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    /**
     * The data needed to create a MenuItems.
     */
    data: XOR<MenuItemsCreateInput, MenuItemsUncheckedCreateInput>
  }

  /**
   * MenuItems createMany
   */
  export type MenuItemsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many MenuItems.
     */
    data: MenuItemsCreateManyInput | MenuItemsCreateManyInput[]
  }

  /**
   * MenuItems update
   */
  export type MenuItemsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    /**
     * The data needed to update a MenuItems.
     */
    data: XOR<MenuItemsUpdateInput, MenuItemsUncheckedUpdateInput>
    /**
     * Choose, which MenuItems to update.
     */
    where: MenuItemsWhereUniqueInput
  }

  /**
   * MenuItems updateMany
   */
  export type MenuItemsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update MenuItems.
     */
    data: XOR<MenuItemsUpdateManyMutationInput, MenuItemsUncheckedUpdateManyInput>
    /**
     * Filter which MenuItems to update
     */
    where?: MenuItemsWhereInput
  }

  /**
   * MenuItems upsert
   */
  export type MenuItemsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    /**
     * The filter to search for the MenuItems to update in case it exists.
     */
    where: MenuItemsWhereUniqueInput
    /**
     * In case the MenuItems found by the `where` argument doesn't exist, create a new MenuItems with this data.
     */
    create: XOR<MenuItemsCreateInput, MenuItemsUncheckedCreateInput>
    /**
     * In case the MenuItems was found with the provided `where` argument, update it with this data.
     */
    update: XOR<MenuItemsUpdateInput, MenuItemsUncheckedUpdateInput>
  }

  /**
   * MenuItems delete
   */
  export type MenuItemsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    /**
     * Filter which MenuItems to delete.
     */
    where: MenuItemsWhereUniqueInput
  }

  /**
   * MenuItems deleteMany
   */
  export type MenuItemsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which MenuItems to delete
     */
    where?: MenuItemsWhereInput
  }

  /**
   * MenuItems.menus
   */
  export type MenuItems$menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    where?: MenusWhereInput
  }

  /**
   * MenuItems.entity
   */
  export type MenuItems$entityArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    where?: MasterEntityWhereInput
  }

  /**
   * MenuItems.permission
   */
  export type MenuItems$permissionArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    where?: PermissionsWhereInput
  }

  /**
   * MenuItems.parent
   */
  export type MenuItems$parentArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    where?: MenuItemsWhereInput
  }

  /**
   * MenuItems.children
   */
  export type MenuItems$childrenArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    where?: MenuItemsWhereInput
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    cursor?: MenuItemsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * MenuItems.created
   */
  export type MenuItems$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * MenuItems.updated
   */
  export type MenuItems$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * MenuItems.deleted
   */
  export type MenuItems$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * MenuItems without action
   */
  export type MenuItemsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
  }


  /**
   * Model ActionType
   */

  export type AggregateActionType = {
    _count: ActionTypeCountAggregateOutputType | null
    _avg: ActionTypeAvgAggregateOutputType | null
    _sum: ActionTypeSumAggregateOutputType | null
    _min: ActionTypeMinAggregateOutputType | null
    _max: ActionTypeMaxAggregateOutputType | null
  }

  export type ActionTypeAvgAggregateOutputType = {
    id: number | null
    company_id: number | null
  }

  export type ActionTypeSumAggregateOutputType = {
    id: number | null
    company_id: number | null
  }

  export type ActionTypeMinAggregateOutputType = {
    id: number | null
    name: string | null
    description: string | null
    company_id: number | null
  }

  export type ActionTypeMaxAggregateOutputType = {
    id: number | null
    name: string | null
    description: string | null
    company_id: number | null
  }

  export type ActionTypeCountAggregateOutputType = {
    id: number
    name: number
    description: number
    company_id: number
    _all: number
  }


  export type ActionTypeAvgAggregateInputType = {
    id?: true
    company_id?: true
  }

  export type ActionTypeSumAggregateInputType = {
    id?: true
    company_id?: true
  }

  export type ActionTypeMinAggregateInputType = {
    id?: true
    name?: true
    description?: true
    company_id?: true
  }

  export type ActionTypeMaxAggregateInputType = {
    id?: true
    name?: true
    description?: true
    company_id?: true
  }

  export type ActionTypeCountAggregateInputType = {
    id?: true
    name?: true
    description?: true
    company_id?: true
    _all?: true
  }

  export type ActionTypeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ActionType to aggregate.
     */
    where?: ActionTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ActionTypes to fetch.
     */
    orderBy?: ActionTypeOrderByWithRelationInput | ActionTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ActionTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ActionTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ActionTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned ActionTypes
    **/
    _count?: true | ActionTypeCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ActionTypeAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ActionTypeSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ActionTypeMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ActionTypeMaxAggregateInputType
  }

  export type GetActionTypeAggregateType<T extends ActionTypeAggregateArgs> = {
        [P in keyof T & keyof AggregateActionType]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateActionType[P]>
      : GetScalarType<T[P], AggregateActionType[P]>
  }




  export type ActionTypeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ActionTypeWhereInput
    orderBy?: ActionTypeOrderByWithAggregationInput | ActionTypeOrderByWithAggregationInput[]
    by: ActionTypeScalarFieldEnum[] | ActionTypeScalarFieldEnum
    having?: ActionTypeScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ActionTypeCountAggregateInputType | true
    _avg?: ActionTypeAvgAggregateInputType
    _sum?: ActionTypeSumAggregateInputType
    _min?: ActionTypeMinAggregateInputType
    _max?: ActionTypeMaxAggregateInputType
  }

  export type ActionTypeGroupByOutputType = {
    id: number
    name: string
    description: string
    company_id: number
    _count: ActionTypeCountAggregateOutputType | null
    _avg: ActionTypeAvgAggregateOutputType | null
    _sum: ActionTypeSumAggregateOutputType | null
    _min: ActionTypeMinAggregateOutputType | null
    _max: ActionTypeMaxAggregateOutputType | null
  }

  type GetActionTypeGroupByPayload<T extends ActionTypeGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ActionTypeGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ActionTypeGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ActionTypeGroupByOutputType[P]>
            : GetScalarType<T[P], ActionTypeGroupByOutputType[P]>
        }
      >
    >


  export type ActionTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    name?: boolean
    description?: boolean
    company_id?: boolean
  }, ExtArgs["result"]["actionType"]>


  export type ActionTypeSelectScalar = {
    id?: boolean
    name?: boolean
    description?: boolean
    company_id?: boolean
  }


  export type $ActionTypePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "ActionType"
    objects: {}
    scalars: $Extensions.GetPayloadResult<{
      id: number
      name: string
      description: string
      company_id: number
    }, ExtArgs["result"]["actionType"]>
    composites: {}
  }

  type ActionTypeGetPayload<S extends boolean | null | undefined | ActionTypeDefaultArgs> = $Result.GetResult<Prisma.$ActionTypePayload, S>

  type ActionTypeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ActionTypeFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ActionTypeCountAggregateInputType | true
    }

  export interface ActionTypeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ActionType'], meta: { name: 'ActionType' } }
    /**
     * Find zero or one ActionType that matches the filter.
     * @param {ActionTypeFindUniqueArgs} args - Arguments to find a ActionType
     * @example
     * // Get one ActionType
     * const actionType = await prisma.actionType.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ActionTypeFindUniqueArgs>(args: SelectSubset<T, ActionTypeFindUniqueArgs<ExtArgs>>): Prisma__ActionTypeClient<$Result.GetResult<Prisma.$ActionTypePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one ActionType that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ActionTypeFindUniqueOrThrowArgs} args - Arguments to find a ActionType
     * @example
     * // Get one ActionType
     * const actionType = await prisma.actionType.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ActionTypeFindUniqueOrThrowArgs>(args: SelectSubset<T, ActionTypeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ActionTypeClient<$Result.GetResult<Prisma.$ActionTypePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first ActionType 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 {ActionTypeFindFirstArgs} args - Arguments to find a ActionType
     * @example
     * // Get one ActionType
     * const actionType = await prisma.actionType.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ActionTypeFindFirstArgs>(args?: SelectSubset<T, ActionTypeFindFirstArgs<ExtArgs>>): Prisma__ActionTypeClient<$Result.GetResult<Prisma.$ActionTypePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first ActionType 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 {ActionTypeFindFirstOrThrowArgs} args - Arguments to find a ActionType
     * @example
     * // Get one ActionType
     * const actionType = await prisma.actionType.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ActionTypeFindFirstOrThrowArgs>(args?: SelectSubset<T, ActionTypeFindFirstOrThrowArgs<ExtArgs>>): Prisma__ActionTypeClient<$Result.GetResult<Prisma.$ActionTypePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more ActionTypes 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 {ActionTypeFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all ActionTypes
     * const actionTypes = await prisma.actionType.findMany()
     * 
     * // Get first 10 ActionTypes
     * const actionTypes = await prisma.actionType.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const actionTypeWithIdOnly = await prisma.actionType.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ActionTypeFindManyArgs>(args?: SelectSubset<T, ActionTypeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ActionTypePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a ActionType.
     * @param {ActionTypeCreateArgs} args - Arguments to create a ActionType.
     * @example
     * // Create one ActionType
     * const ActionType = await prisma.actionType.create({
     *   data: {
     *     // ... data to create a ActionType
     *   }
     * })
     * 
     */
    create<T extends ActionTypeCreateArgs>(args: SelectSubset<T, ActionTypeCreateArgs<ExtArgs>>): Prisma__ActionTypeClient<$Result.GetResult<Prisma.$ActionTypePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many ActionTypes.
     * @param {ActionTypeCreateManyArgs} args - Arguments to create many ActionTypes.
     * @example
     * // Create many ActionTypes
     * const actionType = await prisma.actionType.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ActionTypeCreateManyArgs>(args?: SelectSubset<T, ActionTypeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a ActionType.
     * @param {ActionTypeDeleteArgs} args - Arguments to delete one ActionType.
     * @example
     * // Delete one ActionType
     * const ActionType = await prisma.actionType.delete({
     *   where: {
     *     // ... filter to delete one ActionType
     *   }
     * })
     * 
     */
    delete<T extends ActionTypeDeleteArgs>(args: SelectSubset<T, ActionTypeDeleteArgs<ExtArgs>>): Prisma__ActionTypeClient<$Result.GetResult<Prisma.$ActionTypePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one ActionType.
     * @param {ActionTypeUpdateArgs} args - Arguments to update one ActionType.
     * @example
     * // Update one ActionType
     * const actionType = await prisma.actionType.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ActionTypeUpdateArgs>(args: SelectSubset<T, ActionTypeUpdateArgs<ExtArgs>>): Prisma__ActionTypeClient<$Result.GetResult<Prisma.$ActionTypePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more ActionTypes.
     * @param {ActionTypeDeleteManyArgs} args - Arguments to filter ActionTypes to delete.
     * @example
     * // Delete a few ActionTypes
     * const { count } = await prisma.actionType.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ActionTypeDeleteManyArgs>(args?: SelectSubset<T, ActionTypeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more ActionTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ActionTypeUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many ActionTypes
     * const actionType = await prisma.actionType.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ActionTypeUpdateManyArgs>(args: SelectSubset<T, ActionTypeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one ActionType.
     * @param {ActionTypeUpsertArgs} args - Arguments to update or create a ActionType.
     * @example
     * // Update or create a ActionType
     * const actionType = await prisma.actionType.upsert({
     *   create: {
     *     // ... data to create a ActionType
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the ActionType we want to update
     *   }
     * })
     */
    upsert<T extends ActionTypeUpsertArgs>(args: SelectSubset<T, ActionTypeUpsertArgs<ExtArgs>>): Prisma__ActionTypeClient<$Result.GetResult<Prisma.$ActionTypePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of ActionTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ActionTypeCountArgs} args - Arguments to filter ActionTypes to count.
     * @example
     * // Count the number of ActionTypes
     * const count = await prisma.actionType.count({
     *   where: {
     *     // ... the filter for the ActionTypes we want to count
     *   }
     * })
    **/
    count<T extends ActionTypeCountArgs>(
      args?: Subset<T, ActionTypeCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ActionTypeCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a ActionType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ActionTypeAggregateArgs} 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<T extends ActionTypeAggregateArgs>(args: Subset<T, ActionTypeAggregateArgs>): Prisma.PrismaPromise<GetActionTypeAggregateType<T>>

    /**
     * Group by ActionType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ActionTypeGroupByArgs} 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 ActionTypeGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ActionTypeGroupByArgs['orderBy'] }
        : { orderBy?: ActionTypeGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ActionTypeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetActionTypeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the ActionType model
   */
  readonly fields: ActionTypeFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for ActionType.
   * 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__ActionTypeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the ActionType model
   */ 
  interface ActionTypeFieldRefs {
    readonly id: FieldRef<"ActionType", 'Int'>
    readonly name: FieldRef<"ActionType", 'String'>
    readonly description: FieldRef<"ActionType", 'String'>
    readonly company_id: FieldRef<"ActionType", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * ActionType findUnique
   */
  export type ActionTypeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
    /**
     * Filter, which ActionType to fetch.
     */
    where: ActionTypeWhereUniqueInput
  }

  /**
   * ActionType findUniqueOrThrow
   */
  export type ActionTypeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
    /**
     * Filter, which ActionType to fetch.
     */
    where: ActionTypeWhereUniqueInput
  }

  /**
   * ActionType findFirst
   */
  export type ActionTypeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
    /**
     * Filter, which ActionType to fetch.
     */
    where?: ActionTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ActionTypes to fetch.
     */
    orderBy?: ActionTypeOrderByWithRelationInput | ActionTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ActionTypes.
     */
    cursor?: ActionTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ActionTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ActionTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ActionTypes.
     */
    distinct?: ActionTypeScalarFieldEnum | ActionTypeScalarFieldEnum[]
  }

  /**
   * ActionType findFirstOrThrow
   */
  export type ActionTypeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
    /**
     * Filter, which ActionType to fetch.
     */
    where?: ActionTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ActionTypes to fetch.
     */
    orderBy?: ActionTypeOrderByWithRelationInput | ActionTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ActionTypes.
     */
    cursor?: ActionTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ActionTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ActionTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ActionTypes.
     */
    distinct?: ActionTypeScalarFieldEnum | ActionTypeScalarFieldEnum[]
  }

  /**
   * ActionType findMany
   */
  export type ActionTypeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
    /**
     * Filter, which ActionTypes to fetch.
     */
    where?: ActionTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ActionTypes to fetch.
     */
    orderBy?: ActionTypeOrderByWithRelationInput | ActionTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing ActionTypes.
     */
    cursor?: ActionTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ActionTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ActionTypes.
     */
    skip?: number
    distinct?: ActionTypeScalarFieldEnum | ActionTypeScalarFieldEnum[]
  }

  /**
   * ActionType create
   */
  export type ActionTypeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
    /**
     * The data needed to create a ActionType.
     */
    data: XOR<ActionTypeCreateInput, ActionTypeUncheckedCreateInput>
  }

  /**
   * ActionType createMany
   */
  export type ActionTypeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many ActionTypes.
     */
    data: ActionTypeCreateManyInput | ActionTypeCreateManyInput[]
  }

  /**
   * ActionType update
   */
  export type ActionTypeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
    /**
     * The data needed to update a ActionType.
     */
    data: XOR<ActionTypeUpdateInput, ActionTypeUncheckedUpdateInput>
    /**
     * Choose, which ActionType to update.
     */
    where: ActionTypeWhereUniqueInput
  }

  /**
   * ActionType updateMany
   */
  export type ActionTypeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update ActionTypes.
     */
    data: XOR<ActionTypeUpdateManyMutationInput, ActionTypeUncheckedUpdateManyInput>
    /**
     * Filter which ActionTypes to update
     */
    where?: ActionTypeWhereInput
  }

  /**
   * ActionType upsert
   */
  export type ActionTypeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
    /**
     * The filter to search for the ActionType to update in case it exists.
     */
    where: ActionTypeWhereUniqueInput
    /**
     * In case the ActionType found by the `where` argument doesn't exist, create a new ActionType with this data.
     */
    create: XOR<ActionTypeCreateInput, ActionTypeUncheckedCreateInput>
    /**
     * In case the ActionType was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ActionTypeUpdateInput, ActionTypeUncheckedUpdateInput>
  }

  /**
   * ActionType delete
   */
  export type ActionTypeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
    /**
     * Filter which ActionType to delete.
     */
    where: ActionTypeWhereUniqueInput
  }

  /**
   * ActionType deleteMany
   */
  export type ActionTypeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ActionTypes to delete
     */
    where?: ActionTypeWhereInput
  }

  /**
   * ActionType without action
   */
  export type ActionTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ActionType
     */
    select?: ActionTypeSelect<ExtArgs> | null
  }


  /**
   * Model EntityType
   */

  export type AggregateEntityType = {
    _count: EntityTypeCountAggregateOutputType | null
    _avg: EntityTypeAvgAggregateOutputType | null
    _sum: EntityTypeSumAggregateOutputType | null
    _min: EntityTypeMinAggregateOutputType | null
    _max: EntityTypeMaxAggregateOutputType | null
  }

  export type EntityTypeAvgAggregateOutputType = {
    id: number | null
    company_id: number | null
  }

  export type EntityTypeSumAggregateOutputType = {
    id: number | null
    company_id: number | null
  }

  export type EntityTypeMinAggregateOutputType = {
    id: number | null
    name: string | null
    slug: string | null
    description: string | null
    company_id: number | null
  }

  export type EntityTypeMaxAggregateOutputType = {
    id: number | null
    name: string | null
    slug: string | null
    description: string | null
    company_id: number | null
  }

  export type EntityTypeCountAggregateOutputType = {
    id: number
    name: number
    slug: number
    description: number
    company_id: number
    _all: number
  }


  export type EntityTypeAvgAggregateInputType = {
    id?: true
    company_id?: true
  }

  export type EntityTypeSumAggregateInputType = {
    id?: true
    company_id?: true
  }

  export type EntityTypeMinAggregateInputType = {
    id?: true
    name?: true
    slug?: true
    description?: true
    company_id?: true
  }

  export type EntityTypeMaxAggregateInputType = {
    id?: true
    name?: true
    slug?: true
    description?: true
    company_id?: true
  }

  export type EntityTypeCountAggregateInputType = {
    id?: true
    name?: true
    slug?: true
    description?: true
    company_id?: true
    _all?: true
  }

  export type EntityTypeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EntityType to aggregate.
     */
    where?: EntityTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EntityTypes to fetch.
     */
    orderBy?: EntityTypeOrderByWithRelationInput | EntityTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: EntityTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EntityTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EntityTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned EntityTypes
    **/
    _count?: true | EntityTypeCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: EntityTypeAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: EntityTypeSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: EntityTypeMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: EntityTypeMaxAggregateInputType
  }

  export type GetEntityTypeAggregateType<T extends EntityTypeAggregateArgs> = {
        [P in keyof T & keyof AggregateEntityType]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateEntityType[P]>
      : GetScalarType<T[P], AggregateEntityType[P]>
  }




  export type EntityTypeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EntityTypeWhereInput
    orderBy?: EntityTypeOrderByWithAggregationInput | EntityTypeOrderByWithAggregationInput[]
    by: EntityTypeScalarFieldEnum[] | EntityTypeScalarFieldEnum
    having?: EntityTypeScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: EntityTypeCountAggregateInputType | true
    _avg?: EntityTypeAvgAggregateInputType
    _sum?: EntityTypeSumAggregateInputType
    _min?: EntityTypeMinAggregateInputType
    _max?: EntityTypeMaxAggregateInputType
  }

  export type EntityTypeGroupByOutputType = {
    id: number
    name: string
    slug: string
    description: string
    company_id: number
    _count: EntityTypeCountAggregateOutputType | null
    _avg: EntityTypeAvgAggregateOutputType | null
    _sum: EntityTypeSumAggregateOutputType | null
    _min: EntityTypeMinAggregateOutputType | null
    _max: EntityTypeMaxAggregateOutputType | null
  }

  type GetEntityTypeGroupByPayload<T extends EntityTypeGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<EntityTypeGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof EntityTypeGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], EntityTypeGroupByOutputType[P]>
            : GetScalarType<T[P], EntityTypeGroupByOutputType[P]>
        }
      >
    >


  export type EntityTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    company_id?: boolean
  }, ExtArgs["result"]["entityType"]>


  export type EntityTypeSelectScalar = {
    id?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    company_id?: boolean
  }


  export type $EntityTypePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "EntityType"
    objects: {}
    scalars: $Extensions.GetPayloadResult<{
      id: number
      name: string
      slug: string
      description: string
      company_id: number
    }, ExtArgs["result"]["entityType"]>
    composites: {}
  }

  type EntityTypeGetPayload<S extends boolean | null | undefined | EntityTypeDefaultArgs> = $Result.GetResult<Prisma.$EntityTypePayload, S>

  type EntityTypeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<EntityTypeFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: EntityTypeCountAggregateInputType | true
    }

  export interface EntityTypeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EntityType'], meta: { name: 'EntityType' } }
    /**
     * Find zero or one EntityType that matches the filter.
     * @param {EntityTypeFindUniqueArgs} args - Arguments to find a EntityType
     * @example
     * // Get one EntityType
     * const entityType = await prisma.entityType.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends EntityTypeFindUniqueArgs>(args: SelectSubset<T, EntityTypeFindUniqueArgs<ExtArgs>>): Prisma__EntityTypeClient<$Result.GetResult<Prisma.$EntityTypePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one EntityType that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {EntityTypeFindUniqueOrThrowArgs} args - Arguments to find a EntityType
     * @example
     * // Get one EntityType
     * const entityType = await prisma.entityType.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends EntityTypeFindUniqueOrThrowArgs>(args: SelectSubset<T, EntityTypeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EntityTypeClient<$Result.GetResult<Prisma.$EntityTypePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first EntityType 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 {EntityTypeFindFirstArgs} args - Arguments to find a EntityType
     * @example
     * // Get one EntityType
     * const entityType = await prisma.entityType.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends EntityTypeFindFirstArgs>(args?: SelectSubset<T, EntityTypeFindFirstArgs<ExtArgs>>): Prisma__EntityTypeClient<$Result.GetResult<Prisma.$EntityTypePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first EntityType 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 {EntityTypeFindFirstOrThrowArgs} args - Arguments to find a EntityType
     * @example
     * // Get one EntityType
     * const entityType = await prisma.entityType.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends EntityTypeFindFirstOrThrowArgs>(args?: SelectSubset<T, EntityTypeFindFirstOrThrowArgs<ExtArgs>>): Prisma__EntityTypeClient<$Result.GetResult<Prisma.$EntityTypePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more EntityTypes 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 {EntityTypeFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all EntityTypes
     * const entityTypes = await prisma.entityType.findMany()
     * 
     * // Get first 10 EntityTypes
     * const entityTypes = await prisma.entityType.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const entityTypeWithIdOnly = await prisma.entityType.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends EntityTypeFindManyArgs>(args?: SelectSubset<T, EntityTypeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EntityTypePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a EntityType.
     * @param {EntityTypeCreateArgs} args - Arguments to create a EntityType.
     * @example
     * // Create one EntityType
     * const EntityType = await prisma.entityType.create({
     *   data: {
     *     // ... data to create a EntityType
     *   }
     * })
     * 
     */
    create<T extends EntityTypeCreateArgs>(args: SelectSubset<T, EntityTypeCreateArgs<ExtArgs>>): Prisma__EntityTypeClient<$Result.GetResult<Prisma.$EntityTypePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many EntityTypes.
     * @param {EntityTypeCreateManyArgs} args - Arguments to create many EntityTypes.
     * @example
     * // Create many EntityTypes
     * const entityType = await prisma.entityType.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends EntityTypeCreateManyArgs>(args?: SelectSubset<T, EntityTypeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a EntityType.
     * @param {EntityTypeDeleteArgs} args - Arguments to delete one EntityType.
     * @example
     * // Delete one EntityType
     * const EntityType = await prisma.entityType.delete({
     *   where: {
     *     // ... filter to delete one EntityType
     *   }
     * })
     * 
     */
    delete<T extends EntityTypeDeleteArgs>(args: SelectSubset<T, EntityTypeDeleteArgs<ExtArgs>>): Prisma__EntityTypeClient<$Result.GetResult<Prisma.$EntityTypePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one EntityType.
     * @param {EntityTypeUpdateArgs} args - Arguments to update one EntityType.
     * @example
     * // Update one EntityType
     * const entityType = await prisma.entityType.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends EntityTypeUpdateArgs>(args: SelectSubset<T, EntityTypeUpdateArgs<ExtArgs>>): Prisma__EntityTypeClient<$Result.GetResult<Prisma.$EntityTypePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more EntityTypes.
     * @param {EntityTypeDeleteManyArgs} args - Arguments to filter EntityTypes to delete.
     * @example
     * // Delete a few EntityTypes
     * const { count } = await prisma.entityType.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends EntityTypeDeleteManyArgs>(args?: SelectSubset<T, EntityTypeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more EntityTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EntityTypeUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many EntityTypes
     * const entityType = await prisma.entityType.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends EntityTypeUpdateManyArgs>(args: SelectSubset<T, EntityTypeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one EntityType.
     * @param {EntityTypeUpsertArgs} args - Arguments to update or create a EntityType.
     * @example
     * // Update or create a EntityType
     * const entityType = await prisma.entityType.upsert({
     *   create: {
     *     // ... data to create a EntityType
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the EntityType we want to update
     *   }
     * })
     */
    upsert<T extends EntityTypeUpsertArgs>(args: SelectSubset<T, EntityTypeUpsertArgs<ExtArgs>>): Prisma__EntityTypeClient<$Result.GetResult<Prisma.$EntityTypePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of EntityTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EntityTypeCountArgs} args - Arguments to filter EntityTypes to count.
     * @example
     * // Count the number of EntityTypes
     * const count = await prisma.entityType.count({
     *   where: {
     *     // ... the filter for the EntityTypes we want to count
     *   }
     * })
    **/
    count<T extends EntityTypeCountArgs>(
      args?: Subset<T, EntityTypeCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], EntityTypeCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a EntityType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EntityTypeAggregateArgs} 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<T extends EntityTypeAggregateArgs>(args: Subset<T, EntityTypeAggregateArgs>): Prisma.PrismaPromise<GetEntityTypeAggregateType<T>>

    /**
     * Group by EntityType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EntityTypeGroupByArgs} 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 EntityTypeGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: EntityTypeGroupByArgs['orderBy'] }
        : { orderBy?: EntityTypeGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, EntityTypeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEntityTypeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the EntityType model
   */
  readonly fields: EntityTypeFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for EntityType.
   * 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__EntityTypeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the EntityType model
   */ 
  interface EntityTypeFieldRefs {
    readonly id: FieldRef<"EntityType", 'Int'>
    readonly name: FieldRef<"EntityType", 'String'>
    readonly slug: FieldRef<"EntityType", 'String'>
    readonly description: FieldRef<"EntityType", 'String'>
    readonly company_id: FieldRef<"EntityType", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * EntityType findUnique
   */
  export type EntityTypeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
    /**
     * Filter, which EntityType to fetch.
     */
    where: EntityTypeWhereUniqueInput
  }

  /**
   * EntityType findUniqueOrThrow
   */
  export type EntityTypeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
    /**
     * Filter, which EntityType to fetch.
     */
    where: EntityTypeWhereUniqueInput
  }

  /**
   * EntityType findFirst
   */
  export type EntityTypeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
    /**
     * Filter, which EntityType to fetch.
     */
    where?: EntityTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EntityTypes to fetch.
     */
    orderBy?: EntityTypeOrderByWithRelationInput | EntityTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EntityTypes.
     */
    cursor?: EntityTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EntityTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EntityTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EntityTypes.
     */
    distinct?: EntityTypeScalarFieldEnum | EntityTypeScalarFieldEnum[]
  }

  /**
   * EntityType findFirstOrThrow
   */
  export type EntityTypeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
    /**
     * Filter, which EntityType to fetch.
     */
    where?: EntityTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EntityTypes to fetch.
     */
    orderBy?: EntityTypeOrderByWithRelationInput | EntityTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EntityTypes.
     */
    cursor?: EntityTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EntityTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EntityTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EntityTypes.
     */
    distinct?: EntityTypeScalarFieldEnum | EntityTypeScalarFieldEnum[]
  }

  /**
   * EntityType findMany
   */
  export type EntityTypeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
    /**
     * Filter, which EntityTypes to fetch.
     */
    where?: EntityTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EntityTypes to fetch.
     */
    orderBy?: EntityTypeOrderByWithRelationInput | EntityTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing EntityTypes.
     */
    cursor?: EntityTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EntityTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EntityTypes.
     */
    skip?: number
    distinct?: EntityTypeScalarFieldEnum | EntityTypeScalarFieldEnum[]
  }

  /**
   * EntityType create
   */
  export type EntityTypeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
    /**
     * The data needed to create a EntityType.
     */
    data: XOR<EntityTypeCreateInput, EntityTypeUncheckedCreateInput>
  }

  /**
   * EntityType createMany
   */
  export type EntityTypeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many EntityTypes.
     */
    data: EntityTypeCreateManyInput | EntityTypeCreateManyInput[]
  }

  /**
   * EntityType update
   */
  export type EntityTypeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
    /**
     * The data needed to update a EntityType.
     */
    data: XOR<EntityTypeUpdateInput, EntityTypeUncheckedUpdateInput>
    /**
     * Choose, which EntityType to update.
     */
    where: EntityTypeWhereUniqueInput
  }

  /**
   * EntityType updateMany
   */
  export type EntityTypeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update EntityTypes.
     */
    data: XOR<EntityTypeUpdateManyMutationInput, EntityTypeUncheckedUpdateManyInput>
    /**
     * Filter which EntityTypes to update
     */
    where?: EntityTypeWhereInput
  }

  /**
   * EntityType upsert
   */
  export type EntityTypeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
    /**
     * The filter to search for the EntityType to update in case it exists.
     */
    where: EntityTypeWhereUniqueInput
    /**
     * In case the EntityType found by the `where` argument doesn't exist, create a new EntityType with this data.
     */
    create: XOR<EntityTypeCreateInput, EntityTypeUncheckedCreateInput>
    /**
     * In case the EntityType was found with the provided `where` argument, update it with this data.
     */
    update: XOR<EntityTypeUpdateInput, EntityTypeUncheckedUpdateInput>
  }

  /**
   * EntityType delete
   */
  export type EntityTypeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
    /**
     * Filter which EntityType to delete.
     */
    where: EntityTypeWhereUniqueInput
  }

  /**
   * EntityType deleteMany
   */
  export type EntityTypeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EntityTypes to delete
     */
    where?: EntityTypeWhereInput
  }

  /**
   * EntityType without action
   */
  export type EntityTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EntityType
     */
    select?: EntityTypeSelect<ExtArgs> | null
  }


  /**
   * Model WizardGroup
   */

  export type AggregateWizardGroup = {
    _count: WizardGroupCountAggregateOutputType | null
    _avg: WizardGroupAvgAggregateOutputType | null
    _sum: WizardGroupSumAggregateOutputType | null
    _min: WizardGroupMinAggregateOutputType | null
    _max: WizardGroupMaxAggregateOutputType | null
  }

  export type WizardGroupAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type WizardGroupSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type WizardGroupMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    description: string | null
    status_id: number | null
    created_at: Date | null
    company_id: number | null
  }

  export type WizardGroupMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    description: string | null
    status_id: number | null
    created_at: Date | null
    company_id: number | null
  }

  export type WizardGroupCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    slug: number
    description: number
    status_id: number
    created_at: number
    company_id: number
    _all: number
  }


  export type WizardGroupAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type WizardGroupSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type WizardGroupMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    status_id?: true
    created_at?: true
    company_id?: true
  }

  export type WizardGroupMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    status_id?: true
    created_at?: true
    company_id?: true
  }

  export type WizardGroupCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    status_id?: true
    created_at?: true
    company_id?: true
    _all?: true
  }

  export type WizardGroupAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which WizardGroup to aggregate.
     */
    where?: WizardGroupWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of WizardGroups to fetch.
     */
    orderBy?: WizardGroupOrderByWithRelationInput | WizardGroupOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: WizardGroupWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` WizardGroups from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` WizardGroups.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned WizardGroups
    **/
    _count?: true | WizardGroupCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: WizardGroupAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: WizardGroupSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: WizardGroupMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: WizardGroupMaxAggregateInputType
  }

  export type GetWizardGroupAggregateType<T extends WizardGroupAggregateArgs> = {
        [P in keyof T & keyof AggregateWizardGroup]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateWizardGroup[P]>
      : GetScalarType<T[P], AggregateWizardGroup[P]>
  }




  export type WizardGroupGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: WizardGroupWhereInput
    orderBy?: WizardGroupOrderByWithAggregationInput | WizardGroupOrderByWithAggregationInput[]
    by: WizardGroupScalarFieldEnum[] | WizardGroupScalarFieldEnum
    having?: WizardGroupScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: WizardGroupCountAggregateInputType | true
    _avg?: WizardGroupAvgAggregateInputType
    _sum?: WizardGroupSumAggregateInputType
    _min?: WizardGroupMinAggregateInputType
    _max?: WizardGroupMaxAggregateInputType
  }

  export type WizardGroupGroupByOutputType = {
    id: number
    uuid: string
    name: string
    slug: string | null
    description: string | null
    status_id: number
    created_at: Date
    company_id: number
    _count: WizardGroupCountAggregateOutputType | null
    _avg: WizardGroupAvgAggregateOutputType | null
    _sum: WizardGroupSumAggregateOutputType | null
    _min: WizardGroupMinAggregateOutputType | null
    _max: WizardGroupMaxAggregateOutputType | null
  }

  type GetWizardGroupGroupByPayload<T extends WizardGroupGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<WizardGroupGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof WizardGroupGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], WizardGroupGroupByOutputType[P]>
            : GetScalarType<T[P], WizardGroupGroupByOutputType[P]>
        }
      >
    >


  export type WizardGroupSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    status_id?: boolean
    created_at?: boolean
    company_id?: boolean
  }, ExtArgs["result"]["wizardGroup"]>


  export type WizardGroupSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    status_id?: boolean
    created_at?: boolean
    company_id?: boolean
  }


  export type $WizardGroupPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "WizardGroup"
    objects: {}
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      slug: string | null
      description: string | null
      status_id: number
      created_at: Date
      company_id: number
    }, ExtArgs["result"]["wizardGroup"]>
    composites: {}
  }

  type WizardGroupGetPayload<S extends boolean | null | undefined | WizardGroupDefaultArgs> = $Result.GetResult<Prisma.$WizardGroupPayload, S>

  type WizardGroupCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<WizardGroupFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: WizardGroupCountAggregateInputType | true
    }

  export interface WizardGroupDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WizardGroup'], meta: { name: 'WizardGroup' } }
    /**
     * Find zero or one WizardGroup that matches the filter.
     * @param {WizardGroupFindUniqueArgs} args - Arguments to find a WizardGroup
     * @example
     * // Get one WizardGroup
     * const wizardGroup = await prisma.wizardGroup.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends WizardGroupFindUniqueArgs>(args: SelectSubset<T, WizardGroupFindUniqueArgs<ExtArgs>>): Prisma__WizardGroupClient<$Result.GetResult<Prisma.$WizardGroupPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one WizardGroup that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {WizardGroupFindUniqueOrThrowArgs} args - Arguments to find a WizardGroup
     * @example
     * // Get one WizardGroup
     * const wizardGroup = await prisma.wizardGroup.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends WizardGroupFindUniqueOrThrowArgs>(args: SelectSubset<T, WizardGroupFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WizardGroupClient<$Result.GetResult<Prisma.$WizardGroupPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first WizardGroup 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 {WizardGroupFindFirstArgs} args - Arguments to find a WizardGroup
     * @example
     * // Get one WizardGroup
     * const wizardGroup = await prisma.wizardGroup.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends WizardGroupFindFirstArgs>(args?: SelectSubset<T, WizardGroupFindFirstArgs<ExtArgs>>): Prisma__WizardGroupClient<$Result.GetResult<Prisma.$WizardGroupPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first WizardGroup 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 {WizardGroupFindFirstOrThrowArgs} args - Arguments to find a WizardGroup
     * @example
     * // Get one WizardGroup
     * const wizardGroup = await prisma.wizardGroup.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends WizardGroupFindFirstOrThrowArgs>(args?: SelectSubset<T, WizardGroupFindFirstOrThrowArgs<ExtArgs>>): Prisma__WizardGroupClient<$Result.GetResult<Prisma.$WizardGroupPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more WizardGroups 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 {WizardGroupFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all WizardGroups
     * const wizardGroups = await prisma.wizardGroup.findMany()
     * 
     * // Get first 10 WizardGroups
     * const wizardGroups = await prisma.wizardGroup.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const wizardGroupWithIdOnly = await prisma.wizardGroup.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends WizardGroupFindManyArgs>(args?: SelectSubset<T, WizardGroupFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WizardGroupPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a WizardGroup.
     * @param {WizardGroupCreateArgs} args - Arguments to create a WizardGroup.
     * @example
     * // Create one WizardGroup
     * const WizardGroup = await prisma.wizardGroup.create({
     *   data: {
     *     // ... data to create a WizardGroup
     *   }
     * })
     * 
     */
    create<T extends WizardGroupCreateArgs>(args: SelectSubset<T, WizardGroupCreateArgs<ExtArgs>>): Prisma__WizardGroupClient<$Result.GetResult<Prisma.$WizardGroupPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many WizardGroups.
     * @param {WizardGroupCreateManyArgs} args - Arguments to create many WizardGroups.
     * @example
     * // Create many WizardGroups
     * const wizardGroup = await prisma.wizardGroup.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends WizardGroupCreateManyArgs>(args?: SelectSubset<T, WizardGroupCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a WizardGroup.
     * @param {WizardGroupDeleteArgs} args - Arguments to delete one WizardGroup.
     * @example
     * // Delete one WizardGroup
     * const WizardGroup = await prisma.wizardGroup.delete({
     *   where: {
     *     // ... filter to delete one WizardGroup
     *   }
     * })
     * 
     */
    delete<T extends WizardGroupDeleteArgs>(args: SelectSubset<T, WizardGroupDeleteArgs<ExtArgs>>): Prisma__WizardGroupClient<$Result.GetResult<Prisma.$WizardGroupPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one WizardGroup.
     * @param {WizardGroupUpdateArgs} args - Arguments to update one WizardGroup.
     * @example
     * // Update one WizardGroup
     * const wizardGroup = await prisma.wizardGroup.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends WizardGroupUpdateArgs>(args: SelectSubset<T, WizardGroupUpdateArgs<ExtArgs>>): Prisma__WizardGroupClient<$Result.GetResult<Prisma.$WizardGroupPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more WizardGroups.
     * @param {WizardGroupDeleteManyArgs} args - Arguments to filter WizardGroups to delete.
     * @example
     * // Delete a few WizardGroups
     * const { count } = await prisma.wizardGroup.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends WizardGroupDeleteManyArgs>(args?: SelectSubset<T, WizardGroupDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more WizardGroups.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {WizardGroupUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many WizardGroups
     * const wizardGroup = await prisma.wizardGroup.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends WizardGroupUpdateManyArgs>(args: SelectSubset<T, WizardGroupUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one WizardGroup.
     * @param {WizardGroupUpsertArgs} args - Arguments to update or create a WizardGroup.
     * @example
     * // Update or create a WizardGroup
     * const wizardGroup = await prisma.wizardGroup.upsert({
     *   create: {
     *     // ... data to create a WizardGroup
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the WizardGroup we want to update
     *   }
     * })
     */
    upsert<T extends WizardGroupUpsertArgs>(args: SelectSubset<T, WizardGroupUpsertArgs<ExtArgs>>): Prisma__WizardGroupClient<$Result.GetResult<Prisma.$WizardGroupPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of WizardGroups.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {WizardGroupCountArgs} args - Arguments to filter WizardGroups to count.
     * @example
     * // Count the number of WizardGroups
     * const count = await prisma.wizardGroup.count({
     *   where: {
     *     // ... the filter for the WizardGroups we want to count
     *   }
     * })
    **/
    count<T extends WizardGroupCountArgs>(
      args?: Subset<T, WizardGroupCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], WizardGroupCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a WizardGroup.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {WizardGroupAggregateArgs} 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<T extends WizardGroupAggregateArgs>(args: Subset<T, WizardGroupAggregateArgs>): Prisma.PrismaPromise<GetWizardGroupAggregateType<T>>

    /**
     * Group by WizardGroup.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {WizardGroupGroupByArgs} 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 WizardGroupGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: WizardGroupGroupByArgs['orderBy'] }
        : { orderBy?: WizardGroupGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, WizardGroupGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWizardGroupGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the WizardGroup model
   */
  readonly fields: WizardGroupFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for WizardGroup.
   * 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__WizardGroupClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the WizardGroup model
   */ 
  interface WizardGroupFieldRefs {
    readonly id: FieldRef<"WizardGroup", 'Int'>
    readonly uuid: FieldRef<"WizardGroup", 'String'>
    readonly name: FieldRef<"WizardGroup", 'String'>
    readonly slug: FieldRef<"WizardGroup", 'String'>
    readonly description: FieldRef<"WizardGroup", 'String'>
    readonly status_id: FieldRef<"WizardGroup", 'Int'>
    readonly created_at: FieldRef<"WizardGroup", 'DateTime'>
    readonly company_id: FieldRef<"WizardGroup", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * WizardGroup findUnique
   */
  export type WizardGroupFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
    /**
     * Filter, which WizardGroup to fetch.
     */
    where: WizardGroupWhereUniqueInput
  }

  /**
   * WizardGroup findUniqueOrThrow
   */
  export type WizardGroupFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
    /**
     * Filter, which WizardGroup to fetch.
     */
    where: WizardGroupWhereUniqueInput
  }

  /**
   * WizardGroup findFirst
   */
  export type WizardGroupFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
    /**
     * Filter, which WizardGroup to fetch.
     */
    where?: WizardGroupWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of WizardGroups to fetch.
     */
    orderBy?: WizardGroupOrderByWithRelationInput | WizardGroupOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for WizardGroups.
     */
    cursor?: WizardGroupWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` WizardGroups from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` WizardGroups.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of WizardGroups.
     */
    distinct?: WizardGroupScalarFieldEnum | WizardGroupScalarFieldEnum[]
  }

  /**
   * WizardGroup findFirstOrThrow
   */
  export type WizardGroupFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
    /**
     * Filter, which WizardGroup to fetch.
     */
    where?: WizardGroupWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of WizardGroups to fetch.
     */
    orderBy?: WizardGroupOrderByWithRelationInput | WizardGroupOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for WizardGroups.
     */
    cursor?: WizardGroupWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` WizardGroups from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` WizardGroups.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of WizardGroups.
     */
    distinct?: WizardGroupScalarFieldEnum | WizardGroupScalarFieldEnum[]
  }

  /**
   * WizardGroup findMany
   */
  export type WizardGroupFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
    /**
     * Filter, which WizardGroups to fetch.
     */
    where?: WizardGroupWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of WizardGroups to fetch.
     */
    orderBy?: WizardGroupOrderByWithRelationInput | WizardGroupOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing WizardGroups.
     */
    cursor?: WizardGroupWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` WizardGroups from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` WizardGroups.
     */
    skip?: number
    distinct?: WizardGroupScalarFieldEnum | WizardGroupScalarFieldEnum[]
  }

  /**
   * WizardGroup create
   */
  export type WizardGroupCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
    /**
     * The data needed to create a WizardGroup.
     */
    data: XOR<WizardGroupCreateInput, WizardGroupUncheckedCreateInput>
  }

  /**
   * WizardGroup createMany
   */
  export type WizardGroupCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many WizardGroups.
     */
    data: WizardGroupCreateManyInput | WizardGroupCreateManyInput[]
  }

  /**
   * WizardGroup update
   */
  export type WizardGroupUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
    /**
     * The data needed to update a WizardGroup.
     */
    data: XOR<WizardGroupUpdateInput, WizardGroupUncheckedUpdateInput>
    /**
     * Choose, which WizardGroup to update.
     */
    where: WizardGroupWhereUniqueInput
  }

  /**
   * WizardGroup updateMany
   */
  export type WizardGroupUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update WizardGroups.
     */
    data: XOR<WizardGroupUpdateManyMutationInput, WizardGroupUncheckedUpdateManyInput>
    /**
     * Filter which WizardGroups to update
     */
    where?: WizardGroupWhereInput
  }

  /**
   * WizardGroup upsert
   */
  export type WizardGroupUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
    /**
     * The filter to search for the WizardGroup to update in case it exists.
     */
    where: WizardGroupWhereUniqueInput
    /**
     * In case the WizardGroup found by the `where` argument doesn't exist, create a new WizardGroup with this data.
     */
    create: XOR<WizardGroupCreateInput, WizardGroupUncheckedCreateInput>
    /**
     * In case the WizardGroup was found with the provided `where` argument, update it with this data.
     */
    update: XOR<WizardGroupUpdateInput, WizardGroupUncheckedUpdateInput>
  }

  /**
   * WizardGroup delete
   */
  export type WizardGroupDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
    /**
     * Filter which WizardGroup to delete.
     */
    where: WizardGroupWhereUniqueInput
  }

  /**
   * WizardGroup deleteMany
   */
  export type WizardGroupDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which WizardGroups to delete
     */
    where?: WizardGroupWhereInput
  }

  /**
   * WizardGroup without action
   */
  export type WizardGroupDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardGroup
     */
    select?: WizardGroupSelect<ExtArgs> | null
  }


  /**
   * Model WizardType
   */

  export type AggregateWizardType = {
    _count: WizardTypeCountAggregateOutputType | null
    _avg: WizardTypeAvgAggregateOutputType | null
    _sum: WizardTypeSumAggregateOutputType | null
    _min: WizardTypeMinAggregateOutputType | null
    _max: WizardTypeMaxAggregateOutputType | null
  }

  export type WizardTypeAvgAggregateOutputType = {
    id: number | null
    company_id: number | null
  }

  export type WizardTypeSumAggregateOutputType = {
    id: number | null
    company_id: number | null
  }

  export type WizardTypeMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    description: string | null
    company_id: number | null
  }

  export type WizardTypeMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    description: string | null
    company_id: number | null
  }

  export type WizardTypeCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    description: number
    company_id: number
    _all: number
  }


  export type WizardTypeAvgAggregateInputType = {
    id?: true
    company_id?: true
  }

  export type WizardTypeSumAggregateInputType = {
    id?: true
    company_id?: true
  }

  export type WizardTypeMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    description?: true
    company_id?: true
  }

  export type WizardTypeMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    description?: true
    company_id?: true
  }

  export type WizardTypeCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    description?: true
    company_id?: true
    _all?: true
  }

  export type WizardTypeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which WizardType to aggregate.
     */
    where?: WizardTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of WizardTypes to fetch.
     */
    orderBy?: WizardTypeOrderByWithRelationInput | WizardTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: WizardTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` WizardTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` WizardTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned WizardTypes
    **/
    _count?: true | WizardTypeCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: WizardTypeAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: WizardTypeSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: WizardTypeMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: WizardTypeMaxAggregateInputType
  }

  export type GetWizardTypeAggregateType<T extends WizardTypeAggregateArgs> = {
        [P in keyof T & keyof AggregateWizardType]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateWizardType[P]>
      : GetScalarType<T[P], AggregateWizardType[P]>
  }




  export type WizardTypeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: WizardTypeWhereInput
    orderBy?: WizardTypeOrderByWithAggregationInput | WizardTypeOrderByWithAggregationInput[]
    by: WizardTypeScalarFieldEnum[] | WizardTypeScalarFieldEnum
    having?: WizardTypeScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: WizardTypeCountAggregateInputType | true
    _avg?: WizardTypeAvgAggregateInputType
    _sum?: WizardTypeSumAggregateInputType
    _min?: WizardTypeMinAggregateInputType
    _max?: WizardTypeMaxAggregateInputType
  }

  export type WizardTypeGroupByOutputType = {
    id: number
    uuid: string
    name: string
    description: string | null
    company_id: number
    _count: WizardTypeCountAggregateOutputType | null
    _avg: WizardTypeAvgAggregateOutputType | null
    _sum: WizardTypeSumAggregateOutputType | null
    _min: WizardTypeMinAggregateOutputType | null
    _max: WizardTypeMaxAggregateOutputType | null
  }

  type GetWizardTypeGroupByPayload<T extends WizardTypeGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<WizardTypeGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof WizardTypeGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], WizardTypeGroupByOutputType[P]>
            : GetScalarType<T[P], WizardTypeGroupByOutputType[P]>
        }
      >
    >


  export type WizardTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    description?: boolean
    company_id?: boolean
  }, ExtArgs["result"]["wizardType"]>


  export type WizardTypeSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    description?: boolean
    company_id?: boolean
  }


  export type $WizardTypePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "WizardType"
    objects: {}
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      description: string | null
      company_id: number
    }, ExtArgs["result"]["wizardType"]>
    composites: {}
  }

  type WizardTypeGetPayload<S extends boolean | null | undefined | WizardTypeDefaultArgs> = $Result.GetResult<Prisma.$WizardTypePayload, S>

  type WizardTypeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<WizardTypeFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: WizardTypeCountAggregateInputType | true
    }

  export interface WizardTypeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['WizardType'], meta: { name: 'WizardType' } }
    /**
     * Find zero or one WizardType that matches the filter.
     * @param {WizardTypeFindUniqueArgs} args - Arguments to find a WizardType
     * @example
     * // Get one WizardType
     * const wizardType = await prisma.wizardType.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends WizardTypeFindUniqueArgs>(args: SelectSubset<T, WizardTypeFindUniqueArgs<ExtArgs>>): Prisma__WizardTypeClient<$Result.GetResult<Prisma.$WizardTypePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one WizardType that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {WizardTypeFindUniqueOrThrowArgs} args - Arguments to find a WizardType
     * @example
     * // Get one WizardType
     * const wizardType = await prisma.wizardType.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends WizardTypeFindUniqueOrThrowArgs>(args: SelectSubset<T, WizardTypeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WizardTypeClient<$Result.GetResult<Prisma.$WizardTypePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first WizardType 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 {WizardTypeFindFirstArgs} args - Arguments to find a WizardType
     * @example
     * // Get one WizardType
     * const wizardType = await prisma.wizardType.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends WizardTypeFindFirstArgs>(args?: SelectSubset<T, WizardTypeFindFirstArgs<ExtArgs>>): Prisma__WizardTypeClient<$Result.GetResult<Prisma.$WizardTypePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first WizardType 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 {WizardTypeFindFirstOrThrowArgs} args - Arguments to find a WizardType
     * @example
     * // Get one WizardType
     * const wizardType = await prisma.wizardType.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends WizardTypeFindFirstOrThrowArgs>(args?: SelectSubset<T, WizardTypeFindFirstOrThrowArgs<ExtArgs>>): Prisma__WizardTypeClient<$Result.GetResult<Prisma.$WizardTypePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more WizardTypes 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 {WizardTypeFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all WizardTypes
     * const wizardTypes = await prisma.wizardType.findMany()
     * 
     * // Get first 10 WizardTypes
     * const wizardTypes = await prisma.wizardType.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const wizardTypeWithIdOnly = await prisma.wizardType.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends WizardTypeFindManyArgs>(args?: SelectSubset<T, WizardTypeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WizardTypePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a WizardType.
     * @param {WizardTypeCreateArgs} args - Arguments to create a WizardType.
     * @example
     * // Create one WizardType
     * const WizardType = await prisma.wizardType.create({
     *   data: {
     *     // ... data to create a WizardType
     *   }
     * })
     * 
     */
    create<T extends WizardTypeCreateArgs>(args: SelectSubset<T, WizardTypeCreateArgs<ExtArgs>>): Prisma__WizardTypeClient<$Result.GetResult<Prisma.$WizardTypePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many WizardTypes.
     * @param {WizardTypeCreateManyArgs} args - Arguments to create many WizardTypes.
     * @example
     * // Create many WizardTypes
     * const wizardType = await prisma.wizardType.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends WizardTypeCreateManyArgs>(args?: SelectSubset<T, WizardTypeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a WizardType.
     * @param {WizardTypeDeleteArgs} args - Arguments to delete one WizardType.
     * @example
     * // Delete one WizardType
     * const WizardType = await prisma.wizardType.delete({
     *   where: {
     *     // ... filter to delete one WizardType
     *   }
     * })
     * 
     */
    delete<T extends WizardTypeDeleteArgs>(args: SelectSubset<T, WizardTypeDeleteArgs<ExtArgs>>): Prisma__WizardTypeClient<$Result.GetResult<Prisma.$WizardTypePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one WizardType.
     * @param {WizardTypeUpdateArgs} args - Arguments to update one WizardType.
     * @example
     * // Update one WizardType
     * const wizardType = await prisma.wizardType.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends WizardTypeUpdateArgs>(args: SelectSubset<T, WizardTypeUpdateArgs<ExtArgs>>): Prisma__WizardTypeClient<$Result.GetResult<Prisma.$WizardTypePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more WizardTypes.
     * @param {WizardTypeDeleteManyArgs} args - Arguments to filter WizardTypes to delete.
     * @example
     * // Delete a few WizardTypes
     * const { count } = await prisma.wizardType.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends WizardTypeDeleteManyArgs>(args?: SelectSubset<T, WizardTypeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more WizardTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {WizardTypeUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many WizardTypes
     * const wizardType = await prisma.wizardType.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends WizardTypeUpdateManyArgs>(args: SelectSubset<T, WizardTypeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one WizardType.
     * @param {WizardTypeUpsertArgs} args - Arguments to update or create a WizardType.
     * @example
     * // Update or create a WizardType
     * const wizardType = await prisma.wizardType.upsert({
     *   create: {
     *     // ... data to create a WizardType
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the WizardType we want to update
     *   }
     * })
     */
    upsert<T extends WizardTypeUpsertArgs>(args: SelectSubset<T, WizardTypeUpsertArgs<ExtArgs>>): Prisma__WizardTypeClient<$Result.GetResult<Prisma.$WizardTypePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of WizardTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {WizardTypeCountArgs} args - Arguments to filter WizardTypes to count.
     * @example
     * // Count the number of WizardTypes
     * const count = await prisma.wizardType.count({
     *   where: {
     *     // ... the filter for the WizardTypes we want to count
     *   }
     * })
    **/
    count<T extends WizardTypeCountArgs>(
      args?: Subset<T, WizardTypeCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], WizardTypeCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a WizardType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {WizardTypeAggregateArgs} 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<T extends WizardTypeAggregateArgs>(args: Subset<T, WizardTypeAggregateArgs>): Prisma.PrismaPromise<GetWizardTypeAggregateType<T>>

    /**
     * Group by WizardType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {WizardTypeGroupByArgs} 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 WizardTypeGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: WizardTypeGroupByArgs['orderBy'] }
        : { orderBy?: WizardTypeGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, WizardTypeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWizardTypeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the WizardType model
   */
  readonly fields: WizardTypeFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for WizardType.
   * 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__WizardTypeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the WizardType model
   */ 
  interface WizardTypeFieldRefs {
    readonly id: FieldRef<"WizardType", 'Int'>
    readonly uuid: FieldRef<"WizardType", 'String'>
    readonly name: FieldRef<"WizardType", 'String'>
    readonly description: FieldRef<"WizardType", 'String'>
    readonly company_id: FieldRef<"WizardType", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * WizardType findUnique
   */
  export type WizardTypeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
    /**
     * Filter, which WizardType to fetch.
     */
    where: WizardTypeWhereUniqueInput
  }

  /**
   * WizardType findUniqueOrThrow
   */
  export type WizardTypeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
    /**
     * Filter, which WizardType to fetch.
     */
    where: WizardTypeWhereUniqueInput
  }

  /**
   * WizardType findFirst
   */
  export type WizardTypeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
    /**
     * Filter, which WizardType to fetch.
     */
    where?: WizardTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of WizardTypes to fetch.
     */
    orderBy?: WizardTypeOrderByWithRelationInput | WizardTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for WizardTypes.
     */
    cursor?: WizardTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` WizardTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` WizardTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of WizardTypes.
     */
    distinct?: WizardTypeScalarFieldEnum | WizardTypeScalarFieldEnum[]
  }

  /**
   * WizardType findFirstOrThrow
   */
  export type WizardTypeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
    /**
     * Filter, which WizardType to fetch.
     */
    where?: WizardTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of WizardTypes to fetch.
     */
    orderBy?: WizardTypeOrderByWithRelationInput | WizardTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for WizardTypes.
     */
    cursor?: WizardTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` WizardTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` WizardTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of WizardTypes.
     */
    distinct?: WizardTypeScalarFieldEnum | WizardTypeScalarFieldEnum[]
  }

  /**
   * WizardType findMany
   */
  export type WizardTypeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
    /**
     * Filter, which WizardTypes to fetch.
     */
    where?: WizardTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of WizardTypes to fetch.
     */
    orderBy?: WizardTypeOrderByWithRelationInput | WizardTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing WizardTypes.
     */
    cursor?: WizardTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` WizardTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` WizardTypes.
     */
    skip?: number
    distinct?: WizardTypeScalarFieldEnum | WizardTypeScalarFieldEnum[]
  }

  /**
   * WizardType create
   */
  export type WizardTypeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
    /**
     * The data needed to create a WizardType.
     */
    data: XOR<WizardTypeCreateInput, WizardTypeUncheckedCreateInput>
  }

  /**
   * WizardType createMany
   */
  export type WizardTypeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many WizardTypes.
     */
    data: WizardTypeCreateManyInput | WizardTypeCreateManyInput[]
  }

  /**
   * WizardType update
   */
  export type WizardTypeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
    /**
     * The data needed to update a WizardType.
     */
    data: XOR<WizardTypeUpdateInput, WizardTypeUncheckedUpdateInput>
    /**
     * Choose, which WizardType to update.
     */
    where: WizardTypeWhereUniqueInput
  }

  /**
   * WizardType updateMany
   */
  export type WizardTypeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update WizardTypes.
     */
    data: XOR<WizardTypeUpdateManyMutationInput, WizardTypeUncheckedUpdateManyInput>
    /**
     * Filter which WizardTypes to update
     */
    where?: WizardTypeWhereInput
  }

  /**
   * WizardType upsert
   */
  export type WizardTypeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
    /**
     * The filter to search for the WizardType to update in case it exists.
     */
    where: WizardTypeWhereUniqueInput
    /**
     * In case the WizardType found by the `where` argument doesn't exist, create a new WizardType with this data.
     */
    create: XOR<WizardTypeCreateInput, WizardTypeUncheckedCreateInput>
    /**
     * In case the WizardType was found with the provided `where` argument, update it with this data.
     */
    update: XOR<WizardTypeUpdateInput, WizardTypeUncheckedUpdateInput>
  }

  /**
   * WizardType delete
   */
  export type WizardTypeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
    /**
     * Filter which WizardType to delete.
     */
    where: WizardTypeWhereUniqueInput
  }

  /**
   * WizardType deleteMany
   */
  export type WizardTypeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which WizardTypes to delete
     */
    where?: WizardTypeWhereInput
  }

  /**
   * WizardType without action
   */
  export type WizardTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the WizardType
     */
    select?: WizardTypeSelect<ExtArgs> | null
  }


  /**
   * Model MasterEntity
   */

  export type AggregateMasterEntity = {
    _count: MasterEntityCountAggregateOutputType | null
    _avg: MasterEntityAvgAggregateOutputType | null
    _sum: MasterEntitySumAggregateOutputType | null
    _min: MasterEntityMinAggregateOutputType | null
    _max: MasterEntityMaxAggregateOutputType | null
  }

  export type MasterEntityAvgAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    dashboard_wizard_group_id: number | null
    dashboard_wizard_rows: number | null
    dashboard_wizard_columns: number | null
    dashboard_wizard_order_no: Decimal | null
    status_id: number | null
    company_id: number | null
  }

  export type MasterEntitySumAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    dashboard_wizard_group_id: number | null
    dashboard_wizard_rows: number | null
    dashboard_wizard_columns: number | null
    dashboard_wizard_order_no: Decimal | null
    status_id: number | null
    company_id: number | null
  }

  export type MasterEntityMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    entity_name: string | null
    entity_type: string | null
    primary_table: string | null
    is_admin_module: boolean | null
    associated_tables: string | null
    query_information: string | null
    form_information: string | null
    add_query_information: string | null
    edit_query_information: string | null
    preset_query_information: string | null
    static_page_content: string | null
    export_template_id: number | null
    dashboard_wizard_group_id: number | null
    dashboard_wizard_type: string | null
    dashboard_wizard_rows: number | null
    dashboard_wizard_columns: number | null
    dashboard_wizard_order_no: Decimal | null
    dashboard_wizard_options: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
    deleted_at: Date | null
  }

  export type MasterEntityMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    entity_name: string | null
    entity_type: string | null
    primary_table: string | null
    is_admin_module: boolean | null
    associated_tables: string | null
    query_information: string | null
    form_information: string | null
    add_query_information: string | null
    edit_query_information: string | null
    preset_query_information: string | null
    static_page_content: string | null
    export_template_id: number | null
    dashboard_wizard_group_id: number | null
    dashboard_wizard_type: string | null
    dashboard_wizard_rows: number | null
    dashboard_wizard_columns: number | null
    dashboard_wizard_order_no: Decimal | null
    dashboard_wizard_options: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
    deleted_at: Date | null
  }

  export type MasterEntityCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    entity_name: number
    entity_type: number
    primary_table: number
    is_admin_module: number
    associated_tables: number
    query_information: number
    form_information: number
    add_query_information: number
    edit_query_information: number
    preset_query_information: number
    static_page_content: number
    export_template_id: number
    dashboard_wizard_group_id: number
    dashboard_wizard_type: number
    dashboard_wizard_rows: number
    dashboard_wizard_columns: number
    dashboard_wizard_order_no: number
    dashboard_wizard_options: number
    status_id: number
    company_id: number
    created_at: number
    deleted_at: number
    _all: number
  }


  export type MasterEntityAvgAggregateInputType = {
    id?: true
    export_template_id?: true
    dashboard_wizard_group_id?: true
    dashboard_wizard_rows?: true
    dashboard_wizard_columns?: true
    dashboard_wizard_order_no?: true
    status_id?: true
    company_id?: true
  }

  export type MasterEntitySumAggregateInputType = {
    id?: true
    export_template_id?: true
    dashboard_wizard_group_id?: true
    dashboard_wizard_rows?: true
    dashboard_wizard_columns?: true
    dashboard_wizard_order_no?: true
    status_id?: true
    company_id?: true
  }

  export type MasterEntityMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    entity_name?: true
    entity_type?: true
    primary_table?: true
    is_admin_module?: true
    associated_tables?: true
    query_information?: true
    form_information?: true
    add_query_information?: true
    edit_query_information?: true
    preset_query_information?: true
    static_page_content?: true
    export_template_id?: true
    dashboard_wizard_group_id?: true
    dashboard_wizard_type?: true
    dashboard_wizard_rows?: true
    dashboard_wizard_columns?: true
    dashboard_wizard_order_no?: true
    dashboard_wizard_options?: true
    status_id?: true
    company_id?: true
    created_at?: true
    deleted_at?: true
  }

  export type MasterEntityMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    entity_name?: true
    entity_type?: true
    primary_table?: true
    is_admin_module?: true
    associated_tables?: true
    query_information?: true
    form_information?: true
    add_query_information?: true
    edit_query_information?: true
    preset_query_information?: true
    static_page_content?: true
    export_template_id?: true
    dashboard_wizard_group_id?: true
    dashboard_wizard_type?: true
    dashboard_wizard_rows?: true
    dashboard_wizard_columns?: true
    dashboard_wizard_order_no?: true
    dashboard_wizard_options?: true
    status_id?: true
    company_id?: true
    created_at?: true
    deleted_at?: true
  }

  export type MasterEntityCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    entity_name?: true
    entity_type?: true
    primary_table?: true
    is_admin_module?: true
    associated_tables?: true
    query_information?: true
    form_information?: true
    add_query_information?: true
    edit_query_information?: true
    preset_query_information?: true
    static_page_content?: true
    export_template_id?: true
    dashboard_wizard_group_id?: true
    dashboard_wizard_type?: true
    dashboard_wizard_rows?: true
    dashboard_wizard_columns?: true
    dashboard_wizard_order_no?: true
    dashboard_wizard_options?: true
    status_id?: true
    company_id?: true
    created_at?: true
    deleted_at?: true
    _all?: true
  }

  export type MasterEntityAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which MasterEntity to aggregate.
     */
    where?: MasterEntityWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MasterEntities to fetch.
     */
    orderBy?: MasterEntityOrderByWithRelationInput | MasterEntityOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: MasterEntityWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MasterEntities from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MasterEntities.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned MasterEntities
    **/
    _count?: true | MasterEntityCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: MasterEntityAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: MasterEntitySumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: MasterEntityMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: MasterEntityMaxAggregateInputType
  }

  export type GetMasterEntityAggregateType<T extends MasterEntityAggregateArgs> = {
        [P in keyof T & keyof AggregateMasterEntity]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateMasterEntity[P]>
      : GetScalarType<T[P], AggregateMasterEntity[P]>
  }




  export type MasterEntityGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MasterEntityWhereInput
    orderBy?: MasterEntityOrderByWithAggregationInput | MasterEntityOrderByWithAggregationInput[]
    by: MasterEntityScalarFieldEnum[] | MasterEntityScalarFieldEnum
    having?: MasterEntityScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: MasterEntityCountAggregateInputType | true
    _avg?: MasterEntityAvgAggregateInputType
    _sum?: MasterEntitySumAggregateInputType
    _min?: MasterEntityMinAggregateInputType
    _max?: MasterEntityMaxAggregateInputType
  }

  export type MasterEntityGroupByOutputType = {
    id: number
    uuid: string
    name: string
    entity_name: string
    entity_type: string
    primary_table: string | null
    is_admin_module: boolean
    associated_tables: string | null
    query_information: string | null
    form_information: string | null
    add_query_information: string | null
    edit_query_information: string | null
    preset_query_information: string | null
    static_page_content: string | null
    export_template_id: number | null
    dashboard_wizard_group_id: number | null
    dashboard_wizard_type: string | null
    dashboard_wizard_rows: number | null
    dashboard_wizard_columns: number | null
    dashboard_wizard_order_no: Decimal | null
    dashboard_wizard_options: string | null
    status_id: number
    company_id: number
    created_at: Date
    deleted_at: Date | null
    _count: MasterEntityCountAggregateOutputType | null
    _avg: MasterEntityAvgAggregateOutputType | null
    _sum: MasterEntitySumAggregateOutputType | null
    _min: MasterEntityMinAggregateOutputType | null
    _max: MasterEntityMaxAggregateOutputType | null
  }

  type GetMasterEntityGroupByPayload<T extends MasterEntityGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<MasterEntityGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof MasterEntityGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], MasterEntityGroupByOutputType[P]>
            : GetScalarType<T[P], MasterEntityGroupByOutputType[P]>
        }
      >
    >


  export type MasterEntitySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    entity_name?: boolean
    entity_type?: boolean
    primary_table?: boolean
    is_admin_module?: boolean
    associated_tables?: boolean
    query_information?: boolean
    form_information?: boolean
    add_query_information?: boolean
    edit_query_information?: boolean
    preset_query_information?: boolean
    static_page_content?: boolean
    export_template_id?: boolean
    dashboard_wizard_group_id?: boolean
    dashboard_wizard_type?: boolean
    dashboard_wizard_rows?: boolean
    dashboard_wizard_columns?: boolean
    dashboard_wizard_order_no?: boolean
    dashboard_wizard_options?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    permissions?: boolean | MasterEntity$permissionsArgs<ExtArgs>
    line_items?: boolean | MasterEntity$line_itemsArgs<ExtArgs>
    menus?: boolean | MasterEntity$menusArgs<ExtArgs>
    _count?: boolean | MasterEntityCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["masterEntity"]>


  export type MasterEntitySelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    entity_name?: boolean
    entity_type?: boolean
    primary_table?: boolean
    is_admin_module?: boolean
    associated_tables?: boolean
    query_information?: boolean
    form_information?: boolean
    add_query_information?: boolean
    edit_query_information?: boolean
    preset_query_information?: boolean
    static_page_content?: boolean
    export_template_id?: boolean
    dashboard_wizard_group_id?: boolean
    dashboard_wizard_type?: boolean
    dashboard_wizard_rows?: boolean
    dashboard_wizard_columns?: boolean
    dashboard_wizard_order_no?: boolean
    dashboard_wizard_options?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    deleted_at?: boolean
  }

  export type MasterEntityInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    permissions?: boolean | MasterEntity$permissionsArgs<ExtArgs>
    line_items?: boolean | MasterEntity$line_itemsArgs<ExtArgs>
    menus?: boolean | MasterEntity$menusArgs<ExtArgs>
    _count?: boolean | MasterEntityCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $MasterEntityPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "MasterEntity"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      permissions: Prisma.$PermissionsPayload<ExtArgs>[]
      line_items: Prisma.$MasterEntityLineItemPayload<ExtArgs>[]
      menus: Prisma.$MenuItemsPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      entity_name: string
      entity_type: string
      primary_table: string | null
      is_admin_module: boolean
      associated_tables: string | null
      query_information: string | null
      form_information: string | null
      add_query_information: string | null
      edit_query_information: string | null
      preset_query_information: string | null
      static_page_content: string | null
      export_template_id: number | null
      dashboard_wizard_group_id: number | null
      dashboard_wizard_type: string | null
      dashboard_wizard_rows: number | null
      dashboard_wizard_columns: number | null
      dashboard_wizard_order_no: Prisma.Decimal | null
      dashboard_wizard_options: string | null
      status_id: number
      company_id: number
      created_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["masterEntity"]>
    composites: {}
  }

  type MasterEntityGetPayload<S extends boolean | null | undefined | MasterEntityDefaultArgs> = $Result.GetResult<Prisma.$MasterEntityPayload, S>

  type MasterEntityCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<MasterEntityFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: MasterEntityCountAggregateInputType | true
    }

  export interface MasterEntityDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MasterEntity'], meta: { name: 'MasterEntity' } }
    /**
     * Find zero or one MasterEntity that matches the filter.
     * @param {MasterEntityFindUniqueArgs} args - Arguments to find a MasterEntity
     * @example
     * // Get one MasterEntity
     * const masterEntity = await prisma.masterEntity.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends MasterEntityFindUniqueArgs>(args: SelectSubset<T, MasterEntityFindUniqueArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one MasterEntity that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {MasterEntityFindUniqueOrThrowArgs} args - Arguments to find a MasterEntity
     * @example
     * // Get one MasterEntity
     * const masterEntity = await prisma.masterEntity.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends MasterEntityFindUniqueOrThrowArgs>(args: SelectSubset<T, MasterEntityFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first MasterEntity 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 {MasterEntityFindFirstArgs} args - Arguments to find a MasterEntity
     * @example
     * // Get one MasterEntity
     * const masterEntity = await prisma.masterEntity.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends MasterEntityFindFirstArgs>(args?: SelectSubset<T, MasterEntityFindFirstArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first MasterEntity 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 {MasterEntityFindFirstOrThrowArgs} args - Arguments to find a MasterEntity
     * @example
     * // Get one MasterEntity
     * const masterEntity = await prisma.masterEntity.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends MasterEntityFindFirstOrThrowArgs>(args?: SelectSubset<T, MasterEntityFindFirstOrThrowArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more MasterEntities 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 {MasterEntityFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all MasterEntities
     * const masterEntities = await prisma.masterEntity.findMany()
     * 
     * // Get first 10 MasterEntities
     * const masterEntities = await prisma.masterEntity.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const masterEntityWithIdOnly = await prisma.masterEntity.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends MasterEntityFindManyArgs>(args?: SelectSubset<T, MasterEntityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a MasterEntity.
     * @param {MasterEntityCreateArgs} args - Arguments to create a MasterEntity.
     * @example
     * // Create one MasterEntity
     * const MasterEntity = await prisma.masterEntity.create({
     *   data: {
     *     // ... data to create a MasterEntity
     *   }
     * })
     * 
     */
    create<T extends MasterEntityCreateArgs>(args: SelectSubset<T, MasterEntityCreateArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many MasterEntities.
     * @param {MasterEntityCreateManyArgs} args - Arguments to create many MasterEntities.
     * @example
     * // Create many MasterEntities
     * const masterEntity = await prisma.masterEntity.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends MasterEntityCreateManyArgs>(args?: SelectSubset<T, MasterEntityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a MasterEntity.
     * @param {MasterEntityDeleteArgs} args - Arguments to delete one MasterEntity.
     * @example
     * // Delete one MasterEntity
     * const MasterEntity = await prisma.masterEntity.delete({
     *   where: {
     *     // ... filter to delete one MasterEntity
     *   }
     * })
     * 
     */
    delete<T extends MasterEntityDeleteArgs>(args: SelectSubset<T, MasterEntityDeleteArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one MasterEntity.
     * @param {MasterEntityUpdateArgs} args - Arguments to update one MasterEntity.
     * @example
     * // Update one MasterEntity
     * const masterEntity = await prisma.masterEntity.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends MasterEntityUpdateArgs>(args: SelectSubset<T, MasterEntityUpdateArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more MasterEntities.
     * @param {MasterEntityDeleteManyArgs} args - Arguments to filter MasterEntities to delete.
     * @example
     * // Delete a few MasterEntities
     * const { count } = await prisma.masterEntity.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends MasterEntityDeleteManyArgs>(args?: SelectSubset<T, MasterEntityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more MasterEntities.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MasterEntityUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many MasterEntities
     * const masterEntity = await prisma.masterEntity.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends MasterEntityUpdateManyArgs>(args: SelectSubset<T, MasterEntityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one MasterEntity.
     * @param {MasterEntityUpsertArgs} args - Arguments to update or create a MasterEntity.
     * @example
     * // Update or create a MasterEntity
     * const masterEntity = await prisma.masterEntity.upsert({
     *   create: {
     *     // ... data to create a MasterEntity
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the MasterEntity we want to update
     *   }
     * })
     */
    upsert<T extends MasterEntityUpsertArgs>(args: SelectSubset<T, MasterEntityUpsertArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of MasterEntities.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MasterEntityCountArgs} args - Arguments to filter MasterEntities to count.
     * @example
     * // Count the number of MasterEntities
     * const count = await prisma.masterEntity.count({
     *   where: {
     *     // ... the filter for the MasterEntities we want to count
     *   }
     * })
    **/
    count<T extends MasterEntityCountArgs>(
      args?: Subset<T, MasterEntityCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], MasterEntityCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a MasterEntity.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MasterEntityAggregateArgs} 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<T extends MasterEntityAggregateArgs>(args: Subset<T, MasterEntityAggregateArgs>): Prisma.PrismaPromise<GetMasterEntityAggregateType<T>>

    /**
     * Group by MasterEntity.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MasterEntityGroupByArgs} 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 MasterEntityGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: MasterEntityGroupByArgs['orderBy'] }
        : { orderBy?: MasterEntityGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, MasterEntityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMasterEntityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the MasterEntity model
   */
  readonly fields: MasterEntityFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for MasterEntity.
   * 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__MasterEntityClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    permissions<T extends MasterEntity$permissionsArgs<ExtArgs> = {}>(args?: Subset<T, MasterEntity$permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findMany"> | Null>
    line_items<T extends MasterEntity$line_itemsArgs<ExtArgs> = {}>(args?: Subset<T, MasterEntity$line_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    menus<T extends MasterEntity$menusArgs<ExtArgs> = {}>(args?: Subset<T, MasterEntity$menusArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the MasterEntity model
   */ 
  interface MasterEntityFieldRefs {
    readonly id: FieldRef<"MasterEntity", 'Int'>
    readonly uuid: FieldRef<"MasterEntity", 'String'>
    readonly name: FieldRef<"MasterEntity", 'String'>
    readonly entity_name: FieldRef<"MasterEntity", 'String'>
    readonly entity_type: FieldRef<"MasterEntity", 'String'>
    readonly primary_table: FieldRef<"MasterEntity", 'String'>
    readonly is_admin_module: FieldRef<"MasterEntity", 'Boolean'>
    readonly associated_tables: FieldRef<"MasterEntity", 'String'>
    readonly query_information: FieldRef<"MasterEntity", 'String'>
    readonly form_information: FieldRef<"MasterEntity", 'String'>
    readonly add_query_information: FieldRef<"MasterEntity", 'String'>
    readonly edit_query_information: FieldRef<"MasterEntity", 'String'>
    readonly preset_query_information: FieldRef<"MasterEntity", 'String'>
    readonly static_page_content: FieldRef<"MasterEntity", 'String'>
    readonly export_template_id: FieldRef<"MasterEntity", 'Int'>
    readonly dashboard_wizard_group_id: FieldRef<"MasterEntity", 'Int'>
    readonly dashboard_wizard_type: FieldRef<"MasterEntity", 'String'>
    readonly dashboard_wizard_rows: FieldRef<"MasterEntity", 'Int'>
    readonly dashboard_wizard_columns: FieldRef<"MasterEntity", 'Int'>
    readonly dashboard_wizard_order_no: FieldRef<"MasterEntity", 'Decimal'>
    readonly dashboard_wizard_options: FieldRef<"MasterEntity", 'String'>
    readonly status_id: FieldRef<"MasterEntity", 'Int'>
    readonly company_id: FieldRef<"MasterEntity", 'Int'>
    readonly created_at: FieldRef<"MasterEntity", 'DateTime'>
    readonly deleted_at: FieldRef<"MasterEntity", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * MasterEntity findUnique
   */
  export type MasterEntityFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntity to fetch.
     */
    where: MasterEntityWhereUniqueInput
  }

  /**
   * MasterEntity findUniqueOrThrow
   */
  export type MasterEntityFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntity to fetch.
     */
    where: MasterEntityWhereUniqueInput
  }

  /**
   * MasterEntity findFirst
   */
  export type MasterEntityFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntity to fetch.
     */
    where?: MasterEntityWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MasterEntities to fetch.
     */
    orderBy?: MasterEntityOrderByWithRelationInput | MasterEntityOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for MasterEntities.
     */
    cursor?: MasterEntityWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MasterEntities from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MasterEntities.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of MasterEntities.
     */
    distinct?: MasterEntityScalarFieldEnum | MasterEntityScalarFieldEnum[]
  }

  /**
   * MasterEntity findFirstOrThrow
   */
  export type MasterEntityFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntity to fetch.
     */
    where?: MasterEntityWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MasterEntities to fetch.
     */
    orderBy?: MasterEntityOrderByWithRelationInput | MasterEntityOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for MasterEntities.
     */
    cursor?: MasterEntityWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MasterEntities from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MasterEntities.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of MasterEntities.
     */
    distinct?: MasterEntityScalarFieldEnum | MasterEntityScalarFieldEnum[]
  }

  /**
   * MasterEntity findMany
   */
  export type MasterEntityFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntities to fetch.
     */
    where?: MasterEntityWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MasterEntities to fetch.
     */
    orderBy?: MasterEntityOrderByWithRelationInput | MasterEntityOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing MasterEntities.
     */
    cursor?: MasterEntityWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MasterEntities from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MasterEntities.
     */
    skip?: number
    distinct?: MasterEntityScalarFieldEnum | MasterEntityScalarFieldEnum[]
  }

  /**
   * MasterEntity create
   */
  export type MasterEntityCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    /**
     * The data needed to create a MasterEntity.
     */
    data: XOR<MasterEntityCreateInput, MasterEntityUncheckedCreateInput>
  }

  /**
   * MasterEntity createMany
   */
  export type MasterEntityCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many MasterEntities.
     */
    data: MasterEntityCreateManyInput | MasterEntityCreateManyInput[]
  }

  /**
   * MasterEntity update
   */
  export type MasterEntityUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    /**
     * The data needed to update a MasterEntity.
     */
    data: XOR<MasterEntityUpdateInput, MasterEntityUncheckedUpdateInput>
    /**
     * Choose, which MasterEntity to update.
     */
    where: MasterEntityWhereUniqueInput
  }

  /**
   * MasterEntity updateMany
   */
  export type MasterEntityUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update MasterEntities.
     */
    data: XOR<MasterEntityUpdateManyMutationInput, MasterEntityUncheckedUpdateManyInput>
    /**
     * Filter which MasterEntities to update
     */
    where?: MasterEntityWhereInput
  }

  /**
   * MasterEntity upsert
   */
  export type MasterEntityUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    /**
     * The filter to search for the MasterEntity to update in case it exists.
     */
    where: MasterEntityWhereUniqueInput
    /**
     * In case the MasterEntity found by the `where` argument doesn't exist, create a new MasterEntity with this data.
     */
    create: XOR<MasterEntityCreateInput, MasterEntityUncheckedCreateInput>
    /**
     * In case the MasterEntity was found with the provided `where` argument, update it with this data.
     */
    update: XOR<MasterEntityUpdateInput, MasterEntityUncheckedUpdateInput>
  }

  /**
   * MasterEntity delete
   */
  export type MasterEntityDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    /**
     * Filter which MasterEntity to delete.
     */
    where: MasterEntityWhereUniqueInput
  }

  /**
   * MasterEntity deleteMany
   */
  export type MasterEntityDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which MasterEntities to delete
     */
    where?: MasterEntityWhereInput
  }

  /**
   * MasterEntity.permissions
   */
  export type MasterEntity$permissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    where?: PermissionsWhereInput
    orderBy?: PermissionsOrderByWithRelationInput | PermissionsOrderByWithRelationInput[]
    cursor?: PermissionsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: PermissionsScalarFieldEnum | PermissionsScalarFieldEnum[]
  }

  /**
   * MasterEntity.line_items
   */
  export type MasterEntity$line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    where?: MasterEntityLineItemWhereInput
    orderBy?: MasterEntityLineItemOrderByWithRelationInput | MasterEntityLineItemOrderByWithRelationInput[]
    cursor?: MasterEntityLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MasterEntityLineItemScalarFieldEnum | MasterEntityLineItemScalarFieldEnum[]
  }

  /**
   * MasterEntity.menus
   */
  export type MasterEntity$menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    where?: MenuItemsWhereInput
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    cursor?: MenuItemsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * MasterEntity without action
   */
  export type MasterEntityDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
  }


  /**
   * Model MasterEntityLineItem
   */

  export type AggregateMasterEntityLineItem = {
    _count: MasterEntityLineItemCountAggregateOutputType | null
    _avg: MasterEntityLineItemAvgAggregateOutputType | null
    _sum: MasterEntityLineItemSumAggregateOutputType | null
    _min: MasterEntityLineItemMinAggregateOutputType | null
    _max: MasterEntityLineItemMaxAggregateOutputType | null
  }

  export type MasterEntityLineItemAvgAggregateOutputType = {
    id: number | null
    master_grid_id: number | null
    order_no: Decimal | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type MasterEntityLineItemSumAggregateOutputType = {
    id: number | null
    master_grid_id: number | null
    order_no: Decimal | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type MasterEntityLineItemMinAggregateOutputType = {
    id: number | null
    master_grid_id: number | null
    field_name: string | null
    display_name: string | null
    order_no: Decimal | null
    is_grid_column: boolean | null
    is_searchable: boolean | null
    clause_type: string | null
    is_sortable: boolean | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type MasterEntityLineItemMaxAggregateOutputType = {
    id: number | null
    master_grid_id: number | null
    field_name: string | null
    display_name: string | null
    order_no: Decimal | null
    is_grid_column: boolean | null
    is_searchable: boolean | null
    clause_type: string | null
    is_sortable: boolean | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type MasterEntityLineItemCountAggregateOutputType = {
    id: number
    master_grid_id: number
    field_name: number
    display_name: number
    order_no: number
    is_grid_column: number
    is_searchable: number
    clause_type: number
    is_sortable: number
    field_type_id: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type MasterEntityLineItemAvgAggregateInputType = {
    id?: true
    master_grid_id?: true
    order_no?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
  }

  export type MasterEntityLineItemSumAggregateInputType = {
    id?: true
    master_grid_id?: true
    order_no?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
  }

  export type MasterEntityLineItemMinAggregateInputType = {
    id?: true
    master_grid_id?: true
    field_name?: true
    display_name?: true
    order_no?: true
    is_grid_column?: true
    is_searchable?: true
    clause_type?: true
    is_sortable?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type MasterEntityLineItemMaxAggregateInputType = {
    id?: true
    master_grid_id?: true
    field_name?: true
    display_name?: true
    order_no?: true
    is_grid_column?: true
    is_searchable?: true
    clause_type?: true
    is_sortable?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type MasterEntityLineItemCountAggregateInputType = {
    id?: true
    master_grid_id?: true
    field_name?: true
    display_name?: true
    order_no?: true
    is_grid_column?: true
    is_searchable?: true
    clause_type?: true
    is_sortable?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type MasterEntityLineItemAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which MasterEntityLineItem to aggregate.
     */
    where?: MasterEntityLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MasterEntityLineItems to fetch.
     */
    orderBy?: MasterEntityLineItemOrderByWithRelationInput | MasterEntityLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: MasterEntityLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MasterEntityLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MasterEntityLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned MasterEntityLineItems
    **/
    _count?: true | MasterEntityLineItemCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: MasterEntityLineItemAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: MasterEntityLineItemSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: MasterEntityLineItemMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: MasterEntityLineItemMaxAggregateInputType
  }

  export type GetMasterEntityLineItemAggregateType<T extends MasterEntityLineItemAggregateArgs> = {
        [P in keyof T & keyof AggregateMasterEntityLineItem]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateMasterEntityLineItem[P]>
      : GetScalarType<T[P], AggregateMasterEntityLineItem[P]>
  }




  export type MasterEntityLineItemGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: MasterEntityLineItemWhereInput
    orderBy?: MasterEntityLineItemOrderByWithAggregationInput | MasterEntityLineItemOrderByWithAggregationInput[]
    by: MasterEntityLineItemScalarFieldEnum[] | MasterEntityLineItemScalarFieldEnum
    having?: MasterEntityLineItemScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: MasterEntityLineItemCountAggregateInputType | true
    _avg?: MasterEntityLineItemAvgAggregateInputType
    _sum?: MasterEntityLineItemSumAggregateInputType
    _min?: MasterEntityLineItemMinAggregateInputType
    _max?: MasterEntityLineItemMaxAggregateInputType
  }

  export type MasterEntityLineItemGroupByOutputType = {
    id: number
    master_grid_id: number
    field_name: string
    display_name: string
    order_no: Decimal
    is_grid_column: boolean
    is_searchable: boolean
    clause_type: string
    is_sortable: boolean
    field_type_id: number
    status_id: number
    company_id: number
    created_at: Date
    _count: MasterEntityLineItemCountAggregateOutputType | null
    _avg: MasterEntityLineItemAvgAggregateOutputType | null
    _sum: MasterEntityLineItemSumAggregateOutputType | null
    _min: MasterEntityLineItemMinAggregateOutputType | null
    _max: MasterEntityLineItemMaxAggregateOutputType | null
  }

  type GetMasterEntityLineItemGroupByPayload<T extends MasterEntityLineItemGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<MasterEntityLineItemGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof MasterEntityLineItemGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], MasterEntityLineItemGroupByOutputType[P]>
            : GetScalarType<T[P], MasterEntityLineItemGroupByOutputType[P]>
        }
      >
    >


  export type MasterEntityLineItemSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    master_grid_id?: boolean
    field_name?: boolean
    display_name?: boolean
    order_no?: boolean
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: boolean
    is_sortable?: boolean
    field_type_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    master_grid?: boolean | MasterEntityDefaultArgs<ExtArgs>
    field_type?: boolean | MasterEntityLineItem$field_typeArgs<ExtArgs>
  }, ExtArgs["result"]["masterEntityLineItem"]>


  export type MasterEntityLineItemSelectScalar = {
    id?: boolean
    master_grid_id?: boolean
    field_name?: boolean
    display_name?: boolean
    order_no?: boolean
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: boolean
    is_sortable?: boolean
    field_type_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type MasterEntityLineItemInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    master_grid?: boolean | MasterEntityDefaultArgs<ExtArgs>
    field_type?: boolean | MasterEntityLineItem$field_typeArgs<ExtArgs>
  }

  export type $MasterEntityLineItemPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "MasterEntityLineItem"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      master_grid: Prisma.$MasterEntityPayload<ExtArgs>
      field_type: Prisma.$FieldTypePayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      master_grid_id: number
      field_name: string
      display_name: string
      order_no: Prisma.Decimal
      is_grid_column: boolean
      is_searchable: boolean
      clause_type: string
      is_sortable: boolean
      field_type_id: number
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["masterEntityLineItem"]>
    composites: {}
  }

  type MasterEntityLineItemGetPayload<S extends boolean | null | undefined | MasterEntityLineItemDefaultArgs> = $Result.GetResult<Prisma.$MasterEntityLineItemPayload, S>

  type MasterEntityLineItemCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<MasterEntityLineItemFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: MasterEntityLineItemCountAggregateInputType | true
    }

  export interface MasterEntityLineItemDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MasterEntityLineItem'], meta: { name: 'MasterEntityLineItem' } }
    /**
     * Find zero or one MasterEntityLineItem that matches the filter.
     * @param {MasterEntityLineItemFindUniqueArgs} args - Arguments to find a MasterEntityLineItem
     * @example
     * // Get one MasterEntityLineItem
     * const masterEntityLineItem = await prisma.masterEntityLineItem.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends MasterEntityLineItemFindUniqueArgs>(args: SelectSubset<T, MasterEntityLineItemFindUniqueArgs<ExtArgs>>): Prisma__MasterEntityLineItemClient<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one MasterEntityLineItem that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {MasterEntityLineItemFindUniqueOrThrowArgs} args - Arguments to find a MasterEntityLineItem
     * @example
     * // Get one MasterEntityLineItem
     * const masterEntityLineItem = await prisma.masterEntityLineItem.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends MasterEntityLineItemFindUniqueOrThrowArgs>(args: SelectSubset<T, MasterEntityLineItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma__MasterEntityLineItemClient<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first MasterEntityLineItem 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 {MasterEntityLineItemFindFirstArgs} args - Arguments to find a MasterEntityLineItem
     * @example
     * // Get one MasterEntityLineItem
     * const masterEntityLineItem = await prisma.masterEntityLineItem.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends MasterEntityLineItemFindFirstArgs>(args?: SelectSubset<T, MasterEntityLineItemFindFirstArgs<ExtArgs>>): Prisma__MasterEntityLineItemClient<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first MasterEntityLineItem 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 {MasterEntityLineItemFindFirstOrThrowArgs} args - Arguments to find a MasterEntityLineItem
     * @example
     * // Get one MasterEntityLineItem
     * const masterEntityLineItem = await prisma.masterEntityLineItem.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends MasterEntityLineItemFindFirstOrThrowArgs>(args?: SelectSubset<T, MasterEntityLineItemFindFirstOrThrowArgs<ExtArgs>>): Prisma__MasterEntityLineItemClient<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more MasterEntityLineItems 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 {MasterEntityLineItemFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all MasterEntityLineItems
     * const masterEntityLineItems = await prisma.masterEntityLineItem.findMany()
     * 
     * // Get first 10 MasterEntityLineItems
     * const masterEntityLineItems = await prisma.masterEntityLineItem.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const masterEntityLineItemWithIdOnly = await prisma.masterEntityLineItem.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends MasterEntityLineItemFindManyArgs>(args?: SelectSubset<T, MasterEntityLineItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a MasterEntityLineItem.
     * @param {MasterEntityLineItemCreateArgs} args - Arguments to create a MasterEntityLineItem.
     * @example
     * // Create one MasterEntityLineItem
     * const MasterEntityLineItem = await prisma.masterEntityLineItem.create({
     *   data: {
     *     // ... data to create a MasterEntityLineItem
     *   }
     * })
     * 
     */
    create<T extends MasterEntityLineItemCreateArgs>(args: SelectSubset<T, MasterEntityLineItemCreateArgs<ExtArgs>>): Prisma__MasterEntityLineItemClient<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many MasterEntityLineItems.
     * @param {MasterEntityLineItemCreateManyArgs} args - Arguments to create many MasterEntityLineItems.
     * @example
     * // Create many MasterEntityLineItems
     * const masterEntityLineItem = await prisma.masterEntityLineItem.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends MasterEntityLineItemCreateManyArgs>(args?: SelectSubset<T, MasterEntityLineItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a MasterEntityLineItem.
     * @param {MasterEntityLineItemDeleteArgs} args - Arguments to delete one MasterEntityLineItem.
     * @example
     * // Delete one MasterEntityLineItem
     * const MasterEntityLineItem = await prisma.masterEntityLineItem.delete({
     *   where: {
     *     // ... filter to delete one MasterEntityLineItem
     *   }
     * })
     * 
     */
    delete<T extends MasterEntityLineItemDeleteArgs>(args: SelectSubset<T, MasterEntityLineItemDeleteArgs<ExtArgs>>): Prisma__MasterEntityLineItemClient<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one MasterEntityLineItem.
     * @param {MasterEntityLineItemUpdateArgs} args - Arguments to update one MasterEntityLineItem.
     * @example
     * // Update one MasterEntityLineItem
     * const masterEntityLineItem = await prisma.masterEntityLineItem.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends MasterEntityLineItemUpdateArgs>(args: SelectSubset<T, MasterEntityLineItemUpdateArgs<ExtArgs>>): Prisma__MasterEntityLineItemClient<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more MasterEntityLineItems.
     * @param {MasterEntityLineItemDeleteManyArgs} args - Arguments to filter MasterEntityLineItems to delete.
     * @example
     * // Delete a few MasterEntityLineItems
     * const { count } = await prisma.masterEntityLineItem.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends MasterEntityLineItemDeleteManyArgs>(args?: SelectSubset<T, MasterEntityLineItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more MasterEntityLineItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MasterEntityLineItemUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many MasterEntityLineItems
     * const masterEntityLineItem = await prisma.masterEntityLineItem.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends MasterEntityLineItemUpdateManyArgs>(args: SelectSubset<T, MasterEntityLineItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one MasterEntityLineItem.
     * @param {MasterEntityLineItemUpsertArgs} args - Arguments to update or create a MasterEntityLineItem.
     * @example
     * // Update or create a MasterEntityLineItem
     * const masterEntityLineItem = await prisma.masterEntityLineItem.upsert({
     *   create: {
     *     // ... data to create a MasterEntityLineItem
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the MasterEntityLineItem we want to update
     *   }
     * })
     */
    upsert<T extends MasterEntityLineItemUpsertArgs>(args: SelectSubset<T, MasterEntityLineItemUpsertArgs<ExtArgs>>): Prisma__MasterEntityLineItemClient<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of MasterEntityLineItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MasterEntityLineItemCountArgs} args - Arguments to filter MasterEntityLineItems to count.
     * @example
     * // Count the number of MasterEntityLineItems
     * const count = await prisma.masterEntityLineItem.count({
     *   where: {
     *     // ... the filter for the MasterEntityLineItems we want to count
     *   }
     * })
    **/
    count<T extends MasterEntityLineItemCountArgs>(
      args?: Subset<T, MasterEntityLineItemCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], MasterEntityLineItemCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a MasterEntityLineItem.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MasterEntityLineItemAggregateArgs} 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<T extends MasterEntityLineItemAggregateArgs>(args: Subset<T, MasterEntityLineItemAggregateArgs>): Prisma.PrismaPromise<GetMasterEntityLineItemAggregateType<T>>

    /**
     * Group by MasterEntityLineItem.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MasterEntityLineItemGroupByArgs} 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 MasterEntityLineItemGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: MasterEntityLineItemGroupByArgs['orderBy'] }
        : { orderBy?: MasterEntityLineItemGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, MasterEntityLineItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMasterEntityLineItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the MasterEntityLineItem model
   */
  readonly fields: MasterEntityLineItemFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for MasterEntityLineItem.
   * 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__MasterEntityLineItemClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    master_grid<T extends MasterEntityDefaultArgs<ExtArgs> = {}>(args?: Subset<T, MasterEntityDefaultArgs<ExtArgs>>): Prisma__MasterEntityClient<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    field_type<T extends MasterEntityLineItem$field_typeArgs<ExtArgs> = {}>(args?: Subset<T, MasterEntityLineItem$field_typeArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the MasterEntityLineItem model
   */ 
  interface MasterEntityLineItemFieldRefs {
    readonly id: FieldRef<"MasterEntityLineItem", 'Int'>
    readonly master_grid_id: FieldRef<"MasterEntityLineItem", 'Int'>
    readonly field_name: FieldRef<"MasterEntityLineItem", 'String'>
    readonly display_name: FieldRef<"MasterEntityLineItem", 'String'>
    readonly order_no: FieldRef<"MasterEntityLineItem", 'Decimal'>
    readonly is_grid_column: FieldRef<"MasterEntityLineItem", 'Boolean'>
    readonly is_searchable: FieldRef<"MasterEntityLineItem", 'Boolean'>
    readonly clause_type: FieldRef<"MasterEntityLineItem", 'String'>
    readonly is_sortable: FieldRef<"MasterEntityLineItem", 'Boolean'>
    readonly field_type_id: FieldRef<"MasterEntityLineItem", 'Int'>
    readonly status_id: FieldRef<"MasterEntityLineItem", 'Int'>
    readonly company_id: FieldRef<"MasterEntityLineItem", 'Int'>
    readonly created_at: FieldRef<"MasterEntityLineItem", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * MasterEntityLineItem findUnique
   */
  export type MasterEntityLineItemFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntityLineItem to fetch.
     */
    where: MasterEntityLineItemWhereUniqueInput
  }

  /**
   * MasterEntityLineItem findUniqueOrThrow
   */
  export type MasterEntityLineItemFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntityLineItem to fetch.
     */
    where: MasterEntityLineItemWhereUniqueInput
  }

  /**
   * MasterEntityLineItem findFirst
   */
  export type MasterEntityLineItemFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntityLineItem to fetch.
     */
    where?: MasterEntityLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MasterEntityLineItems to fetch.
     */
    orderBy?: MasterEntityLineItemOrderByWithRelationInput | MasterEntityLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for MasterEntityLineItems.
     */
    cursor?: MasterEntityLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MasterEntityLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MasterEntityLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of MasterEntityLineItems.
     */
    distinct?: MasterEntityLineItemScalarFieldEnum | MasterEntityLineItemScalarFieldEnum[]
  }

  /**
   * MasterEntityLineItem findFirstOrThrow
   */
  export type MasterEntityLineItemFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntityLineItem to fetch.
     */
    where?: MasterEntityLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MasterEntityLineItems to fetch.
     */
    orderBy?: MasterEntityLineItemOrderByWithRelationInput | MasterEntityLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for MasterEntityLineItems.
     */
    cursor?: MasterEntityLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MasterEntityLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MasterEntityLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of MasterEntityLineItems.
     */
    distinct?: MasterEntityLineItemScalarFieldEnum | MasterEntityLineItemScalarFieldEnum[]
  }

  /**
   * MasterEntityLineItem findMany
   */
  export type MasterEntityLineItemFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    /**
     * Filter, which MasterEntityLineItems to fetch.
     */
    where?: MasterEntityLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of MasterEntityLineItems to fetch.
     */
    orderBy?: MasterEntityLineItemOrderByWithRelationInput | MasterEntityLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing MasterEntityLineItems.
     */
    cursor?: MasterEntityLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` MasterEntityLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` MasterEntityLineItems.
     */
    skip?: number
    distinct?: MasterEntityLineItemScalarFieldEnum | MasterEntityLineItemScalarFieldEnum[]
  }

  /**
   * MasterEntityLineItem create
   */
  export type MasterEntityLineItemCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    /**
     * The data needed to create a MasterEntityLineItem.
     */
    data: XOR<MasterEntityLineItemCreateInput, MasterEntityLineItemUncheckedCreateInput>
  }

  /**
   * MasterEntityLineItem createMany
   */
  export type MasterEntityLineItemCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many MasterEntityLineItems.
     */
    data: MasterEntityLineItemCreateManyInput | MasterEntityLineItemCreateManyInput[]
  }

  /**
   * MasterEntityLineItem update
   */
  export type MasterEntityLineItemUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    /**
     * The data needed to update a MasterEntityLineItem.
     */
    data: XOR<MasterEntityLineItemUpdateInput, MasterEntityLineItemUncheckedUpdateInput>
    /**
     * Choose, which MasterEntityLineItem to update.
     */
    where: MasterEntityLineItemWhereUniqueInput
  }

  /**
   * MasterEntityLineItem updateMany
   */
  export type MasterEntityLineItemUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update MasterEntityLineItems.
     */
    data: XOR<MasterEntityLineItemUpdateManyMutationInput, MasterEntityLineItemUncheckedUpdateManyInput>
    /**
     * Filter which MasterEntityLineItems to update
     */
    where?: MasterEntityLineItemWhereInput
  }

  /**
   * MasterEntityLineItem upsert
   */
  export type MasterEntityLineItemUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    /**
     * The filter to search for the MasterEntityLineItem to update in case it exists.
     */
    where: MasterEntityLineItemWhereUniqueInput
    /**
     * In case the MasterEntityLineItem found by the `where` argument doesn't exist, create a new MasterEntityLineItem with this data.
     */
    create: XOR<MasterEntityLineItemCreateInput, MasterEntityLineItemUncheckedCreateInput>
    /**
     * In case the MasterEntityLineItem was found with the provided `where` argument, update it with this data.
     */
    update: XOR<MasterEntityLineItemUpdateInput, MasterEntityLineItemUncheckedUpdateInput>
  }

  /**
   * MasterEntityLineItem delete
   */
  export type MasterEntityLineItemDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    /**
     * Filter which MasterEntityLineItem to delete.
     */
    where: MasterEntityLineItemWhereUniqueInput
  }

  /**
   * MasterEntityLineItem deleteMany
   */
  export type MasterEntityLineItemDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which MasterEntityLineItems to delete
     */
    where?: MasterEntityLineItemWhereInput
  }

  /**
   * MasterEntityLineItem.field_type
   */
  export type MasterEntityLineItem$field_typeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    where?: FieldTypeWhereInput
  }

  /**
   * MasterEntityLineItem without action
   */
  export type MasterEntityLineItemDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
  }


  /**
   * Model FieldType
   */

  export type AggregateFieldType = {
    _count: FieldTypeCountAggregateOutputType | null
    _avg: FieldTypeAvgAggregateOutputType | null
    _sum: FieldTypeSumAggregateOutputType | null
    _min: FieldTypeMinAggregateOutputType | null
    _max: FieldTypeMaxAggregateOutputType | null
  }

  export type FieldTypeAvgAggregateOutputType = {
    id: number | null
    company_id: number | null
    status_id: number | null
  }

  export type FieldTypeSumAggregateOutputType = {
    id: number | null
    company_id: number | null
    status_id: number | null
  }

  export type FieldTypeMinAggregateOutputType = {
    id: number | null
    field_type: string | null
    company_id: number | null
    status_id: number | null
    created_at: Date | null
  }

  export type FieldTypeMaxAggregateOutputType = {
    id: number | null
    field_type: string | null
    company_id: number | null
    status_id: number | null
    created_at: Date | null
  }

  export type FieldTypeCountAggregateOutputType = {
    id: number
    field_type: number
    company_id: number
    status_id: number
    created_at: number
    _all: number
  }


  export type FieldTypeAvgAggregateInputType = {
    id?: true
    company_id?: true
    status_id?: true
  }

  export type FieldTypeSumAggregateInputType = {
    id?: true
    company_id?: true
    status_id?: true
  }

  export type FieldTypeMinAggregateInputType = {
    id?: true
    field_type?: true
    company_id?: true
    status_id?: true
    created_at?: true
  }

  export type FieldTypeMaxAggregateInputType = {
    id?: true
    field_type?: true
    company_id?: true
    status_id?: true
    created_at?: true
  }

  export type FieldTypeCountAggregateInputType = {
    id?: true
    field_type?: true
    company_id?: true
    status_id?: true
    created_at?: true
    _all?: true
  }

  export type FieldTypeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which FieldType to aggregate.
     */
    where?: FieldTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FieldTypes to fetch.
     */
    orderBy?: FieldTypeOrderByWithRelationInput | FieldTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: FieldTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FieldTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FieldTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned FieldTypes
    **/
    _count?: true | FieldTypeCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: FieldTypeAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: FieldTypeSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: FieldTypeMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: FieldTypeMaxAggregateInputType
  }

  export type GetFieldTypeAggregateType<T extends FieldTypeAggregateArgs> = {
        [P in keyof T & keyof AggregateFieldType]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateFieldType[P]>
      : GetScalarType<T[P], AggregateFieldType[P]>
  }




  export type FieldTypeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: FieldTypeWhereInput
    orderBy?: FieldTypeOrderByWithAggregationInput | FieldTypeOrderByWithAggregationInput[]
    by: FieldTypeScalarFieldEnum[] | FieldTypeScalarFieldEnum
    having?: FieldTypeScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: FieldTypeCountAggregateInputType | true
    _avg?: FieldTypeAvgAggregateInputType
    _sum?: FieldTypeSumAggregateInputType
    _min?: FieldTypeMinAggregateInputType
    _max?: FieldTypeMaxAggregateInputType
  }

  export type FieldTypeGroupByOutputType = {
    id: number
    field_type: string
    company_id: number
    status_id: number
    created_at: Date
    _count: FieldTypeCountAggregateOutputType | null
    _avg: FieldTypeAvgAggregateOutputType | null
    _sum: FieldTypeSumAggregateOutputType | null
    _min: FieldTypeMinAggregateOutputType | null
    _max: FieldTypeMaxAggregateOutputType | null
  }

  type GetFieldTypeGroupByPayload<T extends FieldTypeGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<FieldTypeGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof FieldTypeGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], FieldTypeGroupByOutputType[P]>
            : GetScalarType<T[P], FieldTypeGroupByOutputType[P]>
        }
      >
    >


  export type FieldTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    field_type?: boolean
    company_id?: boolean
    status_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    master_grid_lineitem?: boolean | FieldType$master_grid_lineitemArgs<ExtArgs>
    importTemplateLineItem?: boolean | FieldType$importTemplateLineItemArgs<ExtArgs>
    exportTemplateLineItem?: boolean | FieldType$exportTemplateLineItemArgs<ExtArgs>
    _count?: boolean | FieldTypeCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["fieldType"]>


  export type FieldTypeSelectScalar = {
    id?: boolean
    field_type?: boolean
    company_id?: boolean
    status_id?: boolean
    created_at?: boolean
  }

  export type FieldTypeInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    master_grid_lineitem?: boolean | FieldType$master_grid_lineitemArgs<ExtArgs>
    importTemplateLineItem?: boolean | FieldType$importTemplateLineItemArgs<ExtArgs>
    exportTemplateLineItem?: boolean | FieldType$exportTemplateLineItemArgs<ExtArgs>
    _count?: boolean | FieldTypeCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $FieldTypePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "FieldType"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      master_grid_lineitem: Prisma.$MasterEntityLineItemPayload<ExtArgs>[]
      importTemplateLineItem: Prisma.$ImportTemplateLineItemPayload<ExtArgs>[]
      exportTemplateLineItem: Prisma.$ExportTemplateLineItemPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      field_type: string
      company_id: number
      status_id: number
      created_at: Date
    }, ExtArgs["result"]["fieldType"]>
    composites: {}
  }

  type FieldTypeGetPayload<S extends boolean | null | undefined | FieldTypeDefaultArgs> = $Result.GetResult<Prisma.$FieldTypePayload, S>

  type FieldTypeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<FieldTypeFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: FieldTypeCountAggregateInputType | true
    }

  export interface FieldTypeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FieldType'], meta: { name: 'FieldType' } }
    /**
     * Find zero or one FieldType that matches the filter.
     * @param {FieldTypeFindUniqueArgs} args - Arguments to find a FieldType
     * @example
     * // Get one FieldType
     * const fieldType = await prisma.fieldType.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends FieldTypeFindUniqueArgs>(args: SelectSubset<T, FieldTypeFindUniqueArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one FieldType that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {FieldTypeFindUniqueOrThrowArgs} args - Arguments to find a FieldType
     * @example
     * // Get one FieldType
     * const fieldType = await prisma.fieldType.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends FieldTypeFindUniqueOrThrowArgs>(args: SelectSubset<T, FieldTypeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first FieldType 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 {FieldTypeFindFirstArgs} args - Arguments to find a FieldType
     * @example
     * // Get one FieldType
     * const fieldType = await prisma.fieldType.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends FieldTypeFindFirstArgs>(args?: SelectSubset<T, FieldTypeFindFirstArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first FieldType 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 {FieldTypeFindFirstOrThrowArgs} args - Arguments to find a FieldType
     * @example
     * // Get one FieldType
     * const fieldType = await prisma.fieldType.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends FieldTypeFindFirstOrThrowArgs>(args?: SelectSubset<T, FieldTypeFindFirstOrThrowArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more FieldTypes 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 {FieldTypeFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all FieldTypes
     * const fieldTypes = await prisma.fieldType.findMany()
     * 
     * // Get first 10 FieldTypes
     * const fieldTypes = await prisma.fieldType.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const fieldTypeWithIdOnly = await prisma.fieldType.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends FieldTypeFindManyArgs>(args?: SelectSubset<T, FieldTypeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a FieldType.
     * @param {FieldTypeCreateArgs} args - Arguments to create a FieldType.
     * @example
     * // Create one FieldType
     * const FieldType = await prisma.fieldType.create({
     *   data: {
     *     // ... data to create a FieldType
     *   }
     * })
     * 
     */
    create<T extends FieldTypeCreateArgs>(args: SelectSubset<T, FieldTypeCreateArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many FieldTypes.
     * @param {FieldTypeCreateManyArgs} args - Arguments to create many FieldTypes.
     * @example
     * // Create many FieldTypes
     * const fieldType = await prisma.fieldType.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends FieldTypeCreateManyArgs>(args?: SelectSubset<T, FieldTypeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a FieldType.
     * @param {FieldTypeDeleteArgs} args - Arguments to delete one FieldType.
     * @example
     * // Delete one FieldType
     * const FieldType = await prisma.fieldType.delete({
     *   where: {
     *     // ... filter to delete one FieldType
     *   }
     * })
     * 
     */
    delete<T extends FieldTypeDeleteArgs>(args: SelectSubset<T, FieldTypeDeleteArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one FieldType.
     * @param {FieldTypeUpdateArgs} args - Arguments to update one FieldType.
     * @example
     * // Update one FieldType
     * const fieldType = await prisma.fieldType.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends FieldTypeUpdateArgs>(args: SelectSubset<T, FieldTypeUpdateArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more FieldTypes.
     * @param {FieldTypeDeleteManyArgs} args - Arguments to filter FieldTypes to delete.
     * @example
     * // Delete a few FieldTypes
     * const { count } = await prisma.fieldType.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends FieldTypeDeleteManyArgs>(args?: SelectSubset<T, FieldTypeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more FieldTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FieldTypeUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many FieldTypes
     * const fieldType = await prisma.fieldType.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends FieldTypeUpdateManyArgs>(args: SelectSubset<T, FieldTypeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one FieldType.
     * @param {FieldTypeUpsertArgs} args - Arguments to update or create a FieldType.
     * @example
     * // Update or create a FieldType
     * const fieldType = await prisma.fieldType.upsert({
     *   create: {
     *     // ... data to create a FieldType
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the FieldType we want to update
     *   }
     * })
     */
    upsert<T extends FieldTypeUpsertArgs>(args: SelectSubset<T, FieldTypeUpsertArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of FieldTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FieldTypeCountArgs} args - Arguments to filter FieldTypes to count.
     * @example
     * // Count the number of FieldTypes
     * const count = await prisma.fieldType.count({
     *   where: {
     *     // ... the filter for the FieldTypes we want to count
     *   }
     * })
    **/
    count<T extends FieldTypeCountArgs>(
      args?: Subset<T, FieldTypeCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], FieldTypeCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a FieldType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FieldTypeAggregateArgs} 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<T extends FieldTypeAggregateArgs>(args: Subset<T, FieldTypeAggregateArgs>): Prisma.PrismaPromise<GetFieldTypeAggregateType<T>>

    /**
     * Group by FieldType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FieldTypeGroupByArgs} 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 FieldTypeGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: FieldTypeGroupByArgs['orderBy'] }
        : { orderBy?: FieldTypeGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, FieldTypeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFieldTypeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the FieldType model
   */
  readonly fields: FieldTypeFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for FieldType.
   * 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__FieldTypeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    master_grid_lineitem<T extends FieldType$master_grid_lineitemArgs<ExtArgs> = {}>(args?: Subset<T, FieldType$master_grid_lineitemArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    importTemplateLineItem<T extends FieldType$importTemplateLineItemArgs<ExtArgs> = {}>(args?: Subset<T, FieldType$importTemplateLineItemArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    exportTemplateLineItem<T extends FieldType$exportTemplateLineItemArgs<ExtArgs> = {}>(args?: Subset<T, FieldType$exportTemplateLineItemArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the FieldType model
   */ 
  interface FieldTypeFieldRefs {
    readonly id: FieldRef<"FieldType", 'Int'>
    readonly field_type: FieldRef<"FieldType", 'String'>
    readonly company_id: FieldRef<"FieldType", 'Int'>
    readonly status_id: FieldRef<"FieldType", 'Int'>
    readonly created_at: FieldRef<"FieldType", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * FieldType findUnique
   */
  export type FieldTypeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    /**
     * Filter, which FieldType to fetch.
     */
    where: FieldTypeWhereUniqueInput
  }

  /**
   * FieldType findUniqueOrThrow
   */
  export type FieldTypeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    /**
     * Filter, which FieldType to fetch.
     */
    where: FieldTypeWhereUniqueInput
  }

  /**
   * FieldType findFirst
   */
  export type FieldTypeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    /**
     * Filter, which FieldType to fetch.
     */
    where?: FieldTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FieldTypes to fetch.
     */
    orderBy?: FieldTypeOrderByWithRelationInput | FieldTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for FieldTypes.
     */
    cursor?: FieldTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FieldTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FieldTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of FieldTypes.
     */
    distinct?: FieldTypeScalarFieldEnum | FieldTypeScalarFieldEnum[]
  }

  /**
   * FieldType findFirstOrThrow
   */
  export type FieldTypeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    /**
     * Filter, which FieldType to fetch.
     */
    where?: FieldTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FieldTypes to fetch.
     */
    orderBy?: FieldTypeOrderByWithRelationInput | FieldTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for FieldTypes.
     */
    cursor?: FieldTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FieldTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FieldTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of FieldTypes.
     */
    distinct?: FieldTypeScalarFieldEnum | FieldTypeScalarFieldEnum[]
  }

  /**
   * FieldType findMany
   */
  export type FieldTypeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    /**
     * Filter, which FieldTypes to fetch.
     */
    where?: FieldTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FieldTypes to fetch.
     */
    orderBy?: FieldTypeOrderByWithRelationInput | FieldTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing FieldTypes.
     */
    cursor?: FieldTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FieldTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FieldTypes.
     */
    skip?: number
    distinct?: FieldTypeScalarFieldEnum | FieldTypeScalarFieldEnum[]
  }

  /**
   * FieldType create
   */
  export type FieldTypeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    /**
     * The data needed to create a FieldType.
     */
    data: XOR<FieldTypeCreateInput, FieldTypeUncheckedCreateInput>
  }

  /**
   * FieldType createMany
   */
  export type FieldTypeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many FieldTypes.
     */
    data: FieldTypeCreateManyInput | FieldTypeCreateManyInput[]
  }

  /**
   * FieldType update
   */
  export type FieldTypeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    /**
     * The data needed to update a FieldType.
     */
    data: XOR<FieldTypeUpdateInput, FieldTypeUncheckedUpdateInput>
    /**
     * Choose, which FieldType to update.
     */
    where: FieldTypeWhereUniqueInput
  }

  /**
   * FieldType updateMany
   */
  export type FieldTypeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update FieldTypes.
     */
    data: XOR<FieldTypeUpdateManyMutationInput, FieldTypeUncheckedUpdateManyInput>
    /**
     * Filter which FieldTypes to update
     */
    where?: FieldTypeWhereInput
  }

  /**
   * FieldType upsert
   */
  export type FieldTypeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    /**
     * The filter to search for the FieldType to update in case it exists.
     */
    where: FieldTypeWhereUniqueInput
    /**
     * In case the FieldType found by the `where` argument doesn't exist, create a new FieldType with this data.
     */
    create: XOR<FieldTypeCreateInput, FieldTypeUncheckedCreateInput>
    /**
     * In case the FieldType was found with the provided `where` argument, update it with this data.
     */
    update: XOR<FieldTypeUpdateInput, FieldTypeUncheckedUpdateInput>
  }

  /**
   * FieldType delete
   */
  export type FieldTypeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    /**
     * Filter which FieldType to delete.
     */
    where: FieldTypeWhereUniqueInput
  }

  /**
   * FieldType deleteMany
   */
  export type FieldTypeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which FieldTypes to delete
     */
    where?: FieldTypeWhereInput
  }

  /**
   * FieldType.master_grid_lineitem
   */
  export type FieldType$master_grid_lineitemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    where?: MasterEntityLineItemWhereInput
    orderBy?: MasterEntityLineItemOrderByWithRelationInput | MasterEntityLineItemOrderByWithRelationInput[]
    cursor?: MasterEntityLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MasterEntityLineItemScalarFieldEnum | MasterEntityLineItemScalarFieldEnum[]
  }

  /**
   * FieldType.importTemplateLineItem
   */
  export type FieldType$importTemplateLineItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    where?: ImportTemplateLineItemWhereInput
    orderBy?: ImportTemplateLineItemOrderByWithRelationInput | ImportTemplateLineItemOrderByWithRelationInput[]
    cursor?: ImportTemplateLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportTemplateLineItemScalarFieldEnum | ImportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * FieldType.exportTemplateLineItem
   */
  export type FieldType$exportTemplateLineItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    where?: ExportTemplateLineItemWhereInput
    orderBy?: ExportTemplateLineItemOrderByWithRelationInput | ExportTemplateLineItemOrderByWithRelationInput[]
    cursor?: ExportTemplateLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ExportTemplateLineItemScalarFieldEnum | ExportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * FieldType without action
   */
  export type FieldTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
  }


  /**
   * Model menuType
   */

  export type AggregateMenuType = {
    _count: MenuTypeCountAggregateOutputType | null
    _avg: MenuTypeAvgAggregateOutputType | null
    _sum: MenuTypeSumAggregateOutputType | null
    _min: MenuTypeMinAggregateOutputType | null
    _max: MenuTypeMaxAggregateOutputType | null
  }

  export type MenuTypeAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type MenuTypeSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type MenuTypeMinAggregateOutputType = {
    id: number | null
    name: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type MenuTypeMaxAggregateOutputType = {
    id: number | null
    name: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type MenuTypeCountAggregateOutputType = {
    id: number
    name: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type MenuTypeAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type MenuTypeSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type MenuTypeMinAggregateInputType = {
    id?: true
    name?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type MenuTypeMaxAggregateInputType = {
    id?: true
    name?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type MenuTypeCountAggregateInputType = {
    id?: true
    name?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type MenuTypeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which menuType to aggregate.
     */
    where?: menuTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of menuTypes to fetch.
     */
    orderBy?: menuTypeOrderByWithRelationInput | menuTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: menuTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` menuTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` menuTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned menuTypes
    **/
    _count?: true | MenuTypeCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: MenuTypeAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: MenuTypeSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: MenuTypeMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: MenuTypeMaxAggregateInputType
  }

  export type GetMenuTypeAggregateType<T extends MenuTypeAggregateArgs> = {
        [P in keyof T & keyof AggregateMenuType]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateMenuType[P]>
      : GetScalarType<T[P], AggregateMenuType[P]>
  }




  export type menuTypeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: menuTypeWhereInput
    orderBy?: menuTypeOrderByWithAggregationInput | menuTypeOrderByWithAggregationInput[]
    by: MenuTypeScalarFieldEnum[] | MenuTypeScalarFieldEnum
    having?: menuTypeScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: MenuTypeCountAggregateInputType | true
    _avg?: MenuTypeAvgAggregateInputType
    _sum?: MenuTypeSumAggregateInputType
    _min?: MenuTypeMinAggregateInputType
    _max?: MenuTypeMaxAggregateInputType
  }

  export type MenuTypeGroupByOutputType = {
    id: number
    name: string | null
    status_id: number
    company_id: number
    created_at: Date
    _count: MenuTypeCountAggregateOutputType | null
    _avg: MenuTypeAvgAggregateOutputType | null
    _sum: MenuTypeSumAggregateOutputType | null
    _min: MenuTypeMinAggregateOutputType | null
    _max: MenuTypeMaxAggregateOutputType | null
  }

  type GetMenuTypeGroupByPayload<T extends menuTypeGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<MenuTypeGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof MenuTypeGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], MenuTypeGroupByOutputType[P]>
            : GetScalarType<T[P], MenuTypeGroupByOutputType[P]>
        }
      >
    >


  export type menuTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    name?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["menuType"]>


  export type menuTypeSelectScalar = {
    id?: boolean
    name?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type menuTypeInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
  }

  export type $menuTypePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "menuType"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      name: string | null
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["menuType"]>
    composites: {}
  }

  type menuTypeGetPayload<S extends boolean | null | undefined | menuTypeDefaultArgs> = $Result.GetResult<Prisma.$menuTypePayload, S>

  type menuTypeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<menuTypeFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: MenuTypeCountAggregateInputType | true
    }

  export interface menuTypeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['menuType'], meta: { name: 'menuType' } }
    /**
     * Find zero or one MenuType that matches the filter.
     * @param {menuTypeFindUniqueArgs} args - Arguments to find a MenuType
     * @example
     * // Get one MenuType
     * const menuType = await prisma.menuType.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends menuTypeFindUniqueArgs>(args: SelectSubset<T, menuTypeFindUniqueArgs<ExtArgs>>): Prisma__menuTypeClient<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one MenuType that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {menuTypeFindUniqueOrThrowArgs} args - Arguments to find a MenuType
     * @example
     * // Get one MenuType
     * const menuType = await prisma.menuType.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends menuTypeFindUniqueOrThrowArgs>(args: SelectSubset<T, menuTypeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__menuTypeClient<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first MenuType 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 {menuTypeFindFirstArgs} args - Arguments to find a MenuType
     * @example
     * // Get one MenuType
     * const menuType = await prisma.menuType.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends menuTypeFindFirstArgs>(args?: SelectSubset<T, menuTypeFindFirstArgs<ExtArgs>>): Prisma__menuTypeClient<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first MenuType 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 {menuTypeFindFirstOrThrowArgs} args - Arguments to find a MenuType
     * @example
     * // Get one MenuType
     * const menuType = await prisma.menuType.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends menuTypeFindFirstOrThrowArgs>(args?: SelectSubset<T, menuTypeFindFirstOrThrowArgs<ExtArgs>>): Prisma__menuTypeClient<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more MenuTypes 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 {menuTypeFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all MenuTypes
     * const menuTypes = await prisma.menuType.findMany()
     * 
     * // Get first 10 MenuTypes
     * const menuTypes = await prisma.menuType.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const menuTypeWithIdOnly = await prisma.menuType.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends menuTypeFindManyArgs>(args?: SelectSubset<T, menuTypeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a MenuType.
     * @param {menuTypeCreateArgs} args - Arguments to create a MenuType.
     * @example
     * // Create one MenuType
     * const MenuType = await prisma.menuType.create({
     *   data: {
     *     // ... data to create a MenuType
     *   }
     * })
     * 
     */
    create<T extends menuTypeCreateArgs>(args: SelectSubset<T, menuTypeCreateArgs<ExtArgs>>): Prisma__menuTypeClient<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many MenuTypes.
     * @param {menuTypeCreateManyArgs} args - Arguments to create many MenuTypes.
     * @example
     * // Create many MenuTypes
     * const menuType = await prisma.menuType.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends menuTypeCreateManyArgs>(args?: SelectSubset<T, menuTypeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a MenuType.
     * @param {menuTypeDeleteArgs} args - Arguments to delete one MenuType.
     * @example
     * // Delete one MenuType
     * const MenuType = await prisma.menuType.delete({
     *   where: {
     *     // ... filter to delete one MenuType
     *   }
     * })
     * 
     */
    delete<T extends menuTypeDeleteArgs>(args: SelectSubset<T, menuTypeDeleteArgs<ExtArgs>>): Prisma__menuTypeClient<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one MenuType.
     * @param {menuTypeUpdateArgs} args - Arguments to update one MenuType.
     * @example
     * // Update one MenuType
     * const menuType = await prisma.menuType.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends menuTypeUpdateArgs>(args: SelectSubset<T, menuTypeUpdateArgs<ExtArgs>>): Prisma__menuTypeClient<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more MenuTypes.
     * @param {menuTypeDeleteManyArgs} args - Arguments to filter MenuTypes to delete.
     * @example
     * // Delete a few MenuTypes
     * const { count } = await prisma.menuType.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends menuTypeDeleteManyArgs>(args?: SelectSubset<T, menuTypeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more MenuTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {menuTypeUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many MenuTypes
     * const menuType = await prisma.menuType.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends menuTypeUpdateManyArgs>(args: SelectSubset<T, menuTypeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one MenuType.
     * @param {menuTypeUpsertArgs} args - Arguments to update or create a MenuType.
     * @example
     * // Update or create a MenuType
     * const menuType = await prisma.menuType.upsert({
     *   create: {
     *     // ... data to create a MenuType
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the MenuType we want to update
     *   }
     * })
     */
    upsert<T extends menuTypeUpsertArgs>(args: SelectSubset<T, menuTypeUpsertArgs<ExtArgs>>): Prisma__menuTypeClient<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of MenuTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {menuTypeCountArgs} args - Arguments to filter MenuTypes to count.
     * @example
     * // Count the number of MenuTypes
     * const count = await prisma.menuType.count({
     *   where: {
     *     // ... the filter for the MenuTypes we want to count
     *   }
     * })
    **/
    count<T extends menuTypeCountArgs>(
      args?: Subset<T, menuTypeCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], MenuTypeCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a MenuType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {MenuTypeAggregateArgs} 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<T extends MenuTypeAggregateArgs>(args: Subset<T, MenuTypeAggregateArgs>): Prisma.PrismaPromise<GetMenuTypeAggregateType<T>>

    /**
     * Group by MenuType.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {menuTypeGroupByArgs} 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 menuTypeGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: menuTypeGroupByArgs['orderBy'] }
        : { orderBy?: menuTypeGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, menuTypeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMenuTypeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the menuType model
   */
  readonly fields: menuTypeFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for menuType.
   * 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__menuTypeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the menuType model
   */ 
  interface menuTypeFieldRefs {
    readonly id: FieldRef<"menuType", 'Int'>
    readonly name: FieldRef<"menuType", 'String'>
    readonly status_id: FieldRef<"menuType", 'Int'>
    readonly company_id: FieldRef<"menuType", 'Int'>
    readonly created_at: FieldRef<"menuType", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * menuType findUnique
   */
  export type menuTypeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    /**
     * Filter, which menuType to fetch.
     */
    where: menuTypeWhereUniqueInput
  }

  /**
   * menuType findUniqueOrThrow
   */
  export type menuTypeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    /**
     * Filter, which menuType to fetch.
     */
    where: menuTypeWhereUniqueInput
  }

  /**
   * menuType findFirst
   */
  export type menuTypeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    /**
     * Filter, which menuType to fetch.
     */
    where?: menuTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of menuTypes to fetch.
     */
    orderBy?: menuTypeOrderByWithRelationInput | menuTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for menuTypes.
     */
    cursor?: menuTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` menuTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` menuTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of menuTypes.
     */
    distinct?: MenuTypeScalarFieldEnum | MenuTypeScalarFieldEnum[]
  }

  /**
   * menuType findFirstOrThrow
   */
  export type menuTypeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    /**
     * Filter, which menuType to fetch.
     */
    where?: menuTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of menuTypes to fetch.
     */
    orderBy?: menuTypeOrderByWithRelationInput | menuTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for menuTypes.
     */
    cursor?: menuTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` menuTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` menuTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of menuTypes.
     */
    distinct?: MenuTypeScalarFieldEnum | MenuTypeScalarFieldEnum[]
  }

  /**
   * menuType findMany
   */
  export type menuTypeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    /**
     * Filter, which menuTypes to fetch.
     */
    where?: menuTypeWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of menuTypes to fetch.
     */
    orderBy?: menuTypeOrderByWithRelationInput | menuTypeOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing menuTypes.
     */
    cursor?: menuTypeWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` menuTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` menuTypes.
     */
    skip?: number
    distinct?: MenuTypeScalarFieldEnum | MenuTypeScalarFieldEnum[]
  }

  /**
   * menuType create
   */
  export type menuTypeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    /**
     * The data needed to create a menuType.
     */
    data: XOR<menuTypeCreateInput, menuTypeUncheckedCreateInput>
  }

  /**
   * menuType createMany
   */
  export type menuTypeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many menuTypes.
     */
    data: menuTypeCreateManyInput | menuTypeCreateManyInput[]
  }

  /**
   * menuType update
   */
  export type menuTypeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    /**
     * The data needed to update a menuType.
     */
    data: XOR<menuTypeUpdateInput, menuTypeUncheckedUpdateInput>
    /**
     * Choose, which menuType to update.
     */
    where: menuTypeWhereUniqueInput
  }

  /**
   * menuType updateMany
   */
  export type menuTypeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update menuTypes.
     */
    data: XOR<menuTypeUpdateManyMutationInput, menuTypeUncheckedUpdateManyInput>
    /**
     * Filter which menuTypes to update
     */
    where?: menuTypeWhereInput
  }

  /**
   * menuType upsert
   */
  export type menuTypeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    /**
     * The filter to search for the menuType to update in case it exists.
     */
    where: menuTypeWhereUniqueInput
    /**
     * In case the menuType found by the `where` argument doesn't exist, create a new menuType with this data.
     */
    create: XOR<menuTypeCreateInput, menuTypeUncheckedCreateInput>
    /**
     * In case the menuType was found with the provided `where` argument, update it with this data.
     */
    update: XOR<menuTypeUpdateInput, menuTypeUncheckedUpdateInput>
  }

  /**
   * menuType delete
   */
  export type menuTypeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    /**
     * Filter which menuType to delete.
     */
    where: menuTypeWhereUniqueInput
  }

  /**
   * menuType deleteMany
   */
  export type menuTypeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which menuTypes to delete
     */
    where?: menuTypeWhereInput
  }

  /**
   * menuType without action
   */
  export type menuTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
  }


  /**
   * Model EmailTemplateProcess
   */

  export type AggregateEmailTemplateProcess = {
    _count: EmailTemplateProcessCountAggregateOutputType | null
    _avg: EmailTemplateProcessAvgAggregateOutputType | null
    _sum: EmailTemplateProcessSumAggregateOutputType | null
    _min: EmailTemplateProcessMinAggregateOutputType | null
    _max: EmailTemplateProcessMaxAggregateOutputType | null
  }

  export type EmailTemplateProcessAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateProcessSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateProcessMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    query_information: string | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateProcessMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    query_information: string | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateProcessCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    slug: number
    query_information: number
    status_id: number
    company_id: number
    _all: number
  }


  export type EmailTemplateProcessAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateProcessSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateProcessMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    query_information?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateProcessMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    query_information?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateProcessCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    query_information?: true
    status_id?: true
    company_id?: true
    _all?: true
  }

  export type EmailTemplateProcessAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateProcess to aggregate.
     */
    where?: EmailTemplateProcessWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateProcesses to fetch.
     */
    orderBy?: EmailTemplateProcessOrderByWithRelationInput | EmailTemplateProcessOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: EmailTemplateProcessWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateProcesses from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateProcesses.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned EmailTemplateProcesses
    **/
    _count?: true | EmailTemplateProcessCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: EmailTemplateProcessAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: EmailTemplateProcessSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: EmailTemplateProcessMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: EmailTemplateProcessMaxAggregateInputType
  }

  export type GetEmailTemplateProcessAggregateType<T extends EmailTemplateProcessAggregateArgs> = {
        [P in keyof T & keyof AggregateEmailTemplateProcess]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateEmailTemplateProcess[P]>
      : GetScalarType<T[P], AggregateEmailTemplateProcess[P]>
  }




  export type EmailTemplateProcessGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateProcessWhereInput
    orderBy?: EmailTemplateProcessOrderByWithAggregationInput | EmailTemplateProcessOrderByWithAggregationInput[]
    by: EmailTemplateProcessScalarFieldEnum[] | EmailTemplateProcessScalarFieldEnum
    having?: EmailTemplateProcessScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: EmailTemplateProcessCountAggregateInputType | true
    _avg?: EmailTemplateProcessAvgAggregateInputType
    _sum?: EmailTemplateProcessSumAggregateInputType
    _min?: EmailTemplateProcessMinAggregateInputType
    _max?: EmailTemplateProcessMaxAggregateInputType
  }

  export type EmailTemplateProcessGroupByOutputType = {
    id: number
    uuid: string
    name: string
    slug: string
    query_information: string | null
    status_id: number
    company_id: number
    _count: EmailTemplateProcessCountAggregateOutputType | null
    _avg: EmailTemplateProcessAvgAggregateOutputType | null
    _sum: EmailTemplateProcessSumAggregateOutputType | null
    _min: EmailTemplateProcessMinAggregateOutputType | null
    _max: EmailTemplateProcessMaxAggregateOutputType | null
  }

  type GetEmailTemplateProcessGroupByPayload<T extends EmailTemplateProcessGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<EmailTemplateProcessGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof EmailTemplateProcessGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], EmailTemplateProcessGroupByOutputType[P]>
            : GetScalarType<T[P], EmailTemplateProcessGroupByOutputType[P]>
        }
      >
    >


  export type EmailTemplateProcessSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    query_information?: boolean
    status_id?: boolean
    company_id?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    email_template_groups?: boolean | EmailTemplateProcess$email_template_groupsArgs<ExtArgs>
    email_templates?: boolean | EmailTemplateProcess$email_templatesArgs<ExtArgs>
    email_template_assignments?: boolean | EmailTemplateProcess$email_template_assignmentsArgs<ExtArgs>
    _count?: boolean | EmailTemplateProcessCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["emailTemplateProcess"]>


  export type EmailTemplateProcessSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    query_information?: boolean
    status_id?: boolean
    company_id?: boolean
  }

  export type EmailTemplateProcessInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    email_template_groups?: boolean | EmailTemplateProcess$email_template_groupsArgs<ExtArgs>
    email_templates?: boolean | EmailTemplateProcess$email_templatesArgs<ExtArgs>
    email_template_assignments?: boolean | EmailTemplateProcess$email_template_assignmentsArgs<ExtArgs>
    _count?: boolean | EmailTemplateProcessCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $EmailTemplateProcessPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "EmailTemplateProcess"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      email_template_groups: Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>[]
      email_templates: Prisma.$EmailTemplatePayload<ExtArgs>[]
      email_template_assignments: Prisma.$EmailTemplateAssignmentPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      slug: string
      query_information: string | null
      status_id: number
      company_id: number
    }, ExtArgs["result"]["emailTemplateProcess"]>
    composites: {}
  }

  type EmailTemplateProcessGetPayload<S extends boolean | null | undefined | EmailTemplateProcessDefaultArgs> = $Result.GetResult<Prisma.$EmailTemplateProcessPayload, S>

  type EmailTemplateProcessCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<EmailTemplateProcessFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: EmailTemplateProcessCountAggregateInputType | true
    }

  export interface EmailTemplateProcessDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EmailTemplateProcess'], meta: { name: 'EmailTemplateProcess' } }
    /**
     * Find zero or one EmailTemplateProcess that matches the filter.
     * @param {EmailTemplateProcessFindUniqueArgs} args - Arguments to find a EmailTemplateProcess
     * @example
     * // Get one EmailTemplateProcess
     * const emailTemplateProcess = await prisma.emailTemplateProcess.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends EmailTemplateProcessFindUniqueArgs>(args: SelectSubset<T, EmailTemplateProcessFindUniqueArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one EmailTemplateProcess that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {EmailTemplateProcessFindUniqueOrThrowArgs} args - Arguments to find a EmailTemplateProcess
     * @example
     * // Get one EmailTemplateProcess
     * const emailTemplateProcess = await prisma.emailTemplateProcess.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends EmailTemplateProcessFindUniqueOrThrowArgs>(args: SelectSubset<T, EmailTemplateProcessFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first EmailTemplateProcess 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 {EmailTemplateProcessFindFirstArgs} args - Arguments to find a EmailTemplateProcess
     * @example
     * // Get one EmailTemplateProcess
     * const emailTemplateProcess = await prisma.emailTemplateProcess.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends EmailTemplateProcessFindFirstArgs>(args?: SelectSubset<T, EmailTemplateProcessFindFirstArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first EmailTemplateProcess 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 {EmailTemplateProcessFindFirstOrThrowArgs} args - Arguments to find a EmailTemplateProcess
     * @example
     * // Get one EmailTemplateProcess
     * const emailTemplateProcess = await prisma.emailTemplateProcess.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends EmailTemplateProcessFindFirstOrThrowArgs>(args?: SelectSubset<T, EmailTemplateProcessFindFirstOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more EmailTemplateProcesses 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 {EmailTemplateProcessFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all EmailTemplateProcesses
     * const emailTemplateProcesses = await prisma.emailTemplateProcess.findMany()
     * 
     * // Get first 10 EmailTemplateProcesses
     * const emailTemplateProcesses = await prisma.emailTemplateProcess.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const emailTemplateProcessWithIdOnly = await prisma.emailTemplateProcess.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends EmailTemplateProcessFindManyArgs>(args?: SelectSubset<T, EmailTemplateProcessFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a EmailTemplateProcess.
     * @param {EmailTemplateProcessCreateArgs} args - Arguments to create a EmailTemplateProcess.
     * @example
     * // Create one EmailTemplateProcess
     * const EmailTemplateProcess = await prisma.emailTemplateProcess.create({
     *   data: {
     *     // ... data to create a EmailTemplateProcess
     *   }
     * })
     * 
     */
    create<T extends EmailTemplateProcessCreateArgs>(args: SelectSubset<T, EmailTemplateProcessCreateArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many EmailTemplateProcesses.
     * @param {EmailTemplateProcessCreateManyArgs} args - Arguments to create many EmailTemplateProcesses.
     * @example
     * // Create many EmailTemplateProcesses
     * const emailTemplateProcess = await prisma.emailTemplateProcess.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends EmailTemplateProcessCreateManyArgs>(args?: SelectSubset<T, EmailTemplateProcessCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a EmailTemplateProcess.
     * @param {EmailTemplateProcessDeleteArgs} args - Arguments to delete one EmailTemplateProcess.
     * @example
     * // Delete one EmailTemplateProcess
     * const EmailTemplateProcess = await prisma.emailTemplateProcess.delete({
     *   where: {
     *     // ... filter to delete one EmailTemplateProcess
     *   }
     * })
     * 
     */
    delete<T extends EmailTemplateProcessDeleteArgs>(args: SelectSubset<T, EmailTemplateProcessDeleteArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one EmailTemplateProcess.
     * @param {EmailTemplateProcessUpdateArgs} args - Arguments to update one EmailTemplateProcess.
     * @example
     * // Update one EmailTemplateProcess
     * const emailTemplateProcess = await prisma.emailTemplateProcess.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends EmailTemplateProcessUpdateArgs>(args: SelectSubset<T, EmailTemplateProcessUpdateArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more EmailTemplateProcesses.
     * @param {EmailTemplateProcessDeleteManyArgs} args - Arguments to filter EmailTemplateProcesses to delete.
     * @example
     * // Delete a few EmailTemplateProcesses
     * const { count } = await prisma.emailTemplateProcess.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends EmailTemplateProcessDeleteManyArgs>(args?: SelectSubset<T, EmailTemplateProcessDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more EmailTemplateProcesses.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateProcessUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many EmailTemplateProcesses
     * const emailTemplateProcess = await prisma.emailTemplateProcess.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends EmailTemplateProcessUpdateManyArgs>(args: SelectSubset<T, EmailTemplateProcessUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one EmailTemplateProcess.
     * @param {EmailTemplateProcessUpsertArgs} args - Arguments to update or create a EmailTemplateProcess.
     * @example
     * // Update or create a EmailTemplateProcess
     * const emailTemplateProcess = await prisma.emailTemplateProcess.upsert({
     *   create: {
     *     // ... data to create a EmailTemplateProcess
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the EmailTemplateProcess we want to update
     *   }
     * })
     */
    upsert<T extends EmailTemplateProcessUpsertArgs>(args: SelectSubset<T, EmailTemplateProcessUpsertArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of EmailTemplateProcesses.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateProcessCountArgs} args - Arguments to filter EmailTemplateProcesses to count.
     * @example
     * // Count the number of EmailTemplateProcesses
     * const count = await prisma.emailTemplateProcess.count({
     *   where: {
     *     // ... the filter for the EmailTemplateProcesses we want to count
     *   }
     * })
    **/
    count<T extends EmailTemplateProcessCountArgs>(
      args?: Subset<T, EmailTemplateProcessCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], EmailTemplateProcessCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a EmailTemplateProcess.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateProcessAggregateArgs} 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<T extends EmailTemplateProcessAggregateArgs>(args: Subset<T, EmailTemplateProcessAggregateArgs>): Prisma.PrismaPromise<GetEmailTemplateProcessAggregateType<T>>

    /**
     * Group by EmailTemplateProcess.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateProcessGroupByArgs} 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 EmailTemplateProcessGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: EmailTemplateProcessGroupByArgs['orderBy'] }
        : { orderBy?: EmailTemplateProcessGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, EmailTemplateProcessGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailTemplateProcessGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the EmailTemplateProcess model
   */
  readonly fields: EmailTemplateProcessFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for EmailTemplateProcess.
   * 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__EmailTemplateProcessClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    email_template_groups<T extends EmailTemplateProcess$email_template_groupsArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplateProcess$email_template_groupsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "findMany"> | Null>
    email_templates<T extends EmailTemplateProcess$email_templatesArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplateProcess$email_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    email_template_assignments<T extends EmailTemplateProcess$email_template_assignmentsArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplateProcess$email_template_assignmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the EmailTemplateProcess model
   */ 
  interface EmailTemplateProcessFieldRefs {
    readonly id: FieldRef<"EmailTemplateProcess", 'Int'>
    readonly uuid: FieldRef<"EmailTemplateProcess", 'String'>
    readonly name: FieldRef<"EmailTemplateProcess", 'String'>
    readonly slug: FieldRef<"EmailTemplateProcess", 'String'>
    readonly query_information: FieldRef<"EmailTemplateProcess", 'String'>
    readonly status_id: FieldRef<"EmailTemplateProcess", 'Int'>
    readonly company_id: FieldRef<"EmailTemplateProcess", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * EmailTemplateProcess findUnique
   */
  export type EmailTemplateProcessFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcess to fetch.
     */
    where: EmailTemplateProcessWhereUniqueInput
  }

  /**
   * EmailTemplateProcess findUniqueOrThrow
   */
  export type EmailTemplateProcessFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcess to fetch.
     */
    where: EmailTemplateProcessWhereUniqueInput
  }

  /**
   * EmailTemplateProcess findFirst
   */
  export type EmailTemplateProcessFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcess to fetch.
     */
    where?: EmailTemplateProcessWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateProcesses to fetch.
     */
    orderBy?: EmailTemplateProcessOrderByWithRelationInput | EmailTemplateProcessOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateProcesses.
     */
    cursor?: EmailTemplateProcessWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateProcesses from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateProcesses.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateProcesses.
     */
    distinct?: EmailTemplateProcessScalarFieldEnum | EmailTemplateProcessScalarFieldEnum[]
  }

  /**
   * EmailTemplateProcess findFirstOrThrow
   */
  export type EmailTemplateProcessFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcess to fetch.
     */
    where?: EmailTemplateProcessWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateProcesses to fetch.
     */
    orderBy?: EmailTemplateProcessOrderByWithRelationInput | EmailTemplateProcessOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateProcesses.
     */
    cursor?: EmailTemplateProcessWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateProcesses from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateProcesses.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateProcesses.
     */
    distinct?: EmailTemplateProcessScalarFieldEnum | EmailTemplateProcessScalarFieldEnum[]
  }

  /**
   * EmailTemplateProcess findMany
   */
  export type EmailTemplateProcessFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcesses to fetch.
     */
    where?: EmailTemplateProcessWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateProcesses to fetch.
     */
    orderBy?: EmailTemplateProcessOrderByWithRelationInput | EmailTemplateProcessOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing EmailTemplateProcesses.
     */
    cursor?: EmailTemplateProcessWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateProcesses from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateProcesses.
     */
    skip?: number
    distinct?: EmailTemplateProcessScalarFieldEnum | EmailTemplateProcessScalarFieldEnum[]
  }

  /**
   * EmailTemplateProcess create
   */
  export type EmailTemplateProcessCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    /**
     * The data needed to create a EmailTemplateProcess.
     */
    data: XOR<EmailTemplateProcessCreateInput, EmailTemplateProcessUncheckedCreateInput>
  }

  /**
   * EmailTemplateProcess createMany
   */
  export type EmailTemplateProcessCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many EmailTemplateProcesses.
     */
    data: EmailTemplateProcessCreateManyInput | EmailTemplateProcessCreateManyInput[]
  }

  /**
   * EmailTemplateProcess update
   */
  export type EmailTemplateProcessUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    /**
     * The data needed to update a EmailTemplateProcess.
     */
    data: XOR<EmailTemplateProcessUpdateInput, EmailTemplateProcessUncheckedUpdateInput>
    /**
     * Choose, which EmailTemplateProcess to update.
     */
    where: EmailTemplateProcessWhereUniqueInput
  }

  /**
   * EmailTemplateProcess updateMany
   */
  export type EmailTemplateProcessUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update EmailTemplateProcesses.
     */
    data: XOR<EmailTemplateProcessUpdateManyMutationInput, EmailTemplateProcessUncheckedUpdateManyInput>
    /**
     * Filter which EmailTemplateProcesses to update
     */
    where?: EmailTemplateProcessWhereInput
  }

  /**
   * EmailTemplateProcess upsert
   */
  export type EmailTemplateProcessUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    /**
     * The filter to search for the EmailTemplateProcess to update in case it exists.
     */
    where: EmailTemplateProcessWhereUniqueInput
    /**
     * In case the EmailTemplateProcess found by the `where` argument doesn't exist, create a new EmailTemplateProcess with this data.
     */
    create: XOR<EmailTemplateProcessCreateInput, EmailTemplateProcessUncheckedCreateInput>
    /**
     * In case the EmailTemplateProcess was found with the provided `where` argument, update it with this data.
     */
    update: XOR<EmailTemplateProcessUpdateInput, EmailTemplateProcessUncheckedUpdateInput>
  }

  /**
   * EmailTemplateProcess delete
   */
  export type EmailTemplateProcessDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    /**
     * Filter which EmailTemplateProcess to delete.
     */
    where: EmailTemplateProcessWhereUniqueInput
  }

  /**
   * EmailTemplateProcess deleteMany
   */
  export type EmailTemplateProcessDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateProcesses to delete
     */
    where?: EmailTemplateProcessWhereInput
  }

  /**
   * EmailTemplateProcess.email_template_groups
   */
  export type EmailTemplateProcess$email_template_groupsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    where?: EmailTemplateProcessTagsMappingWhereInput
    orderBy?: EmailTemplateProcessTagsMappingOrderByWithRelationInput | EmailTemplateProcessTagsMappingOrderByWithRelationInput[]
    cursor?: EmailTemplateProcessTagsMappingWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateProcessTagsMappingScalarFieldEnum | EmailTemplateProcessTagsMappingScalarFieldEnum[]
  }

  /**
   * EmailTemplateProcess.email_templates
   */
  export type EmailTemplateProcess$email_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    where?: EmailTemplateWhereInput
    orderBy?: EmailTemplateOrderByWithRelationInput | EmailTemplateOrderByWithRelationInput[]
    cursor?: EmailTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateScalarFieldEnum | EmailTemplateScalarFieldEnum[]
  }

  /**
   * EmailTemplateProcess.email_template_assignments
   */
  export type EmailTemplateProcess$email_template_assignmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    where?: EmailTemplateAssignmentWhereInput
    orderBy?: EmailTemplateAssignmentOrderByWithRelationInput | EmailTemplateAssignmentOrderByWithRelationInput[]
    cursor?: EmailTemplateAssignmentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateAssignmentScalarFieldEnum | EmailTemplateAssignmentScalarFieldEnum[]
  }

  /**
   * EmailTemplateProcess without action
   */
  export type EmailTemplateProcessDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
  }


  /**
   * Model EmailTemplateTag
   */

  export type AggregateEmailTemplateTag = {
    _count: EmailTemplateTagCountAggregateOutputType | null
    _avg: EmailTemplateTagAvgAggregateOutputType | null
    _sum: EmailTemplateTagSumAggregateOutputType | null
    _min: EmailTemplateTagMinAggregateOutputType | null
    _max: EmailTemplateTagMaxAggregateOutputType | null
  }

  export type EmailTemplateTagAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateTagSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateTagMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    slug: string | null
    name: string | null
    description: string | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateTagMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    slug: string | null
    name: string | null
    description: string | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateTagCountAggregateOutputType = {
    id: number
    uuid: number
    slug: number
    name: number
    description: number
    status_id: number
    company_id: number
    _all: number
  }


  export type EmailTemplateTagAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateTagSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateTagMinAggregateInputType = {
    id?: true
    uuid?: true
    slug?: true
    name?: true
    description?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateTagMaxAggregateInputType = {
    id?: true
    uuid?: true
    slug?: true
    name?: true
    description?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateTagCountAggregateInputType = {
    id?: true
    uuid?: true
    slug?: true
    name?: true
    description?: true
    status_id?: true
    company_id?: true
    _all?: true
  }

  export type EmailTemplateTagAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateTag to aggregate.
     */
    where?: EmailTemplateTagWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateTags to fetch.
     */
    orderBy?: EmailTemplateTagOrderByWithRelationInput | EmailTemplateTagOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: EmailTemplateTagWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateTags from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateTags.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned EmailTemplateTags
    **/
    _count?: true | EmailTemplateTagCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: EmailTemplateTagAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: EmailTemplateTagSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: EmailTemplateTagMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: EmailTemplateTagMaxAggregateInputType
  }

  export type GetEmailTemplateTagAggregateType<T extends EmailTemplateTagAggregateArgs> = {
        [P in keyof T & keyof AggregateEmailTemplateTag]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateEmailTemplateTag[P]>
      : GetScalarType<T[P], AggregateEmailTemplateTag[P]>
  }




  export type EmailTemplateTagGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateTagWhereInput
    orderBy?: EmailTemplateTagOrderByWithAggregationInput | EmailTemplateTagOrderByWithAggregationInput[]
    by: EmailTemplateTagScalarFieldEnum[] | EmailTemplateTagScalarFieldEnum
    having?: EmailTemplateTagScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: EmailTemplateTagCountAggregateInputType | true
    _avg?: EmailTemplateTagAvgAggregateInputType
    _sum?: EmailTemplateTagSumAggregateInputType
    _min?: EmailTemplateTagMinAggregateInputType
    _max?: EmailTemplateTagMaxAggregateInputType
  }

  export type EmailTemplateTagGroupByOutputType = {
    id: number
    uuid: string
    slug: string
    name: string | null
    description: string | null
    status_id: number
    company_id: number
    _count: EmailTemplateTagCountAggregateOutputType | null
    _avg: EmailTemplateTagAvgAggregateOutputType | null
    _sum: EmailTemplateTagSumAggregateOutputType | null
    _min: EmailTemplateTagMinAggregateOutputType | null
    _max: EmailTemplateTagMaxAggregateOutputType | null
  }

  type GetEmailTemplateTagGroupByPayload<T extends EmailTemplateTagGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<EmailTemplateTagGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof EmailTemplateTagGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], EmailTemplateTagGroupByOutputType[P]>
            : GetScalarType<T[P], EmailTemplateTagGroupByOutputType[P]>
        }
      >
    >


  export type EmailTemplateTagSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    slug?: boolean
    name?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    email_template_groups?: boolean | EmailTemplateTag$email_template_groupsArgs<ExtArgs>
    _count?: boolean | EmailTemplateTagCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["emailTemplateTag"]>


  export type EmailTemplateTagSelectScalar = {
    id?: boolean
    uuid?: boolean
    slug?: boolean
    name?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
  }

  export type EmailTemplateTagInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    email_template_groups?: boolean | EmailTemplateTag$email_template_groupsArgs<ExtArgs>
    _count?: boolean | EmailTemplateTagCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $EmailTemplateTagPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "EmailTemplateTag"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      email_template_groups: Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      slug: string
      name: string | null
      description: string | null
      status_id: number
      company_id: number
    }, ExtArgs["result"]["emailTemplateTag"]>
    composites: {}
  }

  type EmailTemplateTagGetPayload<S extends boolean | null | undefined | EmailTemplateTagDefaultArgs> = $Result.GetResult<Prisma.$EmailTemplateTagPayload, S>

  type EmailTemplateTagCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<EmailTemplateTagFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: EmailTemplateTagCountAggregateInputType | true
    }

  export interface EmailTemplateTagDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EmailTemplateTag'], meta: { name: 'EmailTemplateTag' } }
    /**
     * Find zero or one EmailTemplateTag that matches the filter.
     * @param {EmailTemplateTagFindUniqueArgs} args - Arguments to find a EmailTemplateTag
     * @example
     * // Get one EmailTemplateTag
     * const emailTemplateTag = await prisma.emailTemplateTag.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends EmailTemplateTagFindUniqueArgs>(args: SelectSubset<T, EmailTemplateTagFindUniqueArgs<ExtArgs>>): Prisma__EmailTemplateTagClient<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one EmailTemplateTag that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {EmailTemplateTagFindUniqueOrThrowArgs} args - Arguments to find a EmailTemplateTag
     * @example
     * // Get one EmailTemplateTag
     * const emailTemplateTag = await prisma.emailTemplateTag.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends EmailTemplateTagFindUniqueOrThrowArgs>(args: SelectSubset<T, EmailTemplateTagFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateTagClient<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first EmailTemplateTag 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 {EmailTemplateTagFindFirstArgs} args - Arguments to find a EmailTemplateTag
     * @example
     * // Get one EmailTemplateTag
     * const emailTemplateTag = await prisma.emailTemplateTag.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends EmailTemplateTagFindFirstArgs>(args?: SelectSubset<T, EmailTemplateTagFindFirstArgs<ExtArgs>>): Prisma__EmailTemplateTagClient<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first EmailTemplateTag 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 {EmailTemplateTagFindFirstOrThrowArgs} args - Arguments to find a EmailTemplateTag
     * @example
     * // Get one EmailTemplateTag
     * const emailTemplateTag = await prisma.emailTemplateTag.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends EmailTemplateTagFindFirstOrThrowArgs>(args?: SelectSubset<T, EmailTemplateTagFindFirstOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateTagClient<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more EmailTemplateTags 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 {EmailTemplateTagFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all EmailTemplateTags
     * const emailTemplateTags = await prisma.emailTemplateTag.findMany()
     * 
     * // Get first 10 EmailTemplateTags
     * const emailTemplateTags = await prisma.emailTemplateTag.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const emailTemplateTagWithIdOnly = await prisma.emailTemplateTag.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends EmailTemplateTagFindManyArgs>(args?: SelectSubset<T, EmailTemplateTagFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a EmailTemplateTag.
     * @param {EmailTemplateTagCreateArgs} args - Arguments to create a EmailTemplateTag.
     * @example
     * // Create one EmailTemplateTag
     * const EmailTemplateTag = await prisma.emailTemplateTag.create({
     *   data: {
     *     // ... data to create a EmailTemplateTag
     *   }
     * })
     * 
     */
    create<T extends EmailTemplateTagCreateArgs>(args: SelectSubset<T, EmailTemplateTagCreateArgs<ExtArgs>>): Prisma__EmailTemplateTagClient<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many EmailTemplateTags.
     * @param {EmailTemplateTagCreateManyArgs} args - Arguments to create many EmailTemplateTags.
     * @example
     * // Create many EmailTemplateTags
     * const emailTemplateTag = await prisma.emailTemplateTag.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends EmailTemplateTagCreateManyArgs>(args?: SelectSubset<T, EmailTemplateTagCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a EmailTemplateTag.
     * @param {EmailTemplateTagDeleteArgs} args - Arguments to delete one EmailTemplateTag.
     * @example
     * // Delete one EmailTemplateTag
     * const EmailTemplateTag = await prisma.emailTemplateTag.delete({
     *   where: {
     *     // ... filter to delete one EmailTemplateTag
     *   }
     * })
     * 
     */
    delete<T extends EmailTemplateTagDeleteArgs>(args: SelectSubset<T, EmailTemplateTagDeleteArgs<ExtArgs>>): Prisma__EmailTemplateTagClient<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one EmailTemplateTag.
     * @param {EmailTemplateTagUpdateArgs} args - Arguments to update one EmailTemplateTag.
     * @example
     * // Update one EmailTemplateTag
     * const emailTemplateTag = await prisma.emailTemplateTag.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends EmailTemplateTagUpdateArgs>(args: SelectSubset<T, EmailTemplateTagUpdateArgs<ExtArgs>>): Prisma__EmailTemplateTagClient<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more EmailTemplateTags.
     * @param {EmailTemplateTagDeleteManyArgs} args - Arguments to filter EmailTemplateTags to delete.
     * @example
     * // Delete a few EmailTemplateTags
     * const { count } = await prisma.emailTemplateTag.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends EmailTemplateTagDeleteManyArgs>(args?: SelectSubset<T, EmailTemplateTagDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more EmailTemplateTags.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateTagUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many EmailTemplateTags
     * const emailTemplateTag = await prisma.emailTemplateTag.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends EmailTemplateTagUpdateManyArgs>(args: SelectSubset<T, EmailTemplateTagUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one EmailTemplateTag.
     * @param {EmailTemplateTagUpsertArgs} args - Arguments to update or create a EmailTemplateTag.
     * @example
     * // Update or create a EmailTemplateTag
     * const emailTemplateTag = await prisma.emailTemplateTag.upsert({
     *   create: {
     *     // ... data to create a EmailTemplateTag
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the EmailTemplateTag we want to update
     *   }
     * })
     */
    upsert<T extends EmailTemplateTagUpsertArgs>(args: SelectSubset<T, EmailTemplateTagUpsertArgs<ExtArgs>>): Prisma__EmailTemplateTagClient<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of EmailTemplateTags.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateTagCountArgs} args - Arguments to filter EmailTemplateTags to count.
     * @example
     * // Count the number of EmailTemplateTags
     * const count = await prisma.emailTemplateTag.count({
     *   where: {
     *     // ... the filter for the EmailTemplateTags we want to count
     *   }
     * })
    **/
    count<T extends EmailTemplateTagCountArgs>(
      args?: Subset<T, EmailTemplateTagCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], EmailTemplateTagCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a EmailTemplateTag.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateTagAggregateArgs} 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<T extends EmailTemplateTagAggregateArgs>(args: Subset<T, EmailTemplateTagAggregateArgs>): Prisma.PrismaPromise<GetEmailTemplateTagAggregateType<T>>

    /**
     * Group by EmailTemplateTag.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateTagGroupByArgs} 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 EmailTemplateTagGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: EmailTemplateTagGroupByArgs['orderBy'] }
        : { orderBy?: EmailTemplateTagGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, EmailTemplateTagGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailTemplateTagGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the EmailTemplateTag model
   */
  readonly fields: EmailTemplateTagFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for EmailTemplateTag.
   * 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__EmailTemplateTagClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    email_template_groups<T extends EmailTemplateTag$email_template_groupsArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplateTag$email_template_groupsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the EmailTemplateTag model
   */ 
  interface EmailTemplateTagFieldRefs {
    readonly id: FieldRef<"EmailTemplateTag", 'Int'>
    readonly uuid: FieldRef<"EmailTemplateTag", 'String'>
    readonly slug: FieldRef<"EmailTemplateTag", 'String'>
    readonly name: FieldRef<"EmailTemplateTag", 'String'>
    readonly description: FieldRef<"EmailTemplateTag", 'String'>
    readonly status_id: FieldRef<"EmailTemplateTag", 'Int'>
    readonly company_id: FieldRef<"EmailTemplateTag", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * EmailTemplateTag findUnique
   */
  export type EmailTemplateTagFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateTag to fetch.
     */
    where: EmailTemplateTagWhereUniqueInput
  }

  /**
   * EmailTemplateTag findUniqueOrThrow
   */
  export type EmailTemplateTagFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateTag to fetch.
     */
    where: EmailTemplateTagWhereUniqueInput
  }

  /**
   * EmailTemplateTag findFirst
   */
  export type EmailTemplateTagFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateTag to fetch.
     */
    where?: EmailTemplateTagWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateTags to fetch.
     */
    orderBy?: EmailTemplateTagOrderByWithRelationInput | EmailTemplateTagOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateTags.
     */
    cursor?: EmailTemplateTagWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateTags from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateTags.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateTags.
     */
    distinct?: EmailTemplateTagScalarFieldEnum | EmailTemplateTagScalarFieldEnum[]
  }

  /**
   * EmailTemplateTag findFirstOrThrow
   */
  export type EmailTemplateTagFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateTag to fetch.
     */
    where?: EmailTemplateTagWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateTags to fetch.
     */
    orderBy?: EmailTemplateTagOrderByWithRelationInput | EmailTemplateTagOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateTags.
     */
    cursor?: EmailTemplateTagWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateTags from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateTags.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateTags.
     */
    distinct?: EmailTemplateTagScalarFieldEnum | EmailTemplateTagScalarFieldEnum[]
  }

  /**
   * EmailTemplateTag findMany
   */
  export type EmailTemplateTagFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateTags to fetch.
     */
    where?: EmailTemplateTagWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateTags to fetch.
     */
    orderBy?: EmailTemplateTagOrderByWithRelationInput | EmailTemplateTagOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing EmailTemplateTags.
     */
    cursor?: EmailTemplateTagWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateTags from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateTags.
     */
    skip?: number
    distinct?: EmailTemplateTagScalarFieldEnum | EmailTemplateTagScalarFieldEnum[]
  }

  /**
   * EmailTemplateTag create
   */
  export type EmailTemplateTagCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    /**
     * The data needed to create a EmailTemplateTag.
     */
    data: XOR<EmailTemplateTagCreateInput, EmailTemplateTagUncheckedCreateInput>
  }

  /**
   * EmailTemplateTag createMany
   */
  export type EmailTemplateTagCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many EmailTemplateTags.
     */
    data: EmailTemplateTagCreateManyInput | EmailTemplateTagCreateManyInput[]
  }

  /**
   * EmailTemplateTag update
   */
  export type EmailTemplateTagUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    /**
     * The data needed to update a EmailTemplateTag.
     */
    data: XOR<EmailTemplateTagUpdateInput, EmailTemplateTagUncheckedUpdateInput>
    /**
     * Choose, which EmailTemplateTag to update.
     */
    where: EmailTemplateTagWhereUniqueInput
  }

  /**
   * EmailTemplateTag updateMany
   */
  export type EmailTemplateTagUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update EmailTemplateTags.
     */
    data: XOR<EmailTemplateTagUpdateManyMutationInput, EmailTemplateTagUncheckedUpdateManyInput>
    /**
     * Filter which EmailTemplateTags to update
     */
    where?: EmailTemplateTagWhereInput
  }

  /**
   * EmailTemplateTag upsert
   */
  export type EmailTemplateTagUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    /**
     * The filter to search for the EmailTemplateTag to update in case it exists.
     */
    where: EmailTemplateTagWhereUniqueInput
    /**
     * In case the EmailTemplateTag found by the `where` argument doesn't exist, create a new EmailTemplateTag with this data.
     */
    create: XOR<EmailTemplateTagCreateInput, EmailTemplateTagUncheckedCreateInput>
    /**
     * In case the EmailTemplateTag was found with the provided `where` argument, update it with this data.
     */
    update: XOR<EmailTemplateTagUpdateInput, EmailTemplateTagUncheckedUpdateInput>
  }

  /**
   * EmailTemplateTag delete
   */
  export type EmailTemplateTagDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    /**
     * Filter which EmailTemplateTag to delete.
     */
    where: EmailTemplateTagWhereUniqueInput
  }

  /**
   * EmailTemplateTag deleteMany
   */
  export type EmailTemplateTagDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateTags to delete
     */
    where?: EmailTemplateTagWhereInput
  }

  /**
   * EmailTemplateTag.email_template_groups
   */
  export type EmailTemplateTag$email_template_groupsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    where?: EmailTemplateProcessTagsMappingWhereInput
    orderBy?: EmailTemplateProcessTagsMappingOrderByWithRelationInput | EmailTemplateProcessTagsMappingOrderByWithRelationInput[]
    cursor?: EmailTemplateProcessTagsMappingWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateProcessTagsMappingScalarFieldEnum | EmailTemplateProcessTagsMappingScalarFieldEnum[]
  }

  /**
   * EmailTemplateTag without action
   */
  export type EmailTemplateTagDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
  }


  /**
   * Model EmailTemplateRecipientTag
   */

  export type AggregateEmailTemplateRecipientTag = {
    _count: EmailTemplateRecipientTagCountAggregateOutputType | null
    _avg: EmailTemplateRecipientTagAvgAggregateOutputType | null
    _sum: EmailTemplateRecipientTagSumAggregateOutputType | null
    _min: EmailTemplateRecipientTagMinAggregateOutputType | null
    _max: EmailTemplateRecipientTagMaxAggregateOutputType | null
  }

  export type EmailTemplateRecipientTagAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateRecipientTagSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateRecipientTagMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    slug: string | null
    name: string | null
    description: string | null
    query_information: string | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateRecipientTagMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    slug: string | null
    name: string | null
    description: string | null
    query_information: string | null
    status_id: number | null
    company_id: number | null
  }

  export type EmailTemplateRecipientTagCountAggregateOutputType = {
    id: number
    uuid: number
    slug: number
    name: number
    description: number
    query_information: number
    status_id: number
    company_id: number
    _all: number
  }


  export type EmailTemplateRecipientTagAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateRecipientTagSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateRecipientTagMinAggregateInputType = {
    id?: true
    uuid?: true
    slug?: true
    name?: true
    description?: true
    query_information?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateRecipientTagMaxAggregateInputType = {
    id?: true
    uuid?: true
    slug?: true
    name?: true
    description?: true
    query_information?: true
    status_id?: true
    company_id?: true
  }

  export type EmailTemplateRecipientTagCountAggregateInputType = {
    id?: true
    uuid?: true
    slug?: true
    name?: true
    description?: true
    query_information?: true
    status_id?: true
    company_id?: true
    _all?: true
  }

  export type EmailTemplateRecipientTagAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateRecipientTag to aggregate.
     */
    where?: EmailTemplateRecipientTagWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateRecipientTags to fetch.
     */
    orderBy?: EmailTemplateRecipientTagOrderByWithRelationInput | EmailTemplateRecipientTagOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: EmailTemplateRecipientTagWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateRecipientTags from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateRecipientTags.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned EmailTemplateRecipientTags
    **/
    _count?: true | EmailTemplateRecipientTagCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: EmailTemplateRecipientTagAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: EmailTemplateRecipientTagSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: EmailTemplateRecipientTagMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: EmailTemplateRecipientTagMaxAggregateInputType
  }

  export type GetEmailTemplateRecipientTagAggregateType<T extends EmailTemplateRecipientTagAggregateArgs> = {
        [P in keyof T & keyof AggregateEmailTemplateRecipientTag]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateEmailTemplateRecipientTag[P]>
      : GetScalarType<T[P], AggregateEmailTemplateRecipientTag[P]>
  }




  export type EmailTemplateRecipientTagGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateRecipientTagWhereInput
    orderBy?: EmailTemplateRecipientTagOrderByWithAggregationInput | EmailTemplateRecipientTagOrderByWithAggregationInput[]
    by: EmailTemplateRecipientTagScalarFieldEnum[] | EmailTemplateRecipientTagScalarFieldEnum
    having?: EmailTemplateRecipientTagScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: EmailTemplateRecipientTagCountAggregateInputType | true
    _avg?: EmailTemplateRecipientTagAvgAggregateInputType
    _sum?: EmailTemplateRecipientTagSumAggregateInputType
    _min?: EmailTemplateRecipientTagMinAggregateInputType
    _max?: EmailTemplateRecipientTagMaxAggregateInputType
  }

  export type EmailTemplateRecipientTagGroupByOutputType = {
    id: number
    uuid: string
    slug: string
    name: string | null
    description: string | null
    query_information: string | null
    status_id: number
    company_id: number
    _count: EmailTemplateRecipientTagCountAggregateOutputType | null
    _avg: EmailTemplateRecipientTagAvgAggregateOutputType | null
    _sum: EmailTemplateRecipientTagSumAggregateOutputType | null
    _min: EmailTemplateRecipientTagMinAggregateOutputType | null
    _max: EmailTemplateRecipientTagMaxAggregateOutputType | null
  }

  type GetEmailTemplateRecipientTagGroupByPayload<T extends EmailTemplateRecipientTagGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<EmailTemplateRecipientTagGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof EmailTemplateRecipientTagGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], EmailTemplateRecipientTagGroupByOutputType[P]>
            : GetScalarType<T[P], EmailTemplateRecipientTagGroupByOutputType[P]>
        }
      >
    >


  export type EmailTemplateRecipientTagSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    slug?: boolean
    name?: boolean
    description?: boolean
    query_information?: boolean
    status_id?: boolean
    company_id?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["emailTemplateRecipientTag"]>


  export type EmailTemplateRecipientTagSelectScalar = {
    id?: boolean
    uuid?: boolean
    slug?: boolean
    name?: boolean
    description?: boolean
    query_information?: boolean
    status_id?: boolean
    company_id?: boolean
  }

  export type EmailTemplateRecipientTagInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
  }

  export type $EmailTemplateRecipientTagPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "EmailTemplateRecipientTag"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      slug: string
      name: string | null
      description: string | null
      query_information: string | null
      status_id: number
      company_id: number
    }, ExtArgs["result"]["emailTemplateRecipientTag"]>
    composites: {}
  }

  type EmailTemplateRecipientTagGetPayload<S extends boolean | null | undefined | EmailTemplateRecipientTagDefaultArgs> = $Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload, S>

  type EmailTemplateRecipientTagCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<EmailTemplateRecipientTagFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: EmailTemplateRecipientTagCountAggregateInputType | true
    }

  export interface EmailTemplateRecipientTagDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EmailTemplateRecipientTag'], meta: { name: 'EmailTemplateRecipientTag' } }
    /**
     * Find zero or one EmailTemplateRecipientTag that matches the filter.
     * @param {EmailTemplateRecipientTagFindUniqueArgs} args - Arguments to find a EmailTemplateRecipientTag
     * @example
     * // Get one EmailTemplateRecipientTag
     * const emailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends EmailTemplateRecipientTagFindUniqueArgs>(args: SelectSubset<T, EmailTemplateRecipientTagFindUniqueArgs<ExtArgs>>): Prisma__EmailTemplateRecipientTagClient<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one EmailTemplateRecipientTag that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {EmailTemplateRecipientTagFindUniqueOrThrowArgs} args - Arguments to find a EmailTemplateRecipientTag
     * @example
     * // Get one EmailTemplateRecipientTag
     * const emailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends EmailTemplateRecipientTagFindUniqueOrThrowArgs>(args: SelectSubset<T, EmailTemplateRecipientTagFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateRecipientTagClient<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first EmailTemplateRecipientTag 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 {EmailTemplateRecipientTagFindFirstArgs} args - Arguments to find a EmailTemplateRecipientTag
     * @example
     * // Get one EmailTemplateRecipientTag
     * const emailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends EmailTemplateRecipientTagFindFirstArgs>(args?: SelectSubset<T, EmailTemplateRecipientTagFindFirstArgs<ExtArgs>>): Prisma__EmailTemplateRecipientTagClient<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first EmailTemplateRecipientTag 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 {EmailTemplateRecipientTagFindFirstOrThrowArgs} args - Arguments to find a EmailTemplateRecipientTag
     * @example
     * // Get one EmailTemplateRecipientTag
     * const emailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends EmailTemplateRecipientTagFindFirstOrThrowArgs>(args?: SelectSubset<T, EmailTemplateRecipientTagFindFirstOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateRecipientTagClient<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more EmailTemplateRecipientTags 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 {EmailTemplateRecipientTagFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all EmailTemplateRecipientTags
     * const emailTemplateRecipientTags = await prisma.emailTemplateRecipientTag.findMany()
     * 
     * // Get first 10 EmailTemplateRecipientTags
     * const emailTemplateRecipientTags = await prisma.emailTemplateRecipientTag.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const emailTemplateRecipientTagWithIdOnly = await prisma.emailTemplateRecipientTag.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends EmailTemplateRecipientTagFindManyArgs>(args?: SelectSubset<T, EmailTemplateRecipientTagFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a EmailTemplateRecipientTag.
     * @param {EmailTemplateRecipientTagCreateArgs} args - Arguments to create a EmailTemplateRecipientTag.
     * @example
     * // Create one EmailTemplateRecipientTag
     * const EmailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.create({
     *   data: {
     *     // ... data to create a EmailTemplateRecipientTag
     *   }
     * })
     * 
     */
    create<T extends EmailTemplateRecipientTagCreateArgs>(args: SelectSubset<T, EmailTemplateRecipientTagCreateArgs<ExtArgs>>): Prisma__EmailTemplateRecipientTagClient<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many EmailTemplateRecipientTags.
     * @param {EmailTemplateRecipientTagCreateManyArgs} args - Arguments to create many EmailTemplateRecipientTags.
     * @example
     * // Create many EmailTemplateRecipientTags
     * const emailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends EmailTemplateRecipientTagCreateManyArgs>(args?: SelectSubset<T, EmailTemplateRecipientTagCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a EmailTemplateRecipientTag.
     * @param {EmailTemplateRecipientTagDeleteArgs} args - Arguments to delete one EmailTemplateRecipientTag.
     * @example
     * // Delete one EmailTemplateRecipientTag
     * const EmailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.delete({
     *   where: {
     *     // ... filter to delete one EmailTemplateRecipientTag
     *   }
     * })
     * 
     */
    delete<T extends EmailTemplateRecipientTagDeleteArgs>(args: SelectSubset<T, EmailTemplateRecipientTagDeleteArgs<ExtArgs>>): Prisma__EmailTemplateRecipientTagClient<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one EmailTemplateRecipientTag.
     * @param {EmailTemplateRecipientTagUpdateArgs} args - Arguments to update one EmailTemplateRecipientTag.
     * @example
     * // Update one EmailTemplateRecipientTag
     * const emailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends EmailTemplateRecipientTagUpdateArgs>(args: SelectSubset<T, EmailTemplateRecipientTagUpdateArgs<ExtArgs>>): Prisma__EmailTemplateRecipientTagClient<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more EmailTemplateRecipientTags.
     * @param {EmailTemplateRecipientTagDeleteManyArgs} args - Arguments to filter EmailTemplateRecipientTags to delete.
     * @example
     * // Delete a few EmailTemplateRecipientTags
     * const { count } = await prisma.emailTemplateRecipientTag.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends EmailTemplateRecipientTagDeleteManyArgs>(args?: SelectSubset<T, EmailTemplateRecipientTagDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more EmailTemplateRecipientTags.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateRecipientTagUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many EmailTemplateRecipientTags
     * const emailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends EmailTemplateRecipientTagUpdateManyArgs>(args: SelectSubset<T, EmailTemplateRecipientTagUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one EmailTemplateRecipientTag.
     * @param {EmailTemplateRecipientTagUpsertArgs} args - Arguments to update or create a EmailTemplateRecipientTag.
     * @example
     * // Update or create a EmailTemplateRecipientTag
     * const emailTemplateRecipientTag = await prisma.emailTemplateRecipientTag.upsert({
     *   create: {
     *     // ... data to create a EmailTemplateRecipientTag
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the EmailTemplateRecipientTag we want to update
     *   }
     * })
     */
    upsert<T extends EmailTemplateRecipientTagUpsertArgs>(args: SelectSubset<T, EmailTemplateRecipientTagUpsertArgs<ExtArgs>>): Prisma__EmailTemplateRecipientTagClient<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of EmailTemplateRecipientTags.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateRecipientTagCountArgs} args - Arguments to filter EmailTemplateRecipientTags to count.
     * @example
     * // Count the number of EmailTemplateRecipientTags
     * const count = await prisma.emailTemplateRecipientTag.count({
     *   where: {
     *     // ... the filter for the EmailTemplateRecipientTags we want to count
     *   }
     * })
    **/
    count<T extends EmailTemplateRecipientTagCountArgs>(
      args?: Subset<T, EmailTemplateRecipientTagCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], EmailTemplateRecipientTagCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a EmailTemplateRecipientTag.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateRecipientTagAggregateArgs} 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<T extends EmailTemplateRecipientTagAggregateArgs>(args: Subset<T, EmailTemplateRecipientTagAggregateArgs>): Prisma.PrismaPromise<GetEmailTemplateRecipientTagAggregateType<T>>

    /**
     * Group by EmailTemplateRecipientTag.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateRecipientTagGroupByArgs} 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 EmailTemplateRecipientTagGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: EmailTemplateRecipientTagGroupByArgs['orderBy'] }
        : { orderBy?: EmailTemplateRecipientTagGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, EmailTemplateRecipientTagGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailTemplateRecipientTagGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the EmailTemplateRecipientTag model
   */
  readonly fields: EmailTemplateRecipientTagFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for EmailTemplateRecipientTag.
   * 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__EmailTemplateRecipientTagClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the EmailTemplateRecipientTag model
   */ 
  interface EmailTemplateRecipientTagFieldRefs {
    readonly id: FieldRef<"EmailTemplateRecipientTag", 'Int'>
    readonly uuid: FieldRef<"EmailTemplateRecipientTag", 'String'>
    readonly slug: FieldRef<"EmailTemplateRecipientTag", 'String'>
    readonly name: FieldRef<"EmailTemplateRecipientTag", 'String'>
    readonly description: FieldRef<"EmailTemplateRecipientTag", 'String'>
    readonly query_information: FieldRef<"EmailTemplateRecipientTag", 'String'>
    readonly status_id: FieldRef<"EmailTemplateRecipientTag", 'Int'>
    readonly company_id: FieldRef<"EmailTemplateRecipientTag", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * EmailTemplateRecipientTag findUnique
   */
  export type EmailTemplateRecipientTagFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateRecipientTag to fetch.
     */
    where: EmailTemplateRecipientTagWhereUniqueInput
  }

  /**
   * EmailTemplateRecipientTag findUniqueOrThrow
   */
  export type EmailTemplateRecipientTagFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateRecipientTag to fetch.
     */
    where: EmailTemplateRecipientTagWhereUniqueInput
  }

  /**
   * EmailTemplateRecipientTag findFirst
   */
  export type EmailTemplateRecipientTagFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateRecipientTag to fetch.
     */
    where?: EmailTemplateRecipientTagWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateRecipientTags to fetch.
     */
    orderBy?: EmailTemplateRecipientTagOrderByWithRelationInput | EmailTemplateRecipientTagOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateRecipientTags.
     */
    cursor?: EmailTemplateRecipientTagWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateRecipientTags from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateRecipientTags.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateRecipientTags.
     */
    distinct?: EmailTemplateRecipientTagScalarFieldEnum | EmailTemplateRecipientTagScalarFieldEnum[]
  }

  /**
   * EmailTemplateRecipientTag findFirstOrThrow
   */
  export type EmailTemplateRecipientTagFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateRecipientTag to fetch.
     */
    where?: EmailTemplateRecipientTagWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateRecipientTags to fetch.
     */
    orderBy?: EmailTemplateRecipientTagOrderByWithRelationInput | EmailTemplateRecipientTagOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateRecipientTags.
     */
    cursor?: EmailTemplateRecipientTagWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateRecipientTags from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateRecipientTags.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateRecipientTags.
     */
    distinct?: EmailTemplateRecipientTagScalarFieldEnum | EmailTemplateRecipientTagScalarFieldEnum[]
  }

  /**
   * EmailTemplateRecipientTag findMany
   */
  export type EmailTemplateRecipientTagFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateRecipientTags to fetch.
     */
    where?: EmailTemplateRecipientTagWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateRecipientTags to fetch.
     */
    orderBy?: EmailTemplateRecipientTagOrderByWithRelationInput | EmailTemplateRecipientTagOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing EmailTemplateRecipientTags.
     */
    cursor?: EmailTemplateRecipientTagWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateRecipientTags from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateRecipientTags.
     */
    skip?: number
    distinct?: EmailTemplateRecipientTagScalarFieldEnum | EmailTemplateRecipientTagScalarFieldEnum[]
  }

  /**
   * EmailTemplateRecipientTag create
   */
  export type EmailTemplateRecipientTagCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    /**
     * The data needed to create a EmailTemplateRecipientTag.
     */
    data: XOR<EmailTemplateRecipientTagCreateInput, EmailTemplateRecipientTagUncheckedCreateInput>
  }

  /**
   * EmailTemplateRecipientTag createMany
   */
  export type EmailTemplateRecipientTagCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many EmailTemplateRecipientTags.
     */
    data: EmailTemplateRecipientTagCreateManyInput | EmailTemplateRecipientTagCreateManyInput[]
  }

  /**
   * EmailTemplateRecipientTag update
   */
  export type EmailTemplateRecipientTagUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    /**
     * The data needed to update a EmailTemplateRecipientTag.
     */
    data: XOR<EmailTemplateRecipientTagUpdateInput, EmailTemplateRecipientTagUncheckedUpdateInput>
    /**
     * Choose, which EmailTemplateRecipientTag to update.
     */
    where: EmailTemplateRecipientTagWhereUniqueInput
  }

  /**
   * EmailTemplateRecipientTag updateMany
   */
  export type EmailTemplateRecipientTagUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update EmailTemplateRecipientTags.
     */
    data: XOR<EmailTemplateRecipientTagUpdateManyMutationInput, EmailTemplateRecipientTagUncheckedUpdateManyInput>
    /**
     * Filter which EmailTemplateRecipientTags to update
     */
    where?: EmailTemplateRecipientTagWhereInput
  }

  /**
   * EmailTemplateRecipientTag upsert
   */
  export type EmailTemplateRecipientTagUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    /**
     * The filter to search for the EmailTemplateRecipientTag to update in case it exists.
     */
    where: EmailTemplateRecipientTagWhereUniqueInput
    /**
     * In case the EmailTemplateRecipientTag found by the `where` argument doesn't exist, create a new EmailTemplateRecipientTag with this data.
     */
    create: XOR<EmailTemplateRecipientTagCreateInput, EmailTemplateRecipientTagUncheckedCreateInput>
    /**
     * In case the EmailTemplateRecipientTag was found with the provided `where` argument, update it with this data.
     */
    update: XOR<EmailTemplateRecipientTagUpdateInput, EmailTemplateRecipientTagUncheckedUpdateInput>
  }

  /**
   * EmailTemplateRecipientTag delete
   */
  export type EmailTemplateRecipientTagDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    /**
     * Filter which EmailTemplateRecipientTag to delete.
     */
    where: EmailTemplateRecipientTagWhereUniqueInput
  }

  /**
   * EmailTemplateRecipientTag deleteMany
   */
  export type EmailTemplateRecipientTagDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateRecipientTags to delete
     */
    where?: EmailTemplateRecipientTagWhereInput
  }

  /**
   * EmailTemplateRecipientTag without action
   */
  export type EmailTemplateRecipientTagDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
  }


  /**
   * Model EmailTemplateProcessTagsMapping
   */

  export type AggregateEmailTemplateProcessTagsMapping = {
    _count: EmailTemplateProcessTagsMappingCountAggregateOutputType | null
    _avg: EmailTemplateProcessTagsMappingAvgAggregateOutputType | null
    _sum: EmailTemplateProcessTagsMappingSumAggregateOutputType | null
    _min: EmailTemplateProcessTagsMappingMinAggregateOutputType | null
    _max: EmailTemplateProcessTagsMappingMaxAggregateOutputType | null
  }

  export type EmailTemplateProcessTagsMappingAvgAggregateOutputType = {
    email_template_process_id: number | null
    email_template_tag_id: number | null
    company_id: number | null
  }

  export type EmailTemplateProcessTagsMappingSumAggregateOutputType = {
    email_template_process_id: number | null
    email_template_tag_id: number | null
    company_id: number | null
  }

  export type EmailTemplateProcessTagsMappingMinAggregateOutputType = {
    email_template_process_id: number | null
    email_template_tag_id: number | null
    company_id: number | null
  }

  export type EmailTemplateProcessTagsMappingMaxAggregateOutputType = {
    email_template_process_id: number | null
    email_template_tag_id: number | null
    company_id: number | null
  }

  export type EmailTemplateProcessTagsMappingCountAggregateOutputType = {
    email_template_process_id: number
    email_template_tag_id: number
    company_id: number
    _all: number
  }


  export type EmailTemplateProcessTagsMappingAvgAggregateInputType = {
    email_template_process_id?: true
    email_template_tag_id?: true
    company_id?: true
  }

  export type EmailTemplateProcessTagsMappingSumAggregateInputType = {
    email_template_process_id?: true
    email_template_tag_id?: true
    company_id?: true
  }

  export type EmailTemplateProcessTagsMappingMinAggregateInputType = {
    email_template_process_id?: true
    email_template_tag_id?: true
    company_id?: true
  }

  export type EmailTemplateProcessTagsMappingMaxAggregateInputType = {
    email_template_process_id?: true
    email_template_tag_id?: true
    company_id?: true
  }

  export type EmailTemplateProcessTagsMappingCountAggregateInputType = {
    email_template_process_id?: true
    email_template_tag_id?: true
    company_id?: true
    _all?: true
  }

  export type EmailTemplateProcessTagsMappingAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateProcessTagsMapping to aggregate.
     */
    where?: EmailTemplateProcessTagsMappingWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateProcessTagsMappings to fetch.
     */
    orderBy?: EmailTemplateProcessTagsMappingOrderByWithRelationInput | EmailTemplateProcessTagsMappingOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: EmailTemplateProcessTagsMappingWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateProcessTagsMappings from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateProcessTagsMappings.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned EmailTemplateProcessTagsMappings
    **/
    _count?: true | EmailTemplateProcessTagsMappingCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: EmailTemplateProcessTagsMappingAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: EmailTemplateProcessTagsMappingSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: EmailTemplateProcessTagsMappingMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: EmailTemplateProcessTagsMappingMaxAggregateInputType
  }

  export type GetEmailTemplateProcessTagsMappingAggregateType<T extends EmailTemplateProcessTagsMappingAggregateArgs> = {
        [P in keyof T & keyof AggregateEmailTemplateProcessTagsMapping]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateEmailTemplateProcessTagsMapping[P]>
      : GetScalarType<T[P], AggregateEmailTemplateProcessTagsMapping[P]>
  }




  export type EmailTemplateProcessTagsMappingGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateProcessTagsMappingWhereInput
    orderBy?: EmailTemplateProcessTagsMappingOrderByWithAggregationInput | EmailTemplateProcessTagsMappingOrderByWithAggregationInput[]
    by: EmailTemplateProcessTagsMappingScalarFieldEnum[] | EmailTemplateProcessTagsMappingScalarFieldEnum
    having?: EmailTemplateProcessTagsMappingScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: EmailTemplateProcessTagsMappingCountAggregateInputType | true
    _avg?: EmailTemplateProcessTagsMappingAvgAggregateInputType
    _sum?: EmailTemplateProcessTagsMappingSumAggregateInputType
    _min?: EmailTemplateProcessTagsMappingMinAggregateInputType
    _max?: EmailTemplateProcessTagsMappingMaxAggregateInputType
  }

  export type EmailTemplateProcessTagsMappingGroupByOutputType = {
    email_template_process_id: number
    email_template_tag_id: number
    company_id: number
    _count: EmailTemplateProcessTagsMappingCountAggregateOutputType | null
    _avg: EmailTemplateProcessTagsMappingAvgAggregateOutputType | null
    _sum: EmailTemplateProcessTagsMappingSumAggregateOutputType | null
    _min: EmailTemplateProcessTagsMappingMinAggregateOutputType | null
    _max: EmailTemplateProcessTagsMappingMaxAggregateOutputType | null
  }

  type GetEmailTemplateProcessTagsMappingGroupByPayload<T extends EmailTemplateProcessTagsMappingGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<EmailTemplateProcessTagsMappingGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof EmailTemplateProcessTagsMappingGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], EmailTemplateProcessTagsMappingGroupByOutputType[P]>
            : GetScalarType<T[P], EmailTemplateProcessTagsMappingGroupByOutputType[P]>
        }
      >
    >


  export type EmailTemplateProcessTagsMappingSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    email_template_process_id?: boolean
    email_template_tag_id?: boolean
    company_id?: boolean
    email_template_process?: boolean | EmailTemplateProcessDefaultArgs<ExtArgs>
    email_template_tag?: boolean | EmailTemplateTagDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["emailTemplateProcessTagsMapping"]>


  export type EmailTemplateProcessTagsMappingSelectScalar = {
    email_template_process_id?: boolean
    email_template_tag_id?: boolean
    company_id?: boolean
  }

  export type EmailTemplateProcessTagsMappingInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    email_template_process?: boolean | EmailTemplateProcessDefaultArgs<ExtArgs>
    email_template_tag?: boolean | EmailTemplateTagDefaultArgs<ExtArgs>
  }

  export type $EmailTemplateProcessTagsMappingPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "EmailTemplateProcessTagsMapping"
    objects: {
      email_template_process: Prisma.$EmailTemplateProcessPayload<ExtArgs>
      email_template_tag: Prisma.$EmailTemplateTagPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      email_template_process_id: number
      email_template_tag_id: number
      company_id: number
    }, ExtArgs["result"]["emailTemplateProcessTagsMapping"]>
    composites: {}
  }

  type EmailTemplateProcessTagsMappingGetPayload<S extends boolean | null | undefined | EmailTemplateProcessTagsMappingDefaultArgs> = $Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload, S>

  type EmailTemplateProcessTagsMappingCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<EmailTemplateProcessTagsMappingFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: EmailTemplateProcessTagsMappingCountAggregateInputType | true
    }

  export interface EmailTemplateProcessTagsMappingDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EmailTemplateProcessTagsMapping'], meta: { name: 'EmailTemplateProcessTagsMapping' } }
    /**
     * Find zero or one EmailTemplateProcessTagsMapping that matches the filter.
     * @param {EmailTemplateProcessTagsMappingFindUniqueArgs} args - Arguments to find a EmailTemplateProcessTagsMapping
     * @example
     * // Get one EmailTemplateProcessTagsMapping
     * const emailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends EmailTemplateProcessTagsMappingFindUniqueArgs>(args: SelectSubset<T, EmailTemplateProcessTagsMappingFindUniqueArgs<ExtArgs>>): Prisma__EmailTemplateProcessTagsMappingClient<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one EmailTemplateProcessTagsMapping that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {EmailTemplateProcessTagsMappingFindUniqueOrThrowArgs} args - Arguments to find a EmailTemplateProcessTagsMapping
     * @example
     * // Get one EmailTemplateProcessTagsMapping
     * const emailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends EmailTemplateProcessTagsMappingFindUniqueOrThrowArgs>(args: SelectSubset<T, EmailTemplateProcessTagsMappingFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateProcessTagsMappingClient<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first EmailTemplateProcessTagsMapping 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 {EmailTemplateProcessTagsMappingFindFirstArgs} args - Arguments to find a EmailTemplateProcessTagsMapping
     * @example
     * // Get one EmailTemplateProcessTagsMapping
     * const emailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends EmailTemplateProcessTagsMappingFindFirstArgs>(args?: SelectSubset<T, EmailTemplateProcessTagsMappingFindFirstArgs<ExtArgs>>): Prisma__EmailTemplateProcessTagsMappingClient<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first EmailTemplateProcessTagsMapping 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 {EmailTemplateProcessTagsMappingFindFirstOrThrowArgs} args - Arguments to find a EmailTemplateProcessTagsMapping
     * @example
     * // Get one EmailTemplateProcessTagsMapping
     * const emailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends EmailTemplateProcessTagsMappingFindFirstOrThrowArgs>(args?: SelectSubset<T, EmailTemplateProcessTagsMappingFindFirstOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateProcessTagsMappingClient<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more EmailTemplateProcessTagsMappings 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 {EmailTemplateProcessTagsMappingFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all EmailTemplateProcessTagsMappings
     * const emailTemplateProcessTagsMappings = await prisma.emailTemplateProcessTagsMapping.findMany()
     * 
     * // Get first 10 EmailTemplateProcessTagsMappings
     * const emailTemplateProcessTagsMappings = await prisma.emailTemplateProcessTagsMapping.findMany({ take: 10 })
     * 
     * // Only select the `email_template_process_id`
     * const emailTemplateProcessTagsMappingWithEmail_template_process_idOnly = await prisma.emailTemplateProcessTagsMapping.findMany({ select: { email_template_process_id: true } })
     * 
     */
    findMany<T extends EmailTemplateProcessTagsMappingFindManyArgs>(args?: SelectSubset<T, EmailTemplateProcessTagsMappingFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a EmailTemplateProcessTagsMapping.
     * @param {EmailTemplateProcessTagsMappingCreateArgs} args - Arguments to create a EmailTemplateProcessTagsMapping.
     * @example
     * // Create one EmailTemplateProcessTagsMapping
     * const EmailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.create({
     *   data: {
     *     // ... data to create a EmailTemplateProcessTagsMapping
     *   }
     * })
     * 
     */
    create<T extends EmailTemplateProcessTagsMappingCreateArgs>(args: SelectSubset<T, EmailTemplateProcessTagsMappingCreateArgs<ExtArgs>>): Prisma__EmailTemplateProcessTagsMappingClient<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many EmailTemplateProcessTagsMappings.
     * @param {EmailTemplateProcessTagsMappingCreateManyArgs} args - Arguments to create many EmailTemplateProcessTagsMappings.
     * @example
     * // Create many EmailTemplateProcessTagsMappings
     * const emailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends EmailTemplateProcessTagsMappingCreateManyArgs>(args?: SelectSubset<T, EmailTemplateProcessTagsMappingCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a EmailTemplateProcessTagsMapping.
     * @param {EmailTemplateProcessTagsMappingDeleteArgs} args - Arguments to delete one EmailTemplateProcessTagsMapping.
     * @example
     * // Delete one EmailTemplateProcessTagsMapping
     * const EmailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.delete({
     *   where: {
     *     // ... filter to delete one EmailTemplateProcessTagsMapping
     *   }
     * })
     * 
     */
    delete<T extends EmailTemplateProcessTagsMappingDeleteArgs>(args: SelectSubset<T, EmailTemplateProcessTagsMappingDeleteArgs<ExtArgs>>): Prisma__EmailTemplateProcessTagsMappingClient<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one EmailTemplateProcessTagsMapping.
     * @param {EmailTemplateProcessTagsMappingUpdateArgs} args - Arguments to update one EmailTemplateProcessTagsMapping.
     * @example
     * // Update one EmailTemplateProcessTagsMapping
     * const emailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends EmailTemplateProcessTagsMappingUpdateArgs>(args: SelectSubset<T, EmailTemplateProcessTagsMappingUpdateArgs<ExtArgs>>): Prisma__EmailTemplateProcessTagsMappingClient<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more EmailTemplateProcessTagsMappings.
     * @param {EmailTemplateProcessTagsMappingDeleteManyArgs} args - Arguments to filter EmailTemplateProcessTagsMappings to delete.
     * @example
     * // Delete a few EmailTemplateProcessTagsMappings
     * const { count } = await prisma.emailTemplateProcessTagsMapping.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends EmailTemplateProcessTagsMappingDeleteManyArgs>(args?: SelectSubset<T, EmailTemplateProcessTagsMappingDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more EmailTemplateProcessTagsMappings.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateProcessTagsMappingUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many EmailTemplateProcessTagsMappings
     * const emailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends EmailTemplateProcessTagsMappingUpdateManyArgs>(args: SelectSubset<T, EmailTemplateProcessTagsMappingUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one EmailTemplateProcessTagsMapping.
     * @param {EmailTemplateProcessTagsMappingUpsertArgs} args - Arguments to update or create a EmailTemplateProcessTagsMapping.
     * @example
     * // Update or create a EmailTemplateProcessTagsMapping
     * const emailTemplateProcessTagsMapping = await prisma.emailTemplateProcessTagsMapping.upsert({
     *   create: {
     *     // ... data to create a EmailTemplateProcessTagsMapping
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the EmailTemplateProcessTagsMapping we want to update
     *   }
     * })
     */
    upsert<T extends EmailTemplateProcessTagsMappingUpsertArgs>(args: SelectSubset<T, EmailTemplateProcessTagsMappingUpsertArgs<ExtArgs>>): Prisma__EmailTemplateProcessTagsMappingClient<$Result.GetResult<Prisma.$EmailTemplateProcessTagsMappingPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of EmailTemplateProcessTagsMappings.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateProcessTagsMappingCountArgs} args - Arguments to filter EmailTemplateProcessTagsMappings to count.
     * @example
     * // Count the number of EmailTemplateProcessTagsMappings
     * const count = await prisma.emailTemplateProcessTagsMapping.count({
     *   where: {
     *     // ... the filter for the EmailTemplateProcessTagsMappings we want to count
     *   }
     * })
    **/
    count<T extends EmailTemplateProcessTagsMappingCountArgs>(
      args?: Subset<T, EmailTemplateProcessTagsMappingCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], EmailTemplateProcessTagsMappingCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a EmailTemplateProcessTagsMapping.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateProcessTagsMappingAggregateArgs} 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<T extends EmailTemplateProcessTagsMappingAggregateArgs>(args: Subset<T, EmailTemplateProcessTagsMappingAggregateArgs>): Prisma.PrismaPromise<GetEmailTemplateProcessTagsMappingAggregateType<T>>

    /**
     * Group by EmailTemplateProcessTagsMapping.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateProcessTagsMappingGroupByArgs} 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 EmailTemplateProcessTagsMappingGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: EmailTemplateProcessTagsMappingGroupByArgs['orderBy'] }
        : { orderBy?: EmailTemplateProcessTagsMappingGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, EmailTemplateProcessTagsMappingGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailTemplateProcessTagsMappingGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the EmailTemplateProcessTagsMapping model
   */
  readonly fields: EmailTemplateProcessTagsMappingFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for EmailTemplateProcessTagsMapping.
   * 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__EmailTemplateProcessTagsMappingClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    email_template_process<T extends EmailTemplateProcessDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplateProcessDefaultArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    email_template_tag<T extends EmailTemplateTagDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplateTagDefaultArgs<ExtArgs>>): Prisma__EmailTemplateTagClient<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the EmailTemplateProcessTagsMapping model
   */ 
  interface EmailTemplateProcessTagsMappingFieldRefs {
    readonly email_template_process_id: FieldRef<"EmailTemplateProcessTagsMapping", 'Int'>
    readonly email_template_tag_id: FieldRef<"EmailTemplateProcessTagsMapping", 'Int'>
    readonly company_id: FieldRef<"EmailTemplateProcessTagsMapping", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * EmailTemplateProcessTagsMapping findUnique
   */
  export type EmailTemplateProcessTagsMappingFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcessTagsMapping to fetch.
     */
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
  }

  /**
   * EmailTemplateProcessTagsMapping findUniqueOrThrow
   */
  export type EmailTemplateProcessTagsMappingFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcessTagsMapping to fetch.
     */
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
  }

  /**
   * EmailTemplateProcessTagsMapping findFirst
   */
  export type EmailTemplateProcessTagsMappingFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcessTagsMapping to fetch.
     */
    where?: EmailTemplateProcessTagsMappingWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateProcessTagsMappings to fetch.
     */
    orderBy?: EmailTemplateProcessTagsMappingOrderByWithRelationInput | EmailTemplateProcessTagsMappingOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateProcessTagsMappings.
     */
    cursor?: EmailTemplateProcessTagsMappingWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateProcessTagsMappings from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateProcessTagsMappings.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateProcessTagsMappings.
     */
    distinct?: EmailTemplateProcessTagsMappingScalarFieldEnum | EmailTemplateProcessTagsMappingScalarFieldEnum[]
  }

  /**
   * EmailTemplateProcessTagsMapping findFirstOrThrow
   */
  export type EmailTemplateProcessTagsMappingFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcessTagsMapping to fetch.
     */
    where?: EmailTemplateProcessTagsMappingWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateProcessTagsMappings to fetch.
     */
    orderBy?: EmailTemplateProcessTagsMappingOrderByWithRelationInput | EmailTemplateProcessTagsMappingOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateProcessTagsMappings.
     */
    cursor?: EmailTemplateProcessTagsMappingWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateProcessTagsMappings from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateProcessTagsMappings.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateProcessTagsMappings.
     */
    distinct?: EmailTemplateProcessTagsMappingScalarFieldEnum | EmailTemplateProcessTagsMappingScalarFieldEnum[]
  }

  /**
   * EmailTemplateProcessTagsMapping findMany
   */
  export type EmailTemplateProcessTagsMappingFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateProcessTagsMappings to fetch.
     */
    where?: EmailTemplateProcessTagsMappingWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateProcessTagsMappings to fetch.
     */
    orderBy?: EmailTemplateProcessTagsMappingOrderByWithRelationInput | EmailTemplateProcessTagsMappingOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing EmailTemplateProcessTagsMappings.
     */
    cursor?: EmailTemplateProcessTagsMappingWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateProcessTagsMappings from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateProcessTagsMappings.
     */
    skip?: number
    distinct?: EmailTemplateProcessTagsMappingScalarFieldEnum | EmailTemplateProcessTagsMappingScalarFieldEnum[]
  }

  /**
   * EmailTemplateProcessTagsMapping create
   */
  export type EmailTemplateProcessTagsMappingCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    /**
     * The data needed to create a EmailTemplateProcessTagsMapping.
     */
    data: XOR<EmailTemplateProcessTagsMappingCreateInput, EmailTemplateProcessTagsMappingUncheckedCreateInput>
  }

  /**
   * EmailTemplateProcessTagsMapping createMany
   */
  export type EmailTemplateProcessTagsMappingCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many EmailTemplateProcessTagsMappings.
     */
    data: EmailTemplateProcessTagsMappingCreateManyInput | EmailTemplateProcessTagsMappingCreateManyInput[]
  }

  /**
   * EmailTemplateProcessTagsMapping update
   */
  export type EmailTemplateProcessTagsMappingUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    /**
     * The data needed to update a EmailTemplateProcessTagsMapping.
     */
    data: XOR<EmailTemplateProcessTagsMappingUpdateInput, EmailTemplateProcessTagsMappingUncheckedUpdateInput>
    /**
     * Choose, which EmailTemplateProcessTagsMapping to update.
     */
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
  }

  /**
   * EmailTemplateProcessTagsMapping updateMany
   */
  export type EmailTemplateProcessTagsMappingUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update EmailTemplateProcessTagsMappings.
     */
    data: XOR<EmailTemplateProcessTagsMappingUpdateManyMutationInput, EmailTemplateProcessTagsMappingUncheckedUpdateManyInput>
    /**
     * Filter which EmailTemplateProcessTagsMappings to update
     */
    where?: EmailTemplateProcessTagsMappingWhereInput
  }

  /**
   * EmailTemplateProcessTagsMapping upsert
   */
  export type EmailTemplateProcessTagsMappingUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    /**
     * The filter to search for the EmailTemplateProcessTagsMapping to update in case it exists.
     */
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
    /**
     * In case the EmailTemplateProcessTagsMapping found by the `where` argument doesn't exist, create a new EmailTemplateProcessTagsMapping with this data.
     */
    create: XOR<EmailTemplateProcessTagsMappingCreateInput, EmailTemplateProcessTagsMappingUncheckedCreateInput>
    /**
     * In case the EmailTemplateProcessTagsMapping was found with the provided `where` argument, update it with this data.
     */
    update: XOR<EmailTemplateProcessTagsMappingUpdateInput, EmailTemplateProcessTagsMappingUncheckedUpdateInput>
  }

  /**
   * EmailTemplateProcessTagsMapping delete
   */
  export type EmailTemplateProcessTagsMappingDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
    /**
     * Filter which EmailTemplateProcessTagsMapping to delete.
     */
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
  }

  /**
   * EmailTemplateProcessTagsMapping deleteMany
   */
  export type EmailTemplateProcessTagsMappingDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateProcessTagsMappings to delete
     */
    where?: EmailTemplateProcessTagsMappingWhereInput
  }

  /**
   * EmailTemplateProcessTagsMapping without action
   */
  export type EmailTemplateProcessTagsMappingDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcessTagsMapping
     */
    select?: EmailTemplateProcessTagsMappingSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessTagsMappingInclude<ExtArgs> | null
  }


  /**
   * Model EmailTemplate
   */

  export type AggregateEmailTemplate = {
    _count: EmailTemplateCountAggregateOutputType | null
    _avg: EmailTemplateAvgAggregateOutputType | null
    _sum: EmailTemplateSumAggregateOutputType | null
    _min: EmailTemplateMinAggregateOutputType | null
    _max: EmailTemplateMaxAggregateOutputType | null
  }

  export type EmailTemplateAvgAggregateOutputType = {
    id: number | null
    email_template_process_id: number | null
    status_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    company_id: number | null
  }

  export type EmailTemplateSumAggregateOutputType = {
    id: number | null
    email_template_process_id: number | null
    status_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    company_id: number | null
  }

  export type EmailTemplateMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    slug: string | null
    name: string | null
    subject: string | null
    template_body: string | null
    email_template_process_id: number | null
    status_id: number | null
    created_at: Date | null
    created_by: number | null
    updated_at: Date | null
    updated_by: number | null
    deleted_at: Date | null
    deleted_by: number | null
    company_id: number | null
  }

  export type EmailTemplateMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    slug: string | null
    name: string | null
    subject: string | null
    template_body: string | null
    email_template_process_id: number | null
    status_id: number | null
    created_at: Date | null
    created_by: number | null
    updated_at: Date | null
    updated_by: number | null
    deleted_at: Date | null
    deleted_by: number | null
    company_id: number | null
  }

  export type EmailTemplateCountAggregateOutputType = {
    id: number
    uuid: number
    slug: number
    name: number
    subject: number
    template_body: number
    email_template_process_id: number
    status_id: number
    created_at: number
    created_by: number
    updated_at: number
    updated_by: number
    deleted_at: number
    deleted_by: number
    company_id: number
    _all: number
  }


  export type EmailTemplateAvgAggregateInputType = {
    id?: true
    email_template_process_id?: true
    status_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    company_id?: true
  }

  export type EmailTemplateSumAggregateInputType = {
    id?: true
    email_template_process_id?: true
    status_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    company_id?: true
  }

  export type EmailTemplateMinAggregateInputType = {
    id?: true
    uuid?: true
    slug?: true
    name?: true
    subject?: true
    template_body?: true
    email_template_process_id?: true
    status_id?: true
    created_at?: true
    created_by?: true
    updated_at?: true
    updated_by?: true
    deleted_at?: true
    deleted_by?: true
    company_id?: true
  }

  export type EmailTemplateMaxAggregateInputType = {
    id?: true
    uuid?: true
    slug?: true
    name?: true
    subject?: true
    template_body?: true
    email_template_process_id?: true
    status_id?: true
    created_at?: true
    created_by?: true
    updated_at?: true
    updated_by?: true
    deleted_at?: true
    deleted_by?: true
    company_id?: true
  }

  export type EmailTemplateCountAggregateInputType = {
    id?: true
    uuid?: true
    slug?: true
    name?: true
    subject?: true
    template_body?: true
    email_template_process_id?: true
    status_id?: true
    created_at?: true
    created_by?: true
    updated_at?: true
    updated_by?: true
    deleted_at?: true
    deleted_by?: true
    company_id?: true
    _all?: true
  }

  export type EmailTemplateAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplate to aggregate.
     */
    where?: EmailTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplates to fetch.
     */
    orderBy?: EmailTemplateOrderByWithRelationInput | EmailTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: EmailTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplates.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned EmailTemplates
    **/
    _count?: true | EmailTemplateCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: EmailTemplateAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: EmailTemplateSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: EmailTemplateMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: EmailTemplateMaxAggregateInputType
  }

  export type GetEmailTemplateAggregateType<T extends EmailTemplateAggregateArgs> = {
        [P in keyof T & keyof AggregateEmailTemplate]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateEmailTemplate[P]>
      : GetScalarType<T[P], AggregateEmailTemplate[P]>
  }




  export type EmailTemplateGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateWhereInput
    orderBy?: EmailTemplateOrderByWithAggregationInput | EmailTemplateOrderByWithAggregationInput[]
    by: EmailTemplateScalarFieldEnum[] | EmailTemplateScalarFieldEnum
    having?: EmailTemplateScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: EmailTemplateCountAggregateInputType | true
    _avg?: EmailTemplateAvgAggregateInputType
    _sum?: EmailTemplateSumAggregateInputType
    _min?: EmailTemplateMinAggregateInputType
    _max?: EmailTemplateMaxAggregateInputType
  }

  export type EmailTemplateGroupByOutputType = {
    id: number
    uuid: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id: number
    created_at: Date
    created_by: number | null
    updated_at: Date
    updated_by: number | null
    deleted_at: Date | null
    deleted_by: number | null
    company_id: number
    _count: EmailTemplateCountAggregateOutputType | null
    _avg: EmailTemplateAvgAggregateOutputType | null
    _sum: EmailTemplateSumAggregateOutputType | null
    _min: EmailTemplateMinAggregateOutputType | null
    _max: EmailTemplateMaxAggregateOutputType | null
  }

  type GetEmailTemplateGroupByPayload<T extends EmailTemplateGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<EmailTemplateGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof EmailTemplateGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], EmailTemplateGroupByOutputType[P]>
            : GetScalarType<T[P], EmailTemplateGroupByOutputType[P]>
        }
      >
    >


  export type EmailTemplateSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    slug?: boolean
    name?: boolean
    subject?: boolean
    template_body?: boolean
    email_template_process_id?: boolean
    status_id?: boolean
    created_at?: boolean
    created_by?: boolean
    updated_at?: boolean
    updated_by?: boolean
    deleted_at?: boolean
    deleted_by?: boolean
    company_id?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    email_template_process?: boolean | EmailTemplateProcessDefaultArgs<ExtArgs>
    email_template_assignments?: boolean | EmailTemplate$email_template_assignmentsArgs<ExtArgs>
    created?: boolean | EmailTemplate$createdArgs<ExtArgs>
    updated?: boolean | EmailTemplate$updatedArgs<ExtArgs>
    deleted?: boolean | EmailTemplate$deletedArgs<ExtArgs>
    _count?: boolean | EmailTemplateCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["emailTemplate"]>


  export type EmailTemplateSelectScalar = {
    id?: boolean
    uuid?: boolean
    slug?: boolean
    name?: boolean
    subject?: boolean
    template_body?: boolean
    email_template_process_id?: boolean
    status_id?: boolean
    created_at?: boolean
    created_by?: boolean
    updated_at?: boolean
    updated_by?: boolean
    deleted_at?: boolean
    deleted_by?: boolean
    company_id?: boolean
  }

  export type EmailTemplateInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    email_template_process?: boolean | EmailTemplateProcessDefaultArgs<ExtArgs>
    email_template_assignments?: boolean | EmailTemplate$email_template_assignmentsArgs<ExtArgs>
    created?: boolean | EmailTemplate$createdArgs<ExtArgs>
    updated?: boolean | EmailTemplate$updatedArgs<ExtArgs>
    deleted?: boolean | EmailTemplate$deletedArgs<ExtArgs>
    _count?: boolean | EmailTemplateCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $EmailTemplatePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "EmailTemplate"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      email_template_process: Prisma.$EmailTemplateProcessPayload<ExtArgs>
      email_template_assignments: Prisma.$EmailTemplateAssignmentPayload<ExtArgs>[]
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      slug: string
      name: string
      subject: string
      template_body: string
      email_template_process_id: number
      status_id: number
      created_at: Date
      created_by: number | null
      updated_at: Date
      updated_by: number | null
      deleted_at: Date | null
      deleted_by: number | null
      company_id: number
    }, ExtArgs["result"]["emailTemplate"]>
    composites: {}
  }

  type EmailTemplateGetPayload<S extends boolean | null | undefined | EmailTemplateDefaultArgs> = $Result.GetResult<Prisma.$EmailTemplatePayload, S>

  type EmailTemplateCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<EmailTemplateFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: EmailTemplateCountAggregateInputType | true
    }

  export interface EmailTemplateDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EmailTemplate'], meta: { name: 'EmailTemplate' } }
    /**
     * Find zero or one EmailTemplate that matches the filter.
     * @param {EmailTemplateFindUniqueArgs} args - Arguments to find a EmailTemplate
     * @example
     * // Get one EmailTemplate
     * const emailTemplate = await prisma.emailTemplate.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends EmailTemplateFindUniqueArgs>(args: SelectSubset<T, EmailTemplateFindUniqueArgs<ExtArgs>>): Prisma__EmailTemplateClient<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one EmailTemplate that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {EmailTemplateFindUniqueOrThrowArgs} args - Arguments to find a EmailTemplate
     * @example
     * // Get one EmailTemplate
     * const emailTemplate = await prisma.emailTemplate.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends EmailTemplateFindUniqueOrThrowArgs>(args: SelectSubset<T, EmailTemplateFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateClient<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first EmailTemplate 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 {EmailTemplateFindFirstArgs} args - Arguments to find a EmailTemplate
     * @example
     * // Get one EmailTemplate
     * const emailTemplate = await prisma.emailTemplate.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends EmailTemplateFindFirstArgs>(args?: SelectSubset<T, EmailTemplateFindFirstArgs<ExtArgs>>): Prisma__EmailTemplateClient<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first EmailTemplate 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 {EmailTemplateFindFirstOrThrowArgs} args - Arguments to find a EmailTemplate
     * @example
     * // Get one EmailTemplate
     * const emailTemplate = await prisma.emailTemplate.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends EmailTemplateFindFirstOrThrowArgs>(args?: SelectSubset<T, EmailTemplateFindFirstOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateClient<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more EmailTemplates 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 {EmailTemplateFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all EmailTemplates
     * const emailTemplates = await prisma.emailTemplate.findMany()
     * 
     * // Get first 10 EmailTemplates
     * const emailTemplates = await prisma.emailTemplate.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const emailTemplateWithIdOnly = await prisma.emailTemplate.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends EmailTemplateFindManyArgs>(args?: SelectSubset<T, EmailTemplateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a EmailTemplate.
     * @param {EmailTemplateCreateArgs} args - Arguments to create a EmailTemplate.
     * @example
     * // Create one EmailTemplate
     * const EmailTemplate = await prisma.emailTemplate.create({
     *   data: {
     *     // ... data to create a EmailTemplate
     *   }
     * })
     * 
     */
    create<T extends EmailTemplateCreateArgs>(args: SelectSubset<T, EmailTemplateCreateArgs<ExtArgs>>): Prisma__EmailTemplateClient<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many EmailTemplates.
     * @param {EmailTemplateCreateManyArgs} args - Arguments to create many EmailTemplates.
     * @example
     * // Create many EmailTemplates
     * const emailTemplate = await prisma.emailTemplate.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends EmailTemplateCreateManyArgs>(args?: SelectSubset<T, EmailTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a EmailTemplate.
     * @param {EmailTemplateDeleteArgs} args - Arguments to delete one EmailTemplate.
     * @example
     * // Delete one EmailTemplate
     * const EmailTemplate = await prisma.emailTemplate.delete({
     *   where: {
     *     // ... filter to delete one EmailTemplate
     *   }
     * })
     * 
     */
    delete<T extends EmailTemplateDeleteArgs>(args: SelectSubset<T, EmailTemplateDeleteArgs<ExtArgs>>): Prisma__EmailTemplateClient<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one EmailTemplate.
     * @param {EmailTemplateUpdateArgs} args - Arguments to update one EmailTemplate.
     * @example
     * // Update one EmailTemplate
     * const emailTemplate = await prisma.emailTemplate.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends EmailTemplateUpdateArgs>(args: SelectSubset<T, EmailTemplateUpdateArgs<ExtArgs>>): Prisma__EmailTemplateClient<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more EmailTemplates.
     * @param {EmailTemplateDeleteManyArgs} args - Arguments to filter EmailTemplates to delete.
     * @example
     * // Delete a few EmailTemplates
     * const { count } = await prisma.emailTemplate.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends EmailTemplateDeleteManyArgs>(args?: SelectSubset<T, EmailTemplateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more EmailTemplates.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many EmailTemplates
     * const emailTemplate = await prisma.emailTemplate.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends EmailTemplateUpdateManyArgs>(args: SelectSubset<T, EmailTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one EmailTemplate.
     * @param {EmailTemplateUpsertArgs} args - Arguments to update or create a EmailTemplate.
     * @example
     * // Update or create a EmailTemplate
     * const emailTemplate = await prisma.emailTemplate.upsert({
     *   create: {
     *     // ... data to create a EmailTemplate
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the EmailTemplate we want to update
     *   }
     * })
     */
    upsert<T extends EmailTemplateUpsertArgs>(args: SelectSubset<T, EmailTemplateUpsertArgs<ExtArgs>>): Prisma__EmailTemplateClient<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of EmailTemplates.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateCountArgs} args - Arguments to filter EmailTemplates to count.
     * @example
     * // Count the number of EmailTemplates
     * const count = await prisma.emailTemplate.count({
     *   where: {
     *     // ... the filter for the EmailTemplates we want to count
     *   }
     * })
    **/
    count<T extends EmailTemplateCountArgs>(
      args?: Subset<T, EmailTemplateCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], EmailTemplateCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a EmailTemplate.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateAggregateArgs} 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<T extends EmailTemplateAggregateArgs>(args: Subset<T, EmailTemplateAggregateArgs>): Prisma.PrismaPromise<GetEmailTemplateAggregateType<T>>

    /**
     * Group by EmailTemplate.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateGroupByArgs} 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 EmailTemplateGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: EmailTemplateGroupByArgs['orderBy'] }
        : { orderBy?: EmailTemplateGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, EmailTemplateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailTemplateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the EmailTemplate model
   */
  readonly fields: EmailTemplateFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for EmailTemplate.
   * 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__EmailTemplateClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    email_template_process<T extends EmailTemplateProcessDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplateProcessDefaultArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    email_template_assignments<T extends EmailTemplate$email_template_assignmentsArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplate$email_template_assignmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "findMany"> | Null>
    created<T extends EmailTemplate$createdArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplate$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends EmailTemplate$updatedArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplate$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends EmailTemplate$deletedArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplate$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the EmailTemplate model
   */ 
  interface EmailTemplateFieldRefs {
    readonly id: FieldRef<"EmailTemplate", 'Int'>
    readonly uuid: FieldRef<"EmailTemplate", 'String'>
    readonly slug: FieldRef<"EmailTemplate", 'String'>
    readonly name: FieldRef<"EmailTemplate", 'String'>
    readonly subject: FieldRef<"EmailTemplate", 'String'>
    readonly template_body: FieldRef<"EmailTemplate", 'String'>
    readonly email_template_process_id: FieldRef<"EmailTemplate", 'Int'>
    readonly status_id: FieldRef<"EmailTemplate", 'Int'>
    readonly created_at: FieldRef<"EmailTemplate", 'DateTime'>
    readonly created_by: FieldRef<"EmailTemplate", 'Int'>
    readonly updated_at: FieldRef<"EmailTemplate", 'DateTime'>
    readonly updated_by: FieldRef<"EmailTemplate", 'Int'>
    readonly deleted_at: FieldRef<"EmailTemplate", 'DateTime'>
    readonly deleted_by: FieldRef<"EmailTemplate", 'Int'>
    readonly company_id: FieldRef<"EmailTemplate", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * EmailTemplate findUnique
   */
  export type EmailTemplateFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplate to fetch.
     */
    where: EmailTemplateWhereUniqueInput
  }

  /**
   * EmailTemplate findUniqueOrThrow
   */
  export type EmailTemplateFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplate to fetch.
     */
    where: EmailTemplateWhereUniqueInput
  }

  /**
   * EmailTemplate findFirst
   */
  export type EmailTemplateFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplate to fetch.
     */
    where?: EmailTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplates to fetch.
     */
    orderBy?: EmailTemplateOrderByWithRelationInput | EmailTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplates.
     */
    cursor?: EmailTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplates.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplates.
     */
    distinct?: EmailTemplateScalarFieldEnum | EmailTemplateScalarFieldEnum[]
  }

  /**
   * EmailTemplate findFirstOrThrow
   */
  export type EmailTemplateFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplate to fetch.
     */
    where?: EmailTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplates to fetch.
     */
    orderBy?: EmailTemplateOrderByWithRelationInput | EmailTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplates.
     */
    cursor?: EmailTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplates.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplates.
     */
    distinct?: EmailTemplateScalarFieldEnum | EmailTemplateScalarFieldEnum[]
  }

  /**
   * EmailTemplate findMany
   */
  export type EmailTemplateFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplates to fetch.
     */
    where?: EmailTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplates to fetch.
     */
    orderBy?: EmailTemplateOrderByWithRelationInput | EmailTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing EmailTemplates.
     */
    cursor?: EmailTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplates.
     */
    skip?: number
    distinct?: EmailTemplateScalarFieldEnum | EmailTemplateScalarFieldEnum[]
  }

  /**
   * EmailTemplate create
   */
  export type EmailTemplateCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    /**
     * The data needed to create a EmailTemplate.
     */
    data: XOR<EmailTemplateCreateInput, EmailTemplateUncheckedCreateInput>
  }

  /**
   * EmailTemplate createMany
   */
  export type EmailTemplateCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many EmailTemplates.
     */
    data: EmailTemplateCreateManyInput | EmailTemplateCreateManyInput[]
  }

  /**
   * EmailTemplate update
   */
  export type EmailTemplateUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    /**
     * The data needed to update a EmailTemplate.
     */
    data: XOR<EmailTemplateUpdateInput, EmailTemplateUncheckedUpdateInput>
    /**
     * Choose, which EmailTemplate to update.
     */
    where: EmailTemplateWhereUniqueInput
  }

  /**
   * EmailTemplate updateMany
   */
  export type EmailTemplateUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update EmailTemplates.
     */
    data: XOR<EmailTemplateUpdateManyMutationInput, EmailTemplateUncheckedUpdateManyInput>
    /**
     * Filter which EmailTemplates to update
     */
    where?: EmailTemplateWhereInput
  }

  /**
   * EmailTemplate upsert
   */
  export type EmailTemplateUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    /**
     * The filter to search for the EmailTemplate to update in case it exists.
     */
    where: EmailTemplateWhereUniqueInput
    /**
     * In case the EmailTemplate found by the `where` argument doesn't exist, create a new EmailTemplate with this data.
     */
    create: XOR<EmailTemplateCreateInput, EmailTemplateUncheckedCreateInput>
    /**
     * In case the EmailTemplate was found with the provided `where` argument, update it with this data.
     */
    update: XOR<EmailTemplateUpdateInput, EmailTemplateUncheckedUpdateInput>
  }

  /**
   * EmailTemplate delete
   */
  export type EmailTemplateDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    /**
     * Filter which EmailTemplate to delete.
     */
    where: EmailTemplateWhereUniqueInput
  }

  /**
   * EmailTemplate deleteMany
   */
  export type EmailTemplateDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplates to delete
     */
    where?: EmailTemplateWhereInput
  }

  /**
   * EmailTemplate.email_template_assignments
   */
  export type EmailTemplate$email_template_assignmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    where?: EmailTemplateAssignmentWhereInput
    orderBy?: EmailTemplateAssignmentOrderByWithRelationInput | EmailTemplateAssignmentOrderByWithRelationInput[]
    cursor?: EmailTemplateAssignmentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateAssignmentScalarFieldEnum | EmailTemplateAssignmentScalarFieldEnum[]
  }

  /**
   * EmailTemplate.created
   */
  export type EmailTemplate$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * EmailTemplate.updated
   */
  export type EmailTemplate$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * EmailTemplate.deleted
   */
  export type EmailTemplate$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * EmailTemplate without action
   */
  export type EmailTemplateDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
  }


  /**
   * Model EmailTemplateAssignment
   */

  export type AggregateEmailTemplateAssignment = {
    _count: EmailTemplateAssignmentCountAggregateOutputType | null
    _avg: EmailTemplateAssignmentAvgAggregateOutputType | null
    _sum: EmailTemplateAssignmentSumAggregateOutputType | null
    _min: EmailTemplateAssignmentMinAggregateOutputType | null
    _max: EmailTemplateAssignmentMaxAggregateOutputType | null
  }

  export type EmailTemplateAssignmentAvgAggregateOutputType = {
    id: number | null
    email_template_process_id: number | null
    template_id: number | null
    company_id: number | null
    created_by: number | null
  }

  export type EmailTemplateAssignmentSumAggregateOutputType = {
    id: number | null
    email_template_process_id: number | null
    template_id: number | null
    company_id: number | null
    created_by: number | null
  }

  export type EmailTemplateAssignmentMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    email_template_process_id: number | null
    template_id: number | null
    recipient_type: string | null
    email_to: string | null
    mail_cc: string | null
    mail_bcc: string | null
    company_id: number | null
    created_at: Date | null
    created_by: number | null
  }

  export type EmailTemplateAssignmentMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    email_template_process_id: number | null
    template_id: number | null
    recipient_type: string | null
    email_to: string | null
    mail_cc: string | null
    mail_bcc: string | null
    company_id: number | null
    created_at: Date | null
    created_by: number | null
  }

  export type EmailTemplateAssignmentCountAggregateOutputType = {
    id: number
    uuid: number
    email_template_process_id: number
    template_id: number
    recipient_type: number
    email_to: number
    mail_cc: number
    mail_bcc: number
    company_id: number
    created_at: number
    created_by: number
    _all: number
  }


  export type EmailTemplateAssignmentAvgAggregateInputType = {
    id?: true
    email_template_process_id?: true
    template_id?: true
    company_id?: true
    created_by?: true
  }

  export type EmailTemplateAssignmentSumAggregateInputType = {
    id?: true
    email_template_process_id?: true
    template_id?: true
    company_id?: true
    created_by?: true
  }

  export type EmailTemplateAssignmentMinAggregateInputType = {
    id?: true
    uuid?: true
    email_template_process_id?: true
    template_id?: true
    recipient_type?: true
    email_to?: true
    mail_cc?: true
    mail_bcc?: true
    company_id?: true
    created_at?: true
    created_by?: true
  }

  export type EmailTemplateAssignmentMaxAggregateInputType = {
    id?: true
    uuid?: true
    email_template_process_id?: true
    template_id?: true
    recipient_type?: true
    email_to?: true
    mail_cc?: true
    mail_bcc?: true
    company_id?: true
    created_at?: true
    created_by?: true
  }

  export type EmailTemplateAssignmentCountAggregateInputType = {
    id?: true
    uuid?: true
    email_template_process_id?: true
    template_id?: true
    recipient_type?: true
    email_to?: true
    mail_cc?: true
    mail_bcc?: true
    company_id?: true
    created_at?: true
    created_by?: true
    _all?: true
  }

  export type EmailTemplateAssignmentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateAssignment to aggregate.
     */
    where?: EmailTemplateAssignmentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateAssignments to fetch.
     */
    orderBy?: EmailTemplateAssignmentOrderByWithRelationInput | EmailTemplateAssignmentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: EmailTemplateAssignmentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateAssignments from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateAssignments.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned EmailTemplateAssignments
    **/
    _count?: true | EmailTemplateAssignmentCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: EmailTemplateAssignmentAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: EmailTemplateAssignmentSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: EmailTemplateAssignmentMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: EmailTemplateAssignmentMaxAggregateInputType
  }

  export type GetEmailTemplateAssignmentAggregateType<T extends EmailTemplateAssignmentAggregateArgs> = {
        [P in keyof T & keyof AggregateEmailTemplateAssignment]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateEmailTemplateAssignment[P]>
      : GetScalarType<T[P], AggregateEmailTemplateAssignment[P]>
  }




  export type EmailTemplateAssignmentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailTemplateAssignmentWhereInput
    orderBy?: EmailTemplateAssignmentOrderByWithAggregationInput | EmailTemplateAssignmentOrderByWithAggregationInput[]
    by: EmailTemplateAssignmentScalarFieldEnum[] | EmailTemplateAssignmentScalarFieldEnum
    having?: EmailTemplateAssignmentScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: EmailTemplateAssignmentCountAggregateInputType | true
    _avg?: EmailTemplateAssignmentAvgAggregateInputType
    _sum?: EmailTemplateAssignmentSumAggregateInputType
    _min?: EmailTemplateAssignmentMinAggregateInputType
    _max?: EmailTemplateAssignmentMaxAggregateInputType
  }

  export type EmailTemplateAssignmentGroupByOutputType = {
    id: number
    uuid: string
    email_template_process_id: number
    template_id: number
    recipient_type: string
    email_to: string | null
    mail_cc: string | null
    mail_bcc: string | null
    company_id: number
    created_at: Date
    created_by: number
    _count: EmailTemplateAssignmentCountAggregateOutputType | null
    _avg: EmailTemplateAssignmentAvgAggregateOutputType | null
    _sum: EmailTemplateAssignmentSumAggregateOutputType | null
    _min: EmailTemplateAssignmentMinAggregateOutputType | null
    _max: EmailTemplateAssignmentMaxAggregateOutputType | null
  }

  type GetEmailTemplateAssignmentGroupByPayload<T extends EmailTemplateAssignmentGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<EmailTemplateAssignmentGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof EmailTemplateAssignmentGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], EmailTemplateAssignmentGroupByOutputType[P]>
            : GetScalarType<T[P], EmailTemplateAssignmentGroupByOutputType[P]>
        }
      >
    >


  export type EmailTemplateAssignmentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    email_template_process_id?: boolean
    template_id?: boolean
    recipient_type?: boolean
    email_to?: boolean
    mail_cc?: boolean
    mail_bcc?: boolean
    company_id?: boolean
    created_at?: boolean
    created_by?: boolean
    email_template_process?: boolean | EmailTemplateProcessDefaultArgs<ExtArgs>
    email_template?: boolean | EmailTemplateDefaultArgs<ExtArgs>
    created?: boolean | UserDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["emailTemplateAssignment"]>


  export type EmailTemplateAssignmentSelectScalar = {
    id?: boolean
    uuid?: boolean
    email_template_process_id?: boolean
    template_id?: boolean
    recipient_type?: boolean
    email_to?: boolean
    mail_cc?: boolean
    mail_bcc?: boolean
    company_id?: boolean
    created_at?: boolean
    created_by?: boolean
  }

  export type EmailTemplateAssignmentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    email_template_process?: boolean | EmailTemplateProcessDefaultArgs<ExtArgs>
    email_template?: boolean | EmailTemplateDefaultArgs<ExtArgs>
    created?: boolean | UserDefaultArgs<ExtArgs>
  }

  export type $EmailTemplateAssignmentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "EmailTemplateAssignment"
    objects: {
      email_template_process: Prisma.$EmailTemplateProcessPayload<ExtArgs>
      email_template: Prisma.$EmailTemplatePayload<ExtArgs>
      created: Prisma.$UserPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      email_template_process_id: number
      template_id: number
      recipient_type: string
      email_to: string | null
      mail_cc: string | null
      mail_bcc: string | null
      company_id: number
      created_at: Date
      created_by: number
    }, ExtArgs["result"]["emailTemplateAssignment"]>
    composites: {}
  }

  type EmailTemplateAssignmentGetPayload<S extends boolean | null | undefined | EmailTemplateAssignmentDefaultArgs> = $Result.GetResult<Prisma.$EmailTemplateAssignmentPayload, S>

  type EmailTemplateAssignmentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<EmailTemplateAssignmentFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: EmailTemplateAssignmentCountAggregateInputType | true
    }

  export interface EmailTemplateAssignmentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EmailTemplateAssignment'], meta: { name: 'EmailTemplateAssignment' } }
    /**
     * Find zero or one EmailTemplateAssignment that matches the filter.
     * @param {EmailTemplateAssignmentFindUniqueArgs} args - Arguments to find a EmailTemplateAssignment
     * @example
     * // Get one EmailTemplateAssignment
     * const emailTemplateAssignment = await prisma.emailTemplateAssignment.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends EmailTemplateAssignmentFindUniqueArgs>(args: SelectSubset<T, EmailTemplateAssignmentFindUniqueArgs<ExtArgs>>): Prisma__EmailTemplateAssignmentClient<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one EmailTemplateAssignment that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {EmailTemplateAssignmentFindUniqueOrThrowArgs} args - Arguments to find a EmailTemplateAssignment
     * @example
     * // Get one EmailTemplateAssignment
     * const emailTemplateAssignment = await prisma.emailTemplateAssignment.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends EmailTemplateAssignmentFindUniqueOrThrowArgs>(args: SelectSubset<T, EmailTemplateAssignmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateAssignmentClient<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first EmailTemplateAssignment 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 {EmailTemplateAssignmentFindFirstArgs} args - Arguments to find a EmailTemplateAssignment
     * @example
     * // Get one EmailTemplateAssignment
     * const emailTemplateAssignment = await prisma.emailTemplateAssignment.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends EmailTemplateAssignmentFindFirstArgs>(args?: SelectSubset<T, EmailTemplateAssignmentFindFirstArgs<ExtArgs>>): Prisma__EmailTemplateAssignmentClient<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first EmailTemplateAssignment 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 {EmailTemplateAssignmentFindFirstOrThrowArgs} args - Arguments to find a EmailTemplateAssignment
     * @example
     * // Get one EmailTemplateAssignment
     * const emailTemplateAssignment = await prisma.emailTemplateAssignment.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends EmailTemplateAssignmentFindFirstOrThrowArgs>(args?: SelectSubset<T, EmailTemplateAssignmentFindFirstOrThrowArgs<ExtArgs>>): Prisma__EmailTemplateAssignmentClient<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more EmailTemplateAssignments 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 {EmailTemplateAssignmentFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all EmailTemplateAssignments
     * const emailTemplateAssignments = await prisma.emailTemplateAssignment.findMany()
     * 
     * // Get first 10 EmailTemplateAssignments
     * const emailTemplateAssignments = await prisma.emailTemplateAssignment.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const emailTemplateAssignmentWithIdOnly = await prisma.emailTemplateAssignment.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends EmailTemplateAssignmentFindManyArgs>(args?: SelectSubset<T, EmailTemplateAssignmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a EmailTemplateAssignment.
     * @param {EmailTemplateAssignmentCreateArgs} args - Arguments to create a EmailTemplateAssignment.
     * @example
     * // Create one EmailTemplateAssignment
     * const EmailTemplateAssignment = await prisma.emailTemplateAssignment.create({
     *   data: {
     *     // ... data to create a EmailTemplateAssignment
     *   }
     * })
     * 
     */
    create<T extends EmailTemplateAssignmentCreateArgs>(args: SelectSubset<T, EmailTemplateAssignmentCreateArgs<ExtArgs>>): Prisma__EmailTemplateAssignmentClient<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many EmailTemplateAssignments.
     * @param {EmailTemplateAssignmentCreateManyArgs} args - Arguments to create many EmailTemplateAssignments.
     * @example
     * // Create many EmailTemplateAssignments
     * const emailTemplateAssignment = await prisma.emailTemplateAssignment.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends EmailTemplateAssignmentCreateManyArgs>(args?: SelectSubset<T, EmailTemplateAssignmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a EmailTemplateAssignment.
     * @param {EmailTemplateAssignmentDeleteArgs} args - Arguments to delete one EmailTemplateAssignment.
     * @example
     * // Delete one EmailTemplateAssignment
     * const EmailTemplateAssignment = await prisma.emailTemplateAssignment.delete({
     *   where: {
     *     // ... filter to delete one EmailTemplateAssignment
     *   }
     * })
     * 
     */
    delete<T extends EmailTemplateAssignmentDeleteArgs>(args: SelectSubset<T, EmailTemplateAssignmentDeleteArgs<ExtArgs>>): Prisma__EmailTemplateAssignmentClient<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one EmailTemplateAssignment.
     * @param {EmailTemplateAssignmentUpdateArgs} args - Arguments to update one EmailTemplateAssignment.
     * @example
     * // Update one EmailTemplateAssignment
     * const emailTemplateAssignment = await prisma.emailTemplateAssignment.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends EmailTemplateAssignmentUpdateArgs>(args: SelectSubset<T, EmailTemplateAssignmentUpdateArgs<ExtArgs>>): Prisma__EmailTemplateAssignmentClient<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more EmailTemplateAssignments.
     * @param {EmailTemplateAssignmentDeleteManyArgs} args - Arguments to filter EmailTemplateAssignments to delete.
     * @example
     * // Delete a few EmailTemplateAssignments
     * const { count } = await prisma.emailTemplateAssignment.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends EmailTemplateAssignmentDeleteManyArgs>(args?: SelectSubset<T, EmailTemplateAssignmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more EmailTemplateAssignments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateAssignmentUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many EmailTemplateAssignments
     * const emailTemplateAssignment = await prisma.emailTemplateAssignment.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends EmailTemplateAssignmentUpdateManyArgs>(args: SelectSubset<T, EmailTemplateAssignmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one EmailTemplateAssignment.
     * @param {EmailTemplateAssignmentUpsertArgs} args - Arguments to update or create a EmailTemplateAssignment.
     * @example
     * // Update or create a EmailTemplateAssignment
     * const emailTemplateAssignment = await prisma.emailTemplateAssignment.upsert({
     *   create: {
     *     // ... data to create a EmailTemplateAssignment
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the EmailTemplateAssignment we want to update
     *   }
     * })
     */
    upsert<T extends EmailTemplateAssignmentUpsertArgs>(args: SelectSubset<T, EmailTemplateAssignmentUpsertArgs<ExtArgs>>): Prisma__EmailTemplateAssignmentClient<$Result.GetResult<Prisma.$EmailTemplateAssignmentPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of EmailTemplateAssignments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateAssignmentCountArgs} args - Arguments to filter EmailTemplateAssignments to count.
     * @example
     * // Count the number of EmailTemplateAssignments
     * const count = await prisma.emailTemplateAssignment.count({
     *   where: {
     *     // ... the filter for the EmailTemplateAssignments we want to count
     *   }
     * })
    **/
    count<T extends EmailTemplateAssignmentCountArgs>(
      args?: Subset<T, EmailTemplateAssignmentCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], EmailTemplateAssignmentCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a EmailTemplateAssignment.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateAssignmentAggregateArgs} 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<T extends EmailTemplateAssignmentAggregateArgs>(args: Subset<T, EmailTemplateAssignmentAggregateArgs>): Prisma.PrismaPromise<GetEmailTemplateAssignmentAggregateType<T>>

    /**
     * Group by EmailTemplateAssignment.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailTemplateAssignmentGroupByArgs} 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 EmailTemplateAssignmentGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: EmailTemplateAssignmentGroupByArgs['orderBy'] }
        : { orderBy?: EmailTemplateAssignmentGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, EmailTemplateAssignmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailTemplateAssignmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the EmailTemplateAssignment model
   */
  readonly fields: EmailTemplateAssignmentFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for EmailTemplateAssignment.
   * 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__EmailTemplateAssignmentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    email_template_process<T extends EmailTemplateProcessDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplateProcessDefaultArgs<ExtArgs>>): Prisma__EmailTemplateProcessClient<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    email_template<T extends EmailTemplateDefaultArgs<ExtArgs> = {}>(args?: Subset<T, EmailTemplateDefaultArgs<ExtArgs>>): Prisma__EmailTemplateClient<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the EmailTemplateAssignment model
   */ 
  interface EmailTemplateAssignmentFieldRefs {
    readonly id: FieldRef<"EmailTemplateAssignment", 'Int'>
    readonly uuid: FieldRef<"EmailTemplateAssignment", 'String'>
    readonly email_template_process_id: FieldRef<"EmailTemplateAssignment", 'Int'>
    readonly template_id: FieldRef<"EmailTemplateAssignment", 'Int'>
    readonly recipient_type: FieldRef<"EmailTemplateAssignment", 'String'>
    readonly email_to: FieldRef<"EmailTemplateAssignment", 'String'>
    readonly mail_cc: FieldRef<"EmailTemplateAssignment", 'String'>
    readonly mail_bcc: FieldRef<"EmailTemplateAssignment", 'String'>
    readonly company_id: FieldRef<"EmailTemplateAssignment", 'Int'>
    readonly created_at: FieldRef<"EmailTemplateAssignment", 'DateTime'>
    readonly created_by: FieldRef<"EmailTemplateAssignment", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * EmailTemplateAssignment findUnique
   */
  export type EmailTemplateAssignmentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateAssignment to fetch.
     */
    where: EmailTemplateAssignmentWhereUniqueInput
  }

  /**
   * EmailTemplateAssignment findUniqueOrThrow
   */
  export type EmailTemplateAssignmentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateAssignment to fetch.
     */
    where: EmailTemplateAssignmentWhereUniqueInput
  }

  /**
   * EmailTemplateAssignment findFirst
   */
  export type EmailTemplateAssignmentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateAssignment to fetch.
     */
    where?: EmailTemplateAssignmentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateAssignments to fetch.
     */
    orderBy?: EmailTemplateAssignmentOrderByWithRelationInput | EmailTemplateAssignmentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateAssignments.
     */
    cursor?: EmailTemplateAssignmentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateAssignments from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateAssignments.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateAssignments.
     */
    distinct?: EmailTemplateAssignmentScalarFieldEnum | EmailTemplateAssignmentScalarFieldEnum[]
  }

  /**
   * EmailTemplateAssignment findFirstOrThrow
   */
  export type EmailTemplateAssignmentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateAssignment to fetch.
     */
    where?: EmailTemplateAssignmentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateAssignments to fetch.
     */
    orderBy?: EmailTemplateAssignmentOrderByWithRelationInput | EmailTemplateAssignmentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailTemplateAssignments.
     */
    cursor?: EmailTemplateAssignmentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateAssignments from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateAssignments.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailTemplateAssignments.
     */
    distinct?: EmailTemplateAssignmentScalarFieldEnum | EmailTemplateAssignmentScalarFieldEnum[]
  }

  /**
   * EmailTemplateAssignment findMany
   */
  export type EmailTemplateAssignmentFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    /**
     * Filter, which EmailTemplateAssignments to fetch.
     */
    where?: EmailTemplateAssignmentWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailTemplateAssignments to fetch.
     */
    orderBy?: EmailTemplateAssignmentOrderByWithRelationInput | EmailTemplateAssignmentOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing EmailTemplateAssignments.
     */
    cursor?: EmailTemplateAssignmentWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailTemplateAssignments from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailTemplateAssignments.
     */
    skip?: number
    distinct?: EmailTemplateAssignmentScalarFieldEnum | EmailTemplateAssignmentScalarFieldEnum[]
  }

  /**
   * EmailTemplateAssignment create
   */
  export type EmailTemplateAssignmentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    /**
     * The data needed to create a EmailTemplateAssignment.
     */
    data: XOR<EmailTemplateAssignmentCreateInput, EmailTemplateAssignmentUncheckedCreateInput>
  }

  /**
   * EmailTemplateAssignment createMany
   */
  export type EmailTemplateAssignmentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many EmailTemplateAssignments.
     */
    data: EmailTemplateAssignmentCreateManyInput | EmailTemplateAssignmentCreateManyInput[]
  }

  /**
   * EmailTemplateAssignment update
   */
  export type EmailTemplateAssignmentUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    /**
     * The data needed to update a EmailTemplateAssignment.
     */
    data: XOR<EmailTemplateAssignmentUpdateInput, EmailTemplateAssignmentUncheckedUpdateInput>
    /**
     * Choose, which EmailTemplateAssignment to update.
     */
    where: EmailTemplateAssignmentWhereUniqueInput
  }

  /**
   * EmailTemplateAssignment updateMany
   */
  export type EmailTemplateAssignmentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update EmailTemplateAssignments.
     */
    data: XOR<EmailTemplateAssignmentUpdateManyMutationInput, EmailTemplateAssignmentUncheckedUpdateManyInput>
    /**
     * Filter which EmailTemplateAssignments to update
     */
    where?: EmailTemplateAssignmentWhereInput
  }

  /**
   * EmailTemplateAssignment upsert
   */
  export type EmailTemplateAssignmentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    /**
     * The filter to search for the EmailTemplateAssignment to update in case it exists.
     */
    where: EmailTemplateAssignmentWhereUniqueInput
    /**
     * In case the EmailTemplateAssignment found by the `where` argument doesn't exist, create a new EmailTemplateAssignment with this data.
     */
    create: XOR<EmailTemplateAssignmentCreateInput, EmailTemplateAssignmentUncheckedCreateInput>
    /**
     * In case the EmailTemplateAssignment was found with the provided `where` argument, update it with this data.
     */
    update: XOR<EmailTemplateAssignmentUpdateInput, EmailTemplateAssignmentUncheckedUpdateInput>
  }

  /**
   * EmailTemplateAssignment delete
   */
  export type EmailTemplateAssignmentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
    /**
     * Filter which EmailTemplateAssignment to delete.
     */
    where: EmailTemplateAssignmentWhereUniqueInput
  }

  /**
   * EmailTemplateAssignment deleteMany
   */
  export type EmailTemplateAssignmentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailTemplateAssignments to delete
     */
    where?: EmailTemplateAssignmentWhereInput
  }

  /**
   * EmailTemplateAssignment without action
   */
  export type EmailTemplateAssignmentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateAssignment
     */
    select?: EmailTemplateAssignmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateAssignmentInclude<ExtArgs> | null
  }


  /**
   * Model EmailProcessJob
   */

  export type AggregateEmailProcessJob = {
    _count: EmailProcessJobCountAggregateOutputType | null
    _avg: EmailProcessJobAvgAggregateOutputType | null
    _sum: EmailProcessJobSumAggregateOutputType | null
    _min: EmailProcessJobMinAggregateOutputType | null
    _max: EmailProcessJobMaxAggregateOutputType | null
  }

  export type EmailProcessJobAvgAggregateOutputType = {
    id: number | null
    user_id: number | null
    company_id: number | null
    status_id: number | null
    created_by: number | null
  }

  export type EmailProcessJobSumAggregateOutputType = {
    id: number | null
    user_id: number | null
    company_id: number | null
    status_id: number | null
    created_by: number | null
  }

  export type EmailProcessJobMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    email_template_process_slug: string | null
    unique_id: string | null
    user_id: number | null
    prefill_data: string | null
    company_id: number | null
    status_id: number | null
    created_at: Date | null
    created_by: number | null
  }

  export type EmailProcessJobMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    email_template_process_slug: string | null
    unique_id: string | null
    user_id: number | null
    prefill_data: string | null
    company_id: number | null
    status_id: number | null
    created_at: Date | null
    created_by: number | null
  }

  export type EmailProcessJobCountAggregateOutputType = {
    id: number
    uuid: number
    email_template_process_slug: number
    unique_id: number
    user_id: number
    prefill_data: number
    company_id: number
    status_id: number
    created_at: number
    created_by: number
    _all: number
  }


  export type EmailProcessJobAvgAggregateInputType = {
    id?: true
    user_id?: true
    company_id?: true
    status_id?: true
    created_by?: true
  }

  export type EmailProcessJobSumAggregateInputType = {
    id?: true
    user_id?: true
    company_id?: true
    status_id?: true
    created_by?: true
  }

  export type EmailProcessJobMinAggregateInputType = {
    id?: true
    uuid?: true
    email_template_process_slug?: true
    unique_id?: true
    user_id?: true
    prefill_data?: true
    company_id?: true
    status_id?: true
    created_at?: true
    created_by?: true
  }

  export type EmailProcessJobMaxAggregateInputType = {
    id?: true
    uuid?: true
    email_template_process_slug?: true
    unique_id?: true
    user_id?: true
    prefill_data?: true
    company_id?: true
    status_id?: true
    created_at?: true
    created_by?: true
  }

  export type EmailProcessJobCountAggregateInputType = {
    id?: true
    uuid?: true
    email_template_process_slug?: true
    unique_id?: true
    user_id?: true
    prefill_data?: true
    company_id?: true
    status_id?: true
    created_at?: true
    created_by?: true
    _all?: true
  }

  export type EmailProcessJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailProcessJob to aggregate.
     */
    where?: EmailProcessJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailProcessJobs to fetch.
     */
    orderBy?: EmailProcessJobOrderByWithRelationInput | EmailProcessJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: EmailProcessJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailProcessJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailProcessJobs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned EmailProcessJobs
    **/
    _count?: true | EmailProcessJobCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: EmailProcessJobAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: EmailProcessJobSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: EmailProcessJobMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: EmailProcessJobMaxAggregateInputType
  }

  export type GetEmailProcessJobAggregateType<T extends EmailProcessJobAggregateArgs> = {
        [P in keyof T & keyof AggregateEmailProcessJob]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateEmailProcessJob[P]>
      : GetScalarType<T[P], AggregateEmailProcessJob[P]>
  }




  export type EmailProcessJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: EmailProcessJobWhereInput
    orderBy?: EmailProcessJobOrderByWithAggregationInput | EmailProcessJobOrderByWithAggregationInput[]
    by: EmailProcessJobScalarFieldEnum[] | EmailProcessJobScalarFieldEnum
    having?: EmailProcessJobScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: EmailProcessJobCountAggregateInputType | true
    _avg?: EmailProcessJobAvgAggregateInputType
    _sum?: EmailProcessJobSumAggregateInputType
    _min?: EmailProcessJobMinAggregateInputType
    _max?: EmailProcessJobMaxAggregateInputType
  }

  export type EmailProcessJobGroupByOutputType = {
    id: number
    uuid: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data: string | null
    company_id: number
    status_id: number
    created_at: Date
    created_by: number | null
    _count: EmailProcessJobCountAggregateOutputType | null
    _avg: EmailProcessJobAvgAggregateOutputType | null
    _sum: EmailProcessJobSumAggregateOutputType | null
    _min: EmailProcessJobMinAggregateOutputType | null
    _max: EmailProcessJobMaxAggregateOutputType | null
  }

  type GetEmailProcessJobGroupByPayload<T extends EmailProcessJobGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<EmailProcessJobGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof EmailProcessJobGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], EmailProcessJobGroupByOutputType[P]>
            : GetScalarType<T[P], EmailProcessJobGroupByOutputType[P]>
        }
      >
    >


  export type EmailProcessJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    email_template_process_slug?: boolean
    unique_id?: boolean
    user_id?: boolean
    prefill_data?: boolean
    company_id?: boolean
    status_id?: boolean
    created_at?: boolean
    created_by?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | EmailProcessJob$createdArgs<ExtArgs>
  }, ExtArgs["result"]["emailProcessJob"]>


  export type EmailProcessJobSelectScalar = {
    id?: boolean
    uuid?: boolean
    email_template_process_slug?: boolean
    unique_id?: boolean
    user_id?: boolean
    prefill_data?: boolean
    company_id?: boolean
    status_id?: boolean
    created_at?: boolean
    created_by?: boolean
  }

  export type EmailProcessJobInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | EmailProcessJob$createdArgs<ExtArgs>
  }

  export type $EmailProcessJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "EmailProcessJob"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      created: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      email_template_process_slug: string
      unique_id: string
      user_id: number
      prefill_data: string | null
      company_id: number
      status_id: number
      created_at: Date
      created_by: number | null
    }, ExtArgs["result"]["emailProcessJob"]>
    composites: {}
  }

  type EmailProcessJobGetPayload<S extends boolean | null | undefined | EmailProcessJobDefaultArgs> = $Result.GetResult<Prisma.$EmailProcessJobPayload, S>

  type EmailProcessJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<EmailProcessJobFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: EmailProcessJobCountAggregateInputType | true
    }

  export interface EmailProcessJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EmailProcessJob'], meta: { name: 'EmailProcessJob' } }
    /**
     * Find zero or one EmailProcessJob that matches the filter.
     * @param {EmailProcessJobFindUniqueArgs} args - Arguments to find a EmailProcessJob
     * @example
     * // Get one EmailProcessJob
     * const emailProcessJob = await prisma.emailProcessJob.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends EmailProcessJobFindUniqueArgs>(args: SelectSubset<T, EmailProcessJobFindUniqueArgs<ExtArgs>>): Prisma__EmailProcessJobClient<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one EmailProcessJob that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {EmailProcessJobFindUniqueOrThrowArgs} args - Arguments to find a EmailProcessJob
     * @example
     * // Get one EmailProcessJob
     * const emailProcessJob = await prisma.emailProcessJob.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends EmailProcessJobFindUniqueOrThrowArgs>(args: SelectSubset<T, EmailProcessJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__EmailProcessJobClient<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first EmailProcessJob 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 {EmailProcessJobFindFirstArgs} args - Arguments to find a EmailProcessJob
     * @example
     * // Get one EmailProcessJob
     * const emailProcessJob = await prisma.emailProcessJob.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends EmailProcessJobFindFirstArgs>(args?: SelectSubset<T, EmailProcessJobFindFirstArgs<ExtArgs>>): Prisma__EmailProcessJobClient<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first EmailProcessJob 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 {EmailProcessJobFindFirstOrThrowArgs} args - Arguments to find a EmailProcessJob
     * @example
     * // Get one EmailProcessJob
     * const emailProcessJob = await prisma.emailProcessJob.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends EmailProcessJobFindFirstOrThrowArgs>(args?: SelectSubset<T, EmailProcessJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__EmailProcessJobClient<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more EmailProcessJobs 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 {EmailProcessJobFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all EmailProcessJobs
     * const emailProcessJobs = await prisma.emailProcessJob.findMany()
     * 
     * // Get first 10 EmailProcessJobs
     * const emailProcessJobs = await prisma.emailProcessJob.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const emailProcessJobWithIdOnly = await prisma.emailProcessJob.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends EmailProcessJobFindManyArgs>(args?: SelectSubset<T, EmailProcessJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a EmailProcessJob.
     * @param {EmailProcessJobCreateArgs} args - Arguments to create a EmailProcessJob.
     * @example
     * // Create one EmailProcessJob
     * const EmailProcessJob = await prisma.emailProcessJob.create({
     *   data: {
     *     // ... data to create a EmailProcessJob
     *   }
     * })
     * 
     */
    create<T extends EmailProcessJobCreateArgs>(args: SelectSubset<T, EmailProcessJobCreateArgs<ExtArgs>>): Prisma__EmailProcessJobClient<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many EmailProcessJobs.
     * @param {EmailProcessJobCreateManyArgs} args - Arguments to create many EmailProcessJobs.
     * @example
     * // Create many EmailProcessJobs
     * const emailProcessJob = await prisma.emailProcessJob.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends EmailProcessJobCreateManyArgs>(args?: SelectSubset<T, EmailProcessJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a EmailProcessJob.
     * @param {EmailProcessJobDeleteArgs} args - Arguments to delete one EmailProcessJob.
     * @example
     * // Delete one EmailProcessJob
     * const EmailProcessJob = await prisma.emailProcessJob.delete({
     *   where: {
     *     // ... filter to delete one EmailProcessJob
     *   }
     * })
     * 
     */
    delete<T extends EmailProcessJobDeleteArgs>(args: SelectSubset<T, EmailProcessJobDeleteArgs<ExtArgs>>): Prisma__EmailProcessJobClient<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one EmailProcessJob.
     * @param {EmailProcessJobUpdateArgs} args - Arguments to update one EmailProcessJob.
     * @example
     * // Update one EmailProcessJob
     * const emailProcessJob = await prisma.emailProcessJob.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends EmailProcessJobUpdateArgs>(args: SelectSubset<T, EmailProcessJobUpdateArgs<ExtArgs>>): Prisma__EmailProcessJobClient<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more EmailProcessJobs.
     * @param {EmailProcessJobDeleteManyArgs} args - Arguments to filter EmailProcessJobs to delete.
     * @example
     * // Delete a few EmailProcessJobs
     * const { count } = await prisma.emailProcessJob.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends EmailProcessJobDeleteManyArgs>(args?: SelectSubset<T, EmailProcessJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more EmailProcessJobs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailProcessJobUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many EmailProcessJobs
     * const emailProcessJob = await prisma.emailProcessJob.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends EmailProcessJobUpdateManyArgs>(args: SelectSubset<T, EmailProcessJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one EmailProcessJob.
     * @param {EmailProcessJobUpsertArgs} args - Arguments to update or create a EmailProcessJob.
     * @example
     * // Update or create a EmailProcessJob
     * const emailProcessJob = await prisma.emailProcessJob.upsert({
     *   create: {
     *     // ... data to create a EmailProcessJob
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the EmailProcessJob we want to update
     *   }
     * })
     */
    upsert<T extends EmailProcessJobUpsertArgs>(args: SelectSubset<T, EmailProcessJobUpsertArgs<ExtArgs>>): Prisma__EmailProcessJobClient<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of EmailProcessJobs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailProcessJobCountArgs} args - Arguments to filter EmailProcessJobs to count.
     * @example
     * // Count the number of EmailProcessJobs
     * const count = await prisma.emailProcessJob.count({
     *   where: {
     *     // ... the filter for the EmailProcessJobs we want to count
     *   }
     * })
    **/
    count<T extends EmailProcessJobCountArgs>(
      args?: Subset<T, EmailProcessJobCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], EmailProcessJobCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a EmailProcessJob.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailProcessJobAggregateArgs} 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<T extends EmailProcessJobAggregateArgs>(args: Subset<T, EmailProcessJobAggregateArgs>): Prisma.PrismaPromise<GetEmailProcessJobAggregateType<T>>

    /**
     * Group by EmailProcessJob.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {EmailProcessJobGroupByArgs} 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 EmailProcessJobGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: EmailProcessJobGroupByArgs['orderBy'] }
        : { orderBy?: EmailProcessJobGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, EmailProcessJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailProcessJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the EmailProcessJob model
   */
  readonly fields: EmailProcessJobFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for EmailProcessJob.
   * 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__EmailProcessJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created<T extends EmailProcessJob$createdArgs<ExtArgs> = {}>(args?: Subset<T, EmailProcessJob$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the EmailProcessJob model
   */ 
  interface EmailProcessJobFieldRefs {
    readonly id: FieldRef<"EmailProcessJob", 'Int'>
    readonly uuid: FieldRef<"EmailProcessJob", 'String'>
    readonly email_template_process_slug: FieldRef<"EmailProcessJob", 'String'>
    readonly unique_id: FieldRef<"EmailProcessJob", 'String'>
    readonly user_id: FieldRef<"EmailProcessJob", 'Int'>
    readonly prefill_data: FieldRef<"EmailProcessJob", 'String'>
    readonly company_id: FieldRef<"EmailProcessJob", 'Int'>
    readonly status_id: FieldRef<"EmailProcessJob", 'Int'>
    readonly created_at: FieldRef<"EmailProcessJob", 'DateTime'>
    readonly created_by: FieldRef<"EmailProcessJob", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * EmailProcessJob findUnique
   */
  export type EmailProcessJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    /**
     * Filter, which EmailProcessJob to fetch.
     */
    where: EmailProcessJobWhereUniqueInput
  }

  /**
   * EmailProcessJob findUniqueOrThrow
   */
  export type EmailProcessJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    /**
     * Filter, which EmailProcessJob to fetch.
     */
    where: EmailProcessJobWhereUniqueInput
  }

  /**
   * EmailProcessJob findFirst
   */
  export type EmailProcessJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    /**
     * Filter, which EmailProcessJob to fetch.
     */
    where?: EmailProcessJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailProcessJobs to fetch.
     */
    orderBy?: EmailProcessJobOrderByWithRelationInput | EmailProcessJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailProcessJobs.
     */
    cursor?: EmailProcessJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailProcessJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailProcessJobs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailProcessJobs.
     */
    distinct?: EmailProcessJobScalarFieldEnum | EmailProcessJobScalarFieldEnum[]
  }

  /**
   * EmailProcessJob findFirstOrThrow
   */
  export type EmailProcessJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    /**
     * Filter, which EmailProcessJob to fetch.
     */
    where?: EmailProcessJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailProcessJobs to fetch.
     */
    orderBy?: EmailProcessJobOrderByWithRelationInput | EmailProcessJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for EmailProcessJobs.
     */
    cursor?: EmailProcessJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailProcessJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailProcessJobs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of EmailProcessJobs.
     */
    distinct?: EmailProcessJobScalarFieldEnum | EmailProcessJobScalarFieldEnum[]
  }

  /**
   * EmailProcessJob findMany
   */
  export type EmailProcessJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    /**
     * Filter, which EmailProcessJobs to fetch.
     */
    where?: EmailProcessJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of EmailProcessJobs to fetch.
     */
    orderBy?: EmailProcessJobOrderByWithRelationInput | EmailProcessJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing EmailProcessJobs.
     */
    cursor?: EmailProcessJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` EmailProcessJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` EmailProcessJobs.
     */
    skip?: number
    distinct?: EmailProcessJobScalarFieldEnum | EmailProcessJobScalarFieldEnum[]
  }

  /**
   * EmailProcessJob create
   */
  export type EmailProcessJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    /**
     * The data needed to create a EmailProcessJob.
     */
    data: XOR<EmailProcessJobCreateInput, EmailProcessJobUncheckedCreateInput>
  }

  /**
   * EmailProcessJob createMany
   */
  export type EmailProcessJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many EmailProcessJobs.
     */
    data: EmailProcessJobCreateManyInput | EmailProcessJobCreateManyInput[]
  }

  /**
   * EmailProcessJob update
   */
  export type EmailProcessJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    /**
     * The data needed to update a EmailProcessJob.
     */
    data: XOR<EmailProcessJobUpdateInput, EmailProcessJobUncheckedUpdateInput>
    /**
     * Choose, which EmailProcessJob to update.
     */
    where: EmailProcessJobWhereUniqueInput
  }

  /**
   * EmailProcessJob updateMany
   */
  export type EmailProcessJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update EmailProcessJobs.
     */
    data: XOR<EmailProcessJobUpdateManyMutationInput, EmailProcessJobUncheckedUpdateManyInput>
    /**
     * Filter which EmailProcessJobs to update
     */
    where?: EmailProcessJobWhereInput
  }

  /**
   * EmailProcessJob upsert
   */
  export type EmailProcessJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    /**
     * The filter to search for the EmailProcessJob to update in case it exists.
     */
    where: EmailProcessJobWhereUniqueInput
    /**
     * In case the EmailProcessJob found by the `where` argument doesn't exist, create a new EmailProcessJob with this data.
     */
    create: XOR<EmailProcessJobCreateInput, EmailProcessJobUncheckedCreateInput>
    /**
     * In case the EmailProcessJob was found with the provided `where` argument, update it with this data.
     */
    update: XOR<EmailProcessJobUpdateInput, EmailProcessJobUncheckedUpdateInput>
  }

  /**
   * EmailProcessJob delete
   */
  export type EmailProcessJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    /**
     * Filter which EmailProcessJob to delete.
     */
    where: EmailProcessJobWhereUniqueInput
  }

  /**
   * EmailProcessJob deleteMany
   */
  export type EmailProcessJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which EmailProcessJobs to delete
     */
    where?: EmailProcessJobWhereInput
  }

  /**
   * EmailProcessJob.created
   */
  export type EmailProcessJob$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * EmailProcessJob without action
   */
  export type EmailProcessJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
  }


  /**
   * Model NotificationJob
   */

  export type AggregateNotificationJob = {
    _count: NotificationJobCountAggregateOutputType | null
    _avg: NotificationJobAvgAggregateOutputType | null
    _sum: NotificationJobSumAggregateOutputType | null
    _min: NotificationJobMinAggregateOutputType | null
    _max: NotificationJobMaxAggregateOutputType | null
  }

  export type NotificationJobAvgAggregateOutputType = {
    id: number | null
    company_id: number | null
    status_id: number | null
    created_by: number | null
  }

  export type NotificationJobSumAggregateOutputType = {
    id: number | null
    company_id: number | null
    status_id: number | null
    created_by: number | null
  }

  export type NotificationJobMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    process_slug: string | null
    notification_to: string | null
    notification_subject: string | null
    notification_content: string | null
    notification_cc: string | null
    notification_bcc: string | null
    notification_type_id: string | null
    notification_status_id: string | null
    company_id: number | null
    status_id: number | null
    created_at: Date | null
    created_by: number | null
    sent_at: Date | null
    read_at: Date | null
  }

  export type NotificationJobMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    process_slug: string | null
    notification_to: string | null
    notification_subject: string | null
    notification_content: string | null
    notification_cc: string | null
    notification_bcc: string | null
    notification_type_id: string | null
    notification_status_id: string | null
    company_id: number | null
    status_id: number | null
    created_at: Date | null
    created_by: number | null
    sent_at: Date | null
    read_at: Date | null
  }

  export type NotificationJobCountAggregateOutputType = {
    id: number
    uuid: number
    process_slug: number
    notification_to: number
    notification_subject: number
    notification_content: number
    notification_cc: number
    notification_bcc: number
    notification_type_id: number
    notification_status_id: number
    company_id: number
    status_id: number
    created_at: number
    created_by: number
    sent_at: number
    read_at: number
    _all: number
  }


  export type NotificationJobAvgAggregateInputType = {
    id?: true
    company_id?: true
    status_id?: true
    created_by?: true
  }

  export type NotificationJobSumAggregateInputType = {
    id?: true
    company_id?: true
    status_id?: true
    created_by?: true
  }

  export type NotificationJobMinAggregateInputType = {
    id?: true
    uuid?: true
    process_slug?: true
    notification_to?: true
    notification_subject?: true
    notification_content?: true
    notification_cc?: true
    notification_bcc?: true
    notification_type_id?: true
    notification_status_id?: true
    company_id?: true
    status_id?: true
    created_at?: true
    created_by?: true
    sent_at?: true
    read_at?: true
  }

  export type NotificationJobMaxAggregateInputType = {
    id?: true
    uuid?: true
    process_slug?: true
    notification_to?: true
    notification_subject?: true
    notification_content?: true
    notification_cc?: true
    notification_bcc?: true
    notification_type_id?: true
    notification_status_id?: true
    company_id?: true
    status_id?: true
    created_at?: true
    created_by?: true
    sent_at?: true
    read_at?: true
  }

  export type NotificationJobCountAggregateInputType = {
    id?: true
    uuid?: true
    process_slug?: true
    notification_to?: true
    notification_subject?: true
    notification_content?: true
    notification_cc?: true
    notification_bcc?: true
    notification_type_id?: true
    notification_status_id?: true
    company_id?: true
    status_id?: true
    created_at?: true
    created_by?: true
    sent_at?: true
    read_at?: true
    _all?: true
  }

  export type NotificationJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which NotificationJob to aggregate.
     */
    where?: NotificationJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of NotificationJobs to fetch.
     */
    orderBy?: NotificationJobOrderByWithRelationInput | NotificationJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: NotificationJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` NotificationJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` NotificationJobs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned NotificationJobs
    **/
    _count?: true | NotificationJobCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: NotificationJobAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: NotificationJobSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: NotificationJobMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: NotificationJobMaxAggregateInputType
  }

  export type GetNotificationJobAggregateType<T extends NotificationJobAggregateArgs> = {
        [P in keyof T & keyof AggregateNotificationJob]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateNotificationJob[P]>
      : GetScalarType<T[P], AggregateNotificationJob[P]>
  }




  export type NotificationJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: NotificationJobWhereInput
    orderBy?: NotificationJobOrderByWithAggregationInput | NotificationJobOrderByWithAggregationInput[]
    by: NotificationJobScalarFieldEnum[] | NotificationJobScalarFieldEnum
    having?: NotificationJobScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: NotificationJobCountAggregateInputType | true
    _avg?: NotificationJobAvgAggregateInputType
    _sum?: NotificationJobSumAggregateInputType
    _min?: NotificationJobMinAggregateInputType
    _max?: NotificationJobMaxAggregateInputType
  }

  export type NotificationJobGroupByOutputType = {
    id: number
    uuid: string
    process_slug: string
    notification_to: string | null
    notification_subject: string | null
    notification_content: string | null
    notification_cc: string | null
    notification_bcc: string | null
    notification_type_id: string
    notification_status_id: string
    company_id: number
    status_id: number
    created_at: Date
    created_by: number | null
    sent_at: Date | null
    read_at: Date | null
    _count: NotificationJobCountAggregateOutputType | null
    _avg: NotificationJobAvgAggregateOutputType | null
    _sum: NotificationJobSumAggregateOutputType | null
    _min: NotificationJobMinAggregateOutputType | null
    _max: NotificationJobMaxAggregateOutputType | null
  }

  type GetNotificationJobGroupByPayload<T extends NotificationJobGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<NotificationJobGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof NotificationJobGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], NotificationJobGroupByOutputType[P]>
            : GetScalarType<T[P], NotificationJobGroupByOutputType[P]>
        }
      >
    >


  export type NotificationJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    process_slug?: boolean
    notification_to?: boolean
    notification_subject?: boolean
    notification_content?: boolean
    notification_cc?: boolean
    notification_bcc?: boolean
    notification_type_id?: boolean
    notification_status_id?: boolean
    company_id?: boolean
    status_id?: boolean
    created_at?: boolean
    created_by?: boolean
    sent_at?: boolean
    read_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | NotificationJob$createdArgs<ExtArgs>
  }, ExtArgs["result"]["notificationJob"]>


  export type NotificationJobSelectScalar = {
    id?: boolean
    uuid?: boolean
    process_slug?: boolean
    notification_to?: boolean
    notification_subject?: boolean
    notification_content?: boolean
    notification_cc?: boolean
    notification_bcc?: boolean
    notification_type_id?: boolean
    notification_status_id?: boolean
    company_id?: boolean
    status_id?: boolean
    created_at?: boolean
    created_by?: boolean
    sent_at?: boolean
    read_at?: boolean
  }

  export type NotificationJobInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | NotificationJob$createdArgs<ExtArgs>
  }

  export type $NotificationJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "NotificationJob"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      created: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      process_slug: string
      notification_to: string | null
      notification_subject: string | null
      notification_content: string | null
      notification_cc: string | null
      notification_bcc: string | null
      notification_type_id: string
      notification_status_id: string
      company_id: number
      status_id: number
      created_at: Date
      created_by: number | null
      sent_at: Date | null
      read_at: Date | null
    }, ExtArgs["result"]["notificationJob"]>
    composites: {}
  }

  type NotificationJobGetPayload<S extends boolean | null | undefined | NotificationJobDefaultArgs> = $Result.GetResult<Prisma.$NotificationJobPayload, S>

  type NotificationJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<NotificationJobFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: NotificationJobCountAggregateInputType | true
    }

  export interface NotificationJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['NotificationJob'], meta: { name: 'NotificationJob' } }
    /**
     * Find zero or one NotificationJob that matches the filter.
     * @param {NotificationJobFindUniqueArgs} args - Arguments to find a NotificationJob
     * @example
     * // Get one NotificationJob
     * const notificationJob = await prisma.notificationJob.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends NotificationJobFindUniqueArgs>(args: SelectSubset<T, NotificationJobFindUniqueArgs<ExtArgs>>): Prisma__NotificationJobClient<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one NotificationJob that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {NotificationJobFindUniqueOrThrowArgs} args - Arguments to find a NotificationJob
     * @example
     * // Get one NotificationJob
     * const notificationJob = await prisma.notificationJob.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends NotificationJobFindUniqueOrThrowArgs>(args: SelectSubset<T, NotificationJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__NotificationJobClient<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first NotificationJob 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 {NotificationJobFindFirstArgs} args - Arguments to find a NotificationJob
     * @example
     * // Get one NotificationJob
     * const notificationJob = await prisma.notificationJob.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends NotificationJobFindFirstArgs>(args?: SelectSubset<T, NotificationJobFindFirstArgs<ExtArgs>>): Prisma__NotificationJobClient<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first NotificationJob 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 {NotificationJobFindFirstOrThrowArgs} args - Arguments to find a NotificationJob
     * @example
     * // Get one NotificationJob
     * const notificationJob = await prisma.notificationJob.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends NotificationJobFindFirstOrThrowArgs>(args?: SelectSubset<T, NotificationJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__NotificationJobClient<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more NotificationJobs 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 {NotificationJobFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all NotificationJobs
     * const notificationJobs = await prisma.notificationJob.findMany()
     * 
     * // Get first 10 NotificationJobs
     * const notificationJobs = await prisma.notificationJob.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const notificationJobWithIdOnly = await prisma.notificationJob.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends NotificationJobFindManyArgs>(args?: SelectSubset<T, NotificationJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a NotificationJob.
     * @param {NotificationJobCreateArgs} args - Arguments to create a NotificationJob.
     * @example
     * // Create one NotificationJob
     * const NotificationJob = await prisma.notificationJob.create({
     *   data: {
     *     // ... data to create a NotificationJob
     *   }
     * })
     * 
     */
    create<T extends NotificationJobCreateArgs>(args: SelectSubset<T, NotificationJobCreateArgs<ExtArgs>>): Prisma__NotificationJobClient<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many NotificationJobs.
     * @param {NotificationJobCreateManyArgs} args - Arguments to create many NotificationJobs.
     * @example
     * // Create many NotificationJobs
     * const notificationJob = await prisma.notificationJob.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends NotificationJobCreateManyArgs>(args?: SelectSubset<T, NotificationJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a NotificationJob.
     * @param {NotificationJobDeleteArgs} args - Arguments to delete one NotificationJob.
     * @example
     * // Delete one NotificationJob
     * const NotificationJob = await prisma.notificationJob.delete({
     *   where: {
     *     // ... filter to delete one NotificationJob
     *   }
     * })
     * 
     */
    delete<T extends NotificationJobDeleteArgs>(args: SelectSubset<T, NotificationJobDeleteArgs<ExtArgs>>): Prisma__NotificationJobClient<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one NotificationJob.
     * @param {NotificationJobUpdateArgs} args - Arguments to update one NotificationJob.
     * @example
     * // Update one NotificationJob
     * const notificationJob = await prisma.notificationJob.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends NotificationJobUpdateArgs>(args: SelectSubset<T, NotificationJobUpdateArgs<ExtArgs>>): Prisma__NotificationJobClient<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more NotificationJobs.
     * @param {NotificationJobDeleteManyArgs} args - Arguments to filter NotificationJobs to delete.
     * @example
     * // Delete a few NotificationJobs
     * const { count } = await prisma.notificationJob.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends NotificationJobDeleteManyArgs>(args?: SelectSubset<T, NotificationJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more NotificationJobs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {NotificationJobUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many NotificationJobs
     * const notificationJob = await prisma.notificationJob.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends NotificationJobUpdateManyArgs>(args: SelectSubset<T, NotificationJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one NotificationJob.
     * @param {NotificationJobUpsertArgs} args - Arguments to update or create a NotificationJob.
     * @example
     * // Update or create a NotificationJob
     * const notificationJob = await prisma.notificationJob.upsert({
     *   create: {
     *     // ... data to create a NotificationJob
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the NotificationJob we want to update
     *   }
     * })
     */
    upsert<T extends NotificationJobUpsertArgs>(args: SelectSubset<T, NotificationJobUpsertArgs<ExtArgs>>): Prisma__NotificationJobClient<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of NotificationJobs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {NotificationJobCountArgs} args - Arguments to filter NotificationJobs to count.
     * @example
     * // Count the number of NotificationJobs
     * const count = await prisma.notificationJob.count({
     *   where: {
     *     // ... the filter for the NotificationJobs we want to count
     *   }
     * })
    **/
    count<T extends NotificationJobCountArgs>(
      args?: Subset<T, NotificationJobCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], NotificationJobCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a NotificationJob.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {NotificationJobAggregateArgs} 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<T extends NotificationJobAggregateArgs>(args: Subset<T, NotificationJobAggregateArgs>): Prisma.PrismaPromise<GetNotificationJobAggregateType<T>>

    /**
     * Group by NotificationJob.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {NotificationJobGroupByArgs} 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 NotificationJobGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: NotificationJobGroupByArgs['orderBy'] }
        : { orderBy?: NotificationJobGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, NotificationJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNotificationJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the NotificationJob model
   */
  readonly fields: NotificationJobFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for NotificationJob.
   * 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__NotificationJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created<T extends NotificationJob$createdArgs<ExtArgs> = {}>(args?: Subset<T, NotificationJob$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the NotificationJob model
   */ 
  interface NotificationJobFieldRefs {
    readonly id: FieldRef<"NotificationJob", 'Int'>
    readonly uuid: FieldRef<"NotificationJob", 'String'>
    readonly process_slug: FieldRef<"NotificationJob", 'String'>
    readonly notification_to: FieldRef<"NotificationJob", 'String'>
    readonly notification_subject: FieldRef<"NotificationJob", 'String'>
    readonly notification_content: FieldRef<"NotificationJob", 'String'>
    readonly notification_cc: FieldRef<"NotificationJob", 'String'>
    readonly notification_bcc: FieldRef<"NotificationJob", 'String'>
    readonly notification_type_id: FieldRef<"NotificationJob", 'String'>
    readonly notification_status_id: FieldRef<"NotificationJob", 'String'>
    readonly company_id: FieldRef<"NotificationJob", 'Int'>
    readonly status_id: FieldRef<"NotificationJob", 'Int'>
    readonly created_at: FieldRef<"NotificationJob", 'DateTime'>
    readonly created_by: FieldRef<"NotificationJob", 'Int'>
    readonly sent_at: FieldRef<"NotificationJob", 'DateTime'>
    readonly read_at: FieldRef<"NotificationJob", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * NotificationJob findUnique
   */
  export type NotificationJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    /**
     * Filter, which NotificationJob to fetch.
     */
    where: NotificationJobWhereUniqueInput
  }

  /**
   * NotificationJob findUniqueOrThrow
   */
  export type NotificationJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    /**
     * Filter, which NotificationJob to fetch.
     */
    where: NotificationJobWhereUniqueInput
  }

  /**
   * NotificationJob findFirst
   */
  export type NotificationJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    /**
     * Filter, which NotificationJob to fetch.
     */
    where?: NotificationJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of NotificationJobs to fetch.
     */
    orderBy?: NotificationJobOrderByWithRelationInput | NotificationJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for NotificationJobs.
     */
    cursor?: NotificationJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` NotificationJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` NotificationJobs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of NotificationJobs.
     */
    distinct?: NotificationJobScalarFieldEnum | NotificationJobScalarFieldEnum[]
  }

  /**
   * NotificationJob findFirstOrThrow
   */
  export type NotificationJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    /**
     * Filter, which NotificationJob to fetch.
     */
    where?: NotificationJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of NotificationJobs to fetch.
     */
    orderBy?: NotificationJobOrderByWithRelationInput | NotificationJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for NotificationJobs.
     */
    cursor?: NotificationJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` NotificationJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` NotificationJobs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of NotificationJobs.
     */
    distinct?: NotificationJobScalarFieldEnum | NotificationJobScalarFieldEnum[]
  }

  /**
   * NotificationJob findMany
   */
  export type NotificationJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    /**
     * Filter, which NotificationJobs to fetch.
     */
    where?: NotificationJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of NotificationJobs to fetch.
     */
    orderBy?: NotificationJobOrderByWithRelationInput | NotificationJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing NotificationJobs.
     */
    cursor?: NotificationJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` NotificationJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` NotificationJobs.
     */
    skip?: number
    distinct?: NotificationJobScalarFieldEnum | NotificationJobScalarFieldEnum[]
  }

  /**
   * NotificationJob create
   */
  export type NotificationJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    /**
     * The data needed to create a NotificationJob.
     */
    data: XOR<NotificationJobCreateInput, NotificationJobUncheckedCreateInput>
  }

  /**
   * NotificationJob createMany
   */
  export type NotificationJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many NotificationJobs.
     */
    data: NotificationJobCreateManyInput | NotificationJobCreateManyInput[]
  }

  /**
   * NotificationJob update
   */
  export type NotificationJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    /**
     * The data needed to update a NotificationJob.
     */
    data: XOR<NotificationJobUpdateInput, NotificationJobUncheckedUpdateInput>
    /**
     * Choose, which NotificationJob to update.
     */
    where: NotificationJobWhereUniqueInput
  }

  /**
   * NotificationJob updateMany
   */
  export type NotificationJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update NotificationJobs.
     */
    data: XOR<NotificationJobUpdateManyMutationInput, NotificationJobUncheckedUpdateManyInput>
    /**
     * Filter which NotificationJobs to update
     */
    where?: NotificationJobWhereInput
  }

  /**
   * NotificationJob upsert
   */
  export type NotificationJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    /**
     * The filter to search for the NotificationJob to update in case it exists.
     */
    where: NotificationJobWhereUniqueInput
    /**
     * In case the NotificationJob found by the `where` argument doesn't exist, create a new NotificationJob with this data.
     */
    create: XOR<NotificationJobCreateInput, NotificationJobUncheckedCreateInput>
    /**
     * In case the NotificationJob was found with the provided `where` argument, update it with this data.
     */
    update: XOR<NotificationJobUpdateInput, NotificationJobUncheckedUpdateInput>
  }

  /**
   * NotificationJob delete
   */
  export type NotificationJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    /**
     * Filter which NotificationJob to delete.
     */
    where: NotificationJobWhereUniqueInput
  }

  /**
   * NotificationJob deleteMany
   */
  export type NotificationJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which NotificationJobs to delete
     */
    where?: NotificationJobWhereInput
  }

  /**
   * NotificationJob.created
   */
  export type NotificationJob$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * NotificationJob without action
   */
  export type NotificationJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
  }


  /**
   * Model ImportTemplate
   */

  export type AggregateImportTemplate = {
    _count: ImportTemplateCountAggregateOutputType | null
    _avg: ImportTemplateAvgAggregateOutputType | null
    _sum: ImportTemplateSumAggregateOutputType | null
    _min: ImportTemplateMinAggregateOutputType | null
    _max: ImportTemplateMaxAggregateOutputType | null
  }

  export type ImportTemplateAvgAggregateOutputType = {
    id: number | null
    max_row_count: number | null
    header_row: number | null
    data_start_row: number | null
    data_end_row: number | null
    batch_process_count: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type ImportTemplateSumAggregateOutputType = {
    id: number | null
    max_row_count: number | null
    header_row: number | null
    data_start_row: number | null
    data_end_row: number | null
    batch_process_count: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type ImportTemplateMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    description: string | null
    max_row_count: number | null
    header_row: number | null
    data_start_row: number | null
    data_end_row: number | null
    ignore_error_rows: boolean | null
    is_admin_module: boolean | null
    job_type: string | null
    batch_process_count: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    created_at: Date | null
    updated_by: number | null
    updated_at: Date | null
    deleted_by: number | null
    deleted_at: Date | null
  }

  export type ImportTemplateMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    description: string | null
    max_row_count: number | null
    header_row: number | null
    data_start_row: number | null
    data_end_row: number | null
    ignore_error_rows: boolean | null
    is_admin_module: boolean | null
    job_type: string | null
    batch_process_count: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    created_at: Date | null
    updated_by: number | null
    updated_at: Date | null
    deleted_by: number | null
    deleted_at: Date | null
  }

  export type ImportTemplateCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    slug: number
    description: number
    max_row_count: number
    header_row: number
    data_start_row: number
    data_end_row: number
    ignore_error_rows: number
    is_admin_module: number
    job_type: number
    batch_process_count: number
    status_id: number
    company_id: number
    created_by: number
    created_at: number
    updated_by: number
    updated_at: number
    deleted_by: number
    deleted_at: number
    _all: number
  }


  export type ImportTemplateAvgAggregateInputType = {
    id?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    batch_process_count?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type ImportTemplateSumAggregateInputType = {
    id?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    batch_process_count?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type ImportTemplateMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    ignore_error_rows?: true
    is_admin_module?: true
    job_type?: true
    batch_process_count?: true
    status_id?: true
    company_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
  }

  export type ImportTemplateMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    ignore_error_rows?: true
    is_admin_module?: true
    job_type?: true
    batch_process_count?: true
    status_id?: true
    company_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
  }

  export type ImportTemplateCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    ignore_error_rows?: true
    is_admin_module?: true
    job_type?: true
    batch_process_count?: true
    status_id?: true
    company_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
    _all?: true
  }

  export type ImportTemplateAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportTemplate to aggregate.
     */
    where?: ImportTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplates to fetch.
     */
    orderBy?: ImportTemplateOrderByWithRelationInput | ImportTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ImportTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplates.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned ImportTemplates
    **/
    _count?: true | ImportTemplateCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ImportTemplateAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ImportTemplateSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ImportTemplateMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ImportTemplateMaxAggregateInputType
  }

  export type GetImportTemplateAggregateType<T extends ImportTemplateAggregateArgs> = {
        [P in keyof T & keyof AggregateImportTemplate]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateImportTemplate[P]>
      : GetScalarType<T[P], AggregateImportTemplate[P]>
  }




  export type ImportTemplateGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateWhereInput
    orderBy?: ImportTemplateOrderByWithAggregationInput | ImportTemplateOrderByWithAggregationInput[]
    by: ImportTemplateScalarFieldEnum[] | ImportTemplateScalarFieldEnum
    having?: ImportTemplateScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ImportTemplateCountAggregateInputType | true
    _avg?: ImportTemplateAvgAggregateInputType
    _sum?: ImportTemplateSumAggregateInputType
    _min?: ImportTemplateMinAggregateInputType
    _max?: ImportTemplateMaxAggregateInputType
  }

  export type ImportTemplateGroupByOutputType = {
    id: number
    uuid: string
    name: string
    slug: string
    description: string | null
    max_row_count: number
    header_row: number
    data_start_row: number
    data_end_row: number
    ignore_error_rows: boolean
    is_admin_module: boolean
    job_type: string | null
    batch_process_count: number | null
    status_id: number
    company_id: number
    created_by: number | null
    created_at: Date
    updated_by: number | null
    updated_at: Date
    deleted_by: number | null
    deleted_at: Date | null
    _count: ImportTemplateCountAggregateOutputType | null
    _avg: ImportTemplateAvgAggregateOutputType | null
    _sum: ImportTemplateSumAggregateOutputType | null
    _min: ImportTemplateMinAggregateOutputType | null
    _max: ImportTemplateMaxAggregateOutputType | null
  }

  type GetImportTemplateGroupByPayload<T extends ImportTemplateGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ImportTemplateGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ImportTemplateGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ImportTemplateGroupByOutputType[P]>
            : GetScalarType<T[P], ImportTemplateGroupByOutputType[P]>
        }
      >
    >


  export type ImportTemplateSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    max_row_count?: boolean
    header_row?: boolean
    data_start_row?: boolean
    data_end_row?: boolean
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: boolean
    batch_process_count?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    created_at?: boolean
    updated_by?: boolean
    updated_at?: boolean
    deleted_by?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | ImportTemplate$createdArgs<ExtArgs>
    updated?: boolean | ImportTemplate$updatedArgs<ExtArgs>
    deleted?: boolean | ImportTemplate$deletedArgs<ExtArgs>
    line_items?: boolean | ImportTemplate$line_itemsArgs<ExtArgs>
    queries?: boolean | ImportTemplate$queriesArgs<ExtArgs>
    _count?: boolean | ImportTemplateCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["importTemplate"]>


  export type ImportTemplateSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    max_row_count?: boolean
    header_row?: boolean
    data_start_row?: boolean
    data_end_row?: boolean
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: boolean
    batch_process_count?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    created_at?: boolean
    updated_by?: boolean
    updated_at?: boolean
    deleted_by?: boolean
    deleted_at?: boolean
  }

  export type ImportTemplateInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | ImportTemplate$createdArgs<ExtArgs>
    updated?: boolean | ImportTemplate$updatedArgs<ExtArgs>
    deleted?: boolean | ImportTemplate$deletedArgs<ExtArgs>
    line_items?: boolean | ImportTemplate$line_itemsArgs<ExtArgs>
    queries?: boolean | ImportTemplate$queriesArgs<ExtArgs>
    _count?: boolean | ImportTemplateCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $ImportTemplatePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "ImportTemplate"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
      line_items: Prisma.$ImportTemplateLineItemPayload<ExtArgs>[]
      queries: Prisma.$ImportTemplateQueriesPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      slug: string
      description: string | null
      max_row_count: number
      header_row: number
      data_start_row: number
      data_end_row: number
      ignore_error_rows: boolean
      is_admin_module: boolean
      job_type: string | null
      batch_process_count: number | null
      status_id: number
      company_id: number
      created_by: number | null
      created_at: Date
      updated_by: number | null
      updated_at: Date
      deleted_by: number | null
      deleted_at: Date | null
    }, ExtArgs["result"]["importTemplate"]>
    composites: {}
  }

  type ImportTemplateGetPayload<S extends boolean | null | undefined | ImportTemplateDefaultArgs> = $Result.GetResult<Prisma.$ImportTemplatePayload, S>

  type ImportTemplateCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ImportTemplateFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ImportTemplateCountAggregateInputType | true
    }

  export interface ImportTemplateDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ImportTemplate'], meta: { name: 'ImportTemplate' } }
    /**
     * Find zero or one ImportTemplate that matches the filter.
     * @param {ImportTemplateFindUniqueArgs} args - Arguments to find a ImportTemplate
     * @example
     * // Get one ImportTemplate
     * const importTemplate = await prisma.importTemplate.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ImportTemplateFindUniqueArgs>(args: SelectSubset<T, ImportTemplateFindUniqueArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one ImportTemplate that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ImportTemplateFindUniqueOrThrowArgs} args - Arguments to find a ImportTemplate
     * @example
     * // Get one ImportTemplate
     * const importTemplate = await prisma.importTemplate.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ImportTemplateFindUniqueOrThrowArgs>(args: SelectSubset<T, ImportTemplateFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first ImportTemplate 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 {ImportTemplateFindFirstArgs} args - Arguments to find a ImportTemplate
     * @example
     * // Get one ImportTemplate
     * const importTemplate = await prisma.importTemplate.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ImportTemplateFindFirstArgs>(args?: SelectSubset<T, ImportTemplateFindFirstArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first ImportTemplate 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 {ImportTemplateFindFirstOrThrowArgs} args - Arguments to find a ImportTemplate
     * @example
     * // Get one ImportTemplate
     * const importTemplate = await prisma.importTemplate.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ImportTemplateFindFirstOrThrowArgs>(args?: SelectSubset<T, ImportTemplateFindFirstOrThrowArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more ImportTemplates 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 {ImportTemplateFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all ImportTemplates
     * const importTemplates = await prisma.importTemplate.findMany()
     * 
     * // Get first 10 ImportTemplates
     * const importTemplates = await prisma.importTemplate.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const importTemplateWithIdOnly = await prisma.importTemplate.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ImportTemplateFindManyArgs>(args?: SelectSubset<T, ImportTemplateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a ImportTemplate.
     * @param {ImportTemplateCreateArgs} args - Arguments to create a ImportTemplate.
     * @example
     * // Create one ImportTemplate
     * const ImportTemplate = await prisma.importTemplate.create({
     *   data: {
     *     // ... data to create a ImportTemplate
     *   }
     * })
     * 
     */
    create<T extends ImportTemplateCreateArgs>(args: SelectSubset<T, ImportTemplateCreateArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many ImportTemplates.
     * @param {ImportTemplateCreateManyArgs} args - Arguments to create many ImportTemplates.
     * @example
     * // Create many ImportTemplates
     * const importTemplate = await prisma.importTemplate.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ImportTemplateCreateManyArgs>(args?: SelectSubset<T, ImportTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a ImportTemplate.
     * @param {ImportTemplateDeleteArgs} args - Arguments to delete one ImportTemplate.
     * @example
     * // Delete one ImportTemplate
     * const ImportTemplate = await prisma.importTemplate.delete({
     *   where: {
     *     // ... filter to delete one ImportTemplate
     *   }
     * })
     * 
     */
    delete<T extends ImportTemplateDeleteArgs>(args: SelectSubset<T, ImportTemplateDeleteArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one ImportTemplate.
     * @param {ImportTemplateUpdateArgs} args - Arguments to update one ImportTemplate.
     * @example
     * // Update one ImportTemplate
     * const importTemplate = await prisma.importTemplate.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ImportTemplateUpdateArgs>(args: SelectSubset<T, ImportTemplateUpdateArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more ImportTemplates.
     * @param {ImportTemplateDeleteManyArgs} args - Arguments to filter ImportTemplates to delete.
     * @example
     * // Delete a few ImportTemplates
     * const { count } = await prisma.importTemplate.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ImportTemplateDeleteManyArgs>(args?: SelectSubset<T, ImportTemplateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more ImportTemplates.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many ImportTemplates
     * const importTemplate = await prisma.importTemplate.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ImportTemplateUpdateManyArgs>(args: SelectSubset<T, ImportTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one ImportTemplate.
     * @param {ImportTemplateUpsertArgs} args - Arguments to update or create a ImportTemplate.
     * @example
     * // Update or create a ImportTemplate
     * const importTemplate = await prisma.importTemplate.upsert({
     *   create: {
     *     // ... data to create a ImportTemplate
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the ImportTemplate we want to update
     *   }
     * })
     */
    upsert<T extends ImportTemplateUpsertArgs>(args: SelectSubset<T, ImportTemplateUpsertArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of ImportTemplates.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateCountArgs} args - Arguments to filter ImportTemplates to count.
     * @example
     * // Count the number of ImportTemplates
     * const count = await prisma.importTemplate.count({
     *   where: {
     *     // ... the filter for the ImportTemplates we want to count
     *   }
     * })
    **/
    count<T extends ImportTemplateCountArgs>(
      args?: Subset<T, ImportTemplateCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ImportTemplateCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a ImportTemplate.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateAggregateArgs} 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<T extends ImportTemplateAggregateArgs>(args: Subset<T, ImportTemplateAggregateArgs>): Prisma.PrismaPromise<GetImportTemplateAggregateType<T>>

    /**
     * Group by ImportTemplate.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateGroupByArgs} 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 ImportTemplateGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ImportTemplateGroupByArgs['orderBy'] }
        : { orderBy?: ImportTemplateGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ImportTemplateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetImportTemplateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the ImportTemplate model
   */
  readonly fields: ImportTemplateFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for ImportTemplate.
   * 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__ImportTemplateClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created<T extends ImportTemplate$createdArgs<ExtArgs> = {}>(args?: Subset<T, ImportTemplate$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends ImportTemplate$updatedArgs<ExtArgs> = {}>(args?: Subset<T, ImportTemplate$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends ImportTemplate$deletedArgs<ExtArgs> = {}>(args?: Subset<T, ImportTemplate$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    line_items<T extends ImportTemplate$line_itemsArgs<ExtArgs> = {}>(args?: Subset<T, ImportTemplate$line_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    queries<T extends ImportTemplate$queriesArgs<ExtArgs> = {}>(args?: Subset<T, ImportTemplate$queriesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the ImportTemplate model
   */ 
  interface ImportTemplateFieldRefs {
    readonly id: FieldRef<"ImportTemplate", 'Int'>
    readonly uuid: FieldRef<"ImportTemplate", 'String'>
    readonly name: FieldRef<"ImportTemplate", 'String'>
    readonly slug: FieldRef<"ImportTemplate", 'String'>
    readonly description: FieldRef<"ImportTemplate", 'String'>
    readonly max_row_count: FieldRef<"ImportTemplate", 'Int'>
    readonly header_row: FieldRef<"ImportTemplate", 'Int'>
    readonly data_start_row: FieldRef<"ImportTemplate", 'Int'>
    readonly data_end_row: FieldRef<"ImportTemplate", 'Int'>
    readonly ignore_error_rows: FieldRef<"ImportTemplate", 'Boolean'>
    readonly is_admin_module: FieldRef<"ImportTemplate", 'Boolean'>
    readonly job_type: FieldRef<"ImportTemplate", 'String'>
    readonly batch_process_count: FieldRef<"ImportTemplate", 'Int'>
    readonly status_id: FieldRef<"ImportTemplate", 'Int'>
    readonly company_id: FieldRef<"ImportTemplate", 'Int'>
    readonly created_by: FieldRef<"ImportTemplate", 'Int'>
    readonly created_at: FieldRef<"ImportTemplate", 'DateTime'>
    readonly updated_by: FieldRef<"ImportTemplate", 'Int'>
    readonly updated_at: FieldRef<"ImportTemplate", 'DateTime'>
    readonly deleted_by: FieldRef<"ImportTemplate", 'Int'>
    readonly deleted_at: FieldRef<"ImportTemplate", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * ImportTemplate findUnique
   */
  export type ImportTemplateFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplate to fetch.
     */
    where: ImportTemplateWhereUniqueInput
  }

  /**
   * ImportTemplate findUniqueOrThrow
   */
  export type ImportTemplateFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplate to fetch.
     */
    where: ImportTemplateWhereUniqueInput
  }

  /**
   * ImportTemplate findFirst
   */
  export type ImportTemplateFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplate to fetch.
     */
    where?: ImportTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplates to fetch.
     */
    orderBy?: ImportTemplateOrderByWithRelationInput | ImportTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportTemplates.
     */
    cursor?: ImportTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplates.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportTemplates.
     */
    distinct?: ImportTemplateScalarFieldEnum | ImportTemplateScalarFieldEnum[]
  }

  /**
   * ImportTemplate findFirstOrThrow
   */
  export type ImportTemplateFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplate to fetch.
     */
    where?: ImportTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplates to fetch.
     */
    orderBy?: ImportTemplateOrderByWithRelationInput | ImportTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportTemplates.
     */
    cursor?: ImportTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplates.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportTemplates.
     */
    distinct?: ImportTemplateScalarFieldEnum | ImportTemplateScalarFieldEnum[]
  }

  /**
   * ImportTemplate findMany
   */
  export type ImportTemplateFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplates to fetch.
     */
    where?: ImportTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplates to fetch.
     */
    orderBy?: ImportTemplateOrderByWithRelationInput | ImportTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing ImportTemplates.
     */
    cursor?: ImportTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplates.
     */
    skip?: number
    distinct?: ImportTemplateScalarFieldEnum | ImportTemplateScalarFieldEnum[]
  }

  /**
   * ImportTemplate create
   */
  export type ImportTemplateCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    /**
     * The data needed to create a ImportTemplate.
     */
    data: XOR<ImportTemplateCreateInput, ImportTemplateUncheckedCreateInput>
  }

  /**
   * ImportTemplate createMany
   */
  export type ImportTemplateCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many ImportTemplates.
     */
    data: ImportTemplateCreateManyInput | ImportTemplateCreateManyInput[]
  }

  /**
   * ImportTemplate update
   */
  export type ImportTemplateUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    /**
     * The data needed to update a ImportTemplate.
     */
    data: XOR<ImportTemplateUpdateInput, ImportTemplateUncheckedUpdateInput>
    /**
     * Choose, which ImportTemplate to update.
     */
    where: ImportTemplateWhereUniqueInput
  }

  /**
   * ImportTemplate updateMany
   */
  export type ImportTemplateUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update ImportTemplates.
     */
    data: XOR<ImportTemplateUpdateManyMutationInput, ImportTemplateUncheckedUpdateManyInput>
    /**
     * Filter which ImportTemplates to update
     */
    where?: ImportTemplateWhereInput
  }

  /**
   * ImportTemplate upsert
   */
  export type ImportTemplateUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    /**
     * The filter to search for the ImportTemplate to update in case it exists.
     */
    where: ImportTemplateWhereUniqueInput
    /**
     * In case the ImportTemplate found by the `where` argument doesn't exist, create a new ImportTemplate with this data.
     */
    create: XOR<ImportTemplateCreateInput, ImportTemplateUncheckedCreateInput>
    /**
     * In case the ImportTemplate was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ImportTemplateUpdateInput, ImportTemplateUncheckedUpdateInput>
  }

  /**
   * ImportTemplate delete
   */
  export type ImportTemplateDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    /**
     * Filter which ImportTemplate to delete.
     */
    where: ImportTemplateWhereUniqueInput
  }

  /**
   * ImportTemplate deleteMany
   */
  export type ImportTemplateDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportTemplates to delete
     */
    where?: ImportTemplateWhereInput
  }

  /**
   * ImportTemplate.created
   */
  export type ImportTemplate$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * ImportTemplate.updated
   */
  export type ImportTemplate$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * ImportTemplate.deleted
   */
  export type ImportTemplate$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * ImportTemplate.line_items
   */
  export type ImportTemplate$line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    where?: ImportTemplateLineItemWhereInput
    orderBy?: ImportTemplateLineItemOrderByWithRelationInput | ImportTemplateLineItemOrderByWithRelationInput[]
    cursor?: ImportTemplateLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportTemplateLineItemScalarFieldEnum | ImportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * ImportTemplate.queries
   */
  export type ImportTemplate$queriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    where?: ImportTemplateQueriesWhereInput
    orderBy?: ImportTemplateQueriesOrderByWithRelationInput | ImportTemplateQueriesOrderByWithRelationInput[]
    cursor?: ImportTemplateQueriesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportTemplateQueriesScalarFieldEnum | ImportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * ImportTemplate without action
   */
  export type ImportTemplateDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
  }


  /**
   * Model ImportTemplateLineItem
   */

  export type AggregateImportTemplateLineItem = {
    _count: ImportTemplateLineItemCountAggregateOutputType | null
    _avg: ImportTemplateLineItemAvgAggregateOutputType | null
    _sum: ImportTemplateLineItemSumAggregateOutputType | null
    _min: ImportTemplateLineItemMinAggregateOutputType | null
    _max: ImportTemplateLineItemMaxAggregateOutputType | null
  }

  export type ImportTemplateLineItemAvgAggregateOutputType = {
    id: number | null
    import_template_id: number | null
    order_no: Decimal | null
    width: number | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type ImportTemplateLineItemSumAggregateOutputType = {
    id: number | null
    import_template_id: number | null
    order_no: Decimal | null
    width: number | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type ImportTemplateLineItemMinAggregateOutputType = {
    id: number | null
    import_template_id: number | null
    field_name: string | null
    display_name: string | null
    field_table: string | null
    order_no: Decimal | null
    width: number | null
    default_value: string | null
    check_reg_exp: string | null
    is_nullable: boolean | null
    is_unique: boolean | null
    is_foreign: boolean | null
    unique_query: string | null
    foreign_query: string | null
    is_enum: boolean | null
    is_multiple: boolean | null
    enum_values: string | null
    foreign_table: string | null
    foreign_column: string | null
    foreign_can_create: boolean | null
    is_individual: boolean | null
    individual_column: string | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ImportTemplateLineItemMaxAggregateOutputType = {
    id: number | null
    import_template_id: number | null
    field_name: string | null
    display_name: string | null
    field_table: string | null
    order_no: Decimal | null
    width: number | null
    default_value: string | null
    check_reg_exp: string | null
    is_nullable: boolean | null
    is_unique: boolean | null
    is_foreign: boolean | null
    unique_query: string | null
    foreign_query: string | null
    is_enum: boolean | null
    is_multiple: boolean | null
    enum_values: string | null
    foreign_table: string | null
    foreign_column: string | null
    foreign_can_create: boolean | null
    is_individual: boolean | null
    individual_column: string | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ImportTemplateLineItemCountAggregateOutputType = {
    id: number
    import_template_id: number
    field_name: number
    display_name: number
    field_table: number
    order_no: number
    width: number
    default_value: number
    check_reg_exp: number
    is_nullable: number
    is_unique: number
    is_foreign: number
    unique_query: number
    foreign_query: number
    is_enum: number
    is_multiple: number
    enum_values: number
    foreign_table: number
    foreign_column: number
    foreign_can_create: number
    is_individual: number
    individual_column: number
    field_type_id: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type ImportTemplateLineItemAvgAggregateInputType = {
    id?: true
    import_template_id?: true
    order_no?: true
    width?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
  }

  export type ImportTemplateLineItemSumAggregateInputType = {
    id?: true
    import_template_id?: true
    order_no?: true
    width?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
  }

  export type ImportTemplateLineItemMinAggregateInputType = {
    id?: true
    import_template_id?: true
    field_name?: true
    display_name?: true
    field_table?: true
    order_no?: true
    width?: true
    default_value?: true
    check_reg_exp?: true
    is_nullable?: true
    is_unique?: true
    is_foreign?: true
    unique_query?: true
    foreign_query?: true
    is_enum?: true
    is_multiple?: true
    enum_values?: true
    foreign_table?: true
    foreign_column?: true
    foreign_can_create?: true
    is_individual?: true
    individual_column?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ImportTemplateLineItemMaxAggregateInputType = {
    id?: true
    import_template_id?: true
    field_name?: true
    display_name?: true
    field_table?: true
    order_no?: true
    width?: true
    default_value?: true
    check_reg_exp?: true
    is_nullable?: true
    is_unique?: true
    is_foreign?: true
    unique_query?: true
    foreign_query?: true
    is_enum?: true
    is_multiple?: true
    enum_values?: true
    foreign_table?: true
    foreign_column?: true
    foreign_can_create?: true
    is_individual?: true
    individual_column?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ImportTemplateLineItemCountAggregateInputType = {
    id?: true
    import_template_id?: true
    field_name?: true
    display_name?: true
    field_table?: true
    order_no?: true
    width?: true
    default_value?: true
    check_reg_exp?: true
    is_nullable?: true
    is_unique?: true
    is_foreign?: true
    unique_query?: true
    foreign_query?: true
    is_enum?: true
    is_multiple?: true
    enum_values?: true
    foreign_table?: true
    foreign_column?: true
    foreign_can_create?: true
    is_individual?: true
    individual_column?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type ImportTemplateLineItemAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportTemplateLineItem to aggregate.
     */
    where?: ImportTemplateLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplateLineItems to fetch.
     */
    orderBy?: ImportTemplateLineItemOrderByWithRelationInput | ImportTemplateLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ImportTemplateLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplateLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplateLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned ImportTemplateLineItems
    **/
    _count?: true | ImportTemplateLineItemCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ImportTemplateLineItemAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ImportTemplateLineItemSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ImportTemplateLineItemMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ImportTemplateLineItemMaxAggregateInputType
  }

  export type GetImportTemplateLineItemAggregateType<T extends ImportTemplateLineItemAggregateArgs> = {
        [P in keyof T & keyof AggregateImportTemplateLineItem]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateImportTemplateLineItem[P]>
      : GetScalarType<T[P], AggregateImportTemplateLineItem[P]>
  }




  export type ImportTemplateLineItemGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateLineItemWhereInput
    orderBy?: ImportTemplateLineItemOrderByWithAggregationInput | ImportTemplateLineItemOrderByWithAggregationInput[]
    by: ImportTemplateLineItemScalarFieldEnum[] | ImportTemplateLineItemScalarFieldEnum
    having?: ImportTemplateLineItemScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ImportTemplateLineItemCountAggregateInputType | true
    _avg?: ImportTemplateLineItemAvgAggregateInputType
    _sum?: ImportTemplateLineItemSumAggregateInputType
    _min?: ImportTemplateLineItemMinAggregateInputType
    _max?: ImportTemplateLineItemMaxAggregateInputType
  }

  export type ImportTemplateLineItemGroupByOutputType = {
    id: number
    import_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no: Decimal
    width: number | null
    default_value: string | null
    check_reg_exp: string | null
    is_nullable: boolean
    is_unique: boolean
    is_foreign: boolean
    unique_query: string | null
    foreign_query: string | null
    is_enum: boolean
    is_multiple: boolean
    enum_values: string | null
    foreign_table: string | null
    foreign_column: string | null
    foreign_can_create: boolean
    is_individual: boolean
    individual_column: string | null
    field_type_id: number | null
    status_id: number
    company_id: number
    created_at: Date
    _count: ImportTemplateLineItemCountAggregateOutputType | null
    _avg: ImportTemplateLineItemAvgAggregateOutputType | null
    _sum: ImportTemplateLineItemSumAggregateOutputType | null
    _min: ImportTemplateLineItemMinAggregateOutputType | null
    _max: ImportTemplateLineItemMaxAggregateOutputType | null
  }

  type GetImportTemplateLineItemGroupByPayload<T extends ImportTemplateLineItemGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ImportTemplateLineItemGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ImportTemplateLineItemGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ImportTemplateLineItemGroupByOutputType[P]>
            : GetScalarType<T[P], ImportTemplateLineItemGroupByOutputType[P]>
        }
      >
    >


  export type ImportTemplateLineItemSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    import_template_id?: boolean
    field_name?: boolean
    display_name?: boolean
    field_table?: boolean
    order_no?: boolean
    width?: boolean
    default_value?: boolean
    check_reg_exp?: boolean
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: boolean
    foreign_query?: boolean
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: boolean
    foreign_table?: boolean
    foreign_column?: boolean
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: boolean
    field_type_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    import_template?: boolean | ImportTemplateDefaultArgs<ExtArgs>
    field_type?: boolean | ImportTemplateLineItem$field_typeArgs<ExtArgs>
  }, ExtArgs["result"]["importTemplateLineItem"]>


  export type ImportTemplateLineItemSelectScalar = {
    id?: boolean
    import_template_id?: boolean
    field_name?: boolean
    display_name?: boolean
    field_table?: boolean
    order_no?: boolean
    width?: boolean
    default_value?: boolean
    check_reg_exp?: boolean
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: boolean
    foreign_query?: boolean
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: boolean
    foreign_table?: boolean
    foreign_column?: boolean
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: boolean
    field_type_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type ImportTemplateLineItemInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    import_template?: boolean | ImportTemplateDefaultArgs<ExtArgs>
    field_type?: boolean | ImportTemplateLineItem$field_typeArgs<ExtArgs>
  }

  export type $ImportTemplateLineItemPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "ImportTemplateLineItem"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      import_template: Prisma.$ImportTemplatePayload<ExtArgs>
      field_type: Prisma.$FieldTypePayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      import_template_id: number
      field_name: string
      display_name: string
      field_table: string
      order_no: Prisma.Decimal
      width: number | null
      default_value: string | null
      check_reg_exp: string | null
      is_nullable: boolean
      is_unique: boolean
      is_foreign: boolean
      unique_query: string | null
      foreign_query: string | null
      is_enum: boolean
      is_multiple: boolean
      enum_values: string | null
      foreign_table: string | null
      foreign_column: string | null
      foreign_can_create: boolean
      is_individual: boolean
      individual_column: string | null
      field_type_id: number | null
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["importTemplateLineItem"]>
    composites: {}
  }

  type ImportTemplateLineItemGetPayload<S extends boolean | null | undefined | ImportTemplateLineItemDefaultArgs> = $Result.GetResult<Prisma.$ImportTemplateLineItemPayload, S>

  type ImportTemplateLineItemCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ImportTemplateLineItemFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ImportTemplateLineItemCountAggregateInputType | true
    }

  export interface ImportTemplateLineItemDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ImportTemplateLineItem'], meta: { name: 'ImportTemplateLineItem' } }
    /**
     * Find zero or one ImportTemplateLineItem that matches the filter.
     * @param {ImportTemplateLineItemFindUniqueArgs} args - Arguments to find a ImportTemplateLineItem
     * @example
     * // Get one ImportTemplateLineItem
     * const importTemplateLineItem = await prisma.importTemplateLineItem.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ImportTemplateLineItemFindUniqueArgs>(args: SelectSubset<T, ImportTemplateLineItemFindUniqueArgs<ExtArgs>>): Prisma__ImportTemplateLineItemClient<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one ImportTemplateLineItem that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ImportTemplateLineItemFindUniqueOrThrowArgs} args - Arguments to find a ImportTemplateLineItem
     * @example
     * // Get one ImportTemplateLineItem
     * const importTemplateLineItem = await prisma.importTemplateLineItem.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ImportTemplateLineItemFindUniqueOrThrowArgs>(args: SelectSubset<T, ImportTemplateLineItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ImportTemplateLineItemClient<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first ImportTemplateLineItem 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 {ImportTemplateLineItemFindFirstArgs} args - Arguments to find a ImportTemplateLineItem
     * @example
     * // Get one ImportTemplateLineItem
     * const importTemplateLineItem = await prisma.importTemplateLineItem.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ImportTemplateLineItemFindFirstArgs>(args?: SelectSubset<T, ImportTemplateLineItemFindFirstArgs<ExtArgs>>): Prisma__ImportTemplateLineItemClient<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first ImportTemplateLineItem 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 {ImportTemplateLineItemFindFirstOrThrowArgs} args - Arguments to find a ImportTemplateLineItem
     * @example
     * // Get one ImportTemplateLineItem
     * const importTemplateLineItem = await prisma.importTemplateLineItem.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ImportTemplateLineItemFindFirstOrThrowArgs>(args?: SelectSubset<T, ImportTemplateLineItemFindFirstOrThrowArgs<ExtArgs>>): Prisma__ImportTemplateLineItemClient<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more ImportTemplateLineItems 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 {ImportTemplateLineItemFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all ImportTemplateLineItems
     * const importTemplateLineItems = await prisma.importTemplateLineItem.findMany()
     * 
     * // Get first 10 ImportTemplateLineItems
     * const importTemplateLineItems = await prisma.importTemplateLineItem.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const importTemplateLineItemWithIdOnly = await prisma.importTemplateLineItem.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ImportTemplateLineItemFindManyArgs>(args?: SelectSubset<T, ImportTemplateLineItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a ImportTemplateLineItem.
     * @param {ImportTemplateLineItemCreateArgs} args - Arguments to create a ImportTemplateLineItem.
     * @example
     * // Create one ImportTemplateLineItem
     * const ImportTemplateLineItem = await prisma.importTemplateLineItem.create({
     *   data: {
     *     // ... data to create a ImportTemplateLineItem
     *   }
     * })
     * 
     */
    create<T extends ImportTemplateLineItemCreateArgs>(args: SelectSubset<T, ImportTemplateLineItemCreateArgs<ExtArgs>>): Prisma__ImportTemplateLineItemClient<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many ImportTemplateLineItems.
     * @param {ImportTemplateLineItemCreateManyArgs} args - Arguments to create many ImportTemplateLineItems.
     * @example
     * // Create many ImportTemplateLineItems
     * const importTemplateLineItem = await prisma.importTemplateLineItem.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ImportTemplateLineItemCreateManyArgs>(args?: SelectSubset<T, ImportTemplateLineItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a ImportTemplateLineItem.
     * @param {ImportTemplateLineItemDeleteArgs} args - Arguments to delete one ImportTemplateLineItem.
     * @example
     * // Delete one ImportTemplateLineItem
     * const ImportTemplateLineItem = await prisma.importTemplateLineItem.delete({
     *   where: {
     *     // ... filter to delete one ImportTemplateLineItem
     *   }
     * })
     * 
     */
    delete<T extends ImportTemplateLineItemDeleteArgs>(args: SelectSubset<T, ImportTemplateLineItemDeleteArgs<ExtArgs>>): Prisma__ImportTemplateLineItemClient<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one ImportTemplateLineItem.
     * @param {ImportTemplateLineItemUpdateArgs} args - Arguments to update one ImportTemplateLineItem.
     * @example
     * // Update one ImportTemplateLineItem
     * const importTemplateLineItem = await prisma.importTemplateLineItem.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ImportTemplateLineItemUpdateArgs>(args: SelectSubset<T, ImportTemplateLineItemUpdateArgs<ExtArgs>>): Prisma__ImportTemplateLineItemClient<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more ImportTemplateLineItems.
     * @param {ImportTemplateLineItemDeleteManyArgs} args - Arguments to filter ImportTemplateLineItems to delete.
     * @example
     * // Delete a few ImportTemplateLineItems
     * const { count } = await prisma.importTemplateLineItem.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ImportTemplateLineItemDeleteManyArgs>(args?: SelectSubset<T, ImportTemplateLineItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more ImportTemplateLineItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateLineItemUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many ImportTemplateLineItems
     * const importTemplateLineItem = await prisma.importTemplateLineItem.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ImportTemplateLineItemUpdateManyArgs>(args: SelectSubset<T, ImportTemplateLineItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one ImportTemplateLineItem.
     * @param {ImportTemplateLineItemUpsertArgs} args - Arguments to update or create a ImportTemplateLineItem.
     * @example
     * // Update or create a ImportTemplateLineItem
     * const importTemplateLineItem = await prisma.importTemplateLineItem.upsert({
     *   create: {
     *     // ... data to create a ImportTemplateLineItem
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the ImportTemplateLineItem we want to update
     *   }
     * })
     */
    upsert<T extends ImportTemplateLineItemUpsertArgs>(args: SelectSubset<T, ImportTemplateLineItemUpsertArgs<ExtArgs>>): Prisma__ImportTemplateLineItemClient<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of ImportTemplateLineItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateLineItemCountArgs} args - Arguments to filter ImportTemplateLineItems to count.
     * @example
     * // Count the number of ImportTemplateLineItems
     * const count = await prisma.importTemplateLineItem.count({
     *   where: {
     *     // ... the filter for the ImportTemplateLineItems we want to count
     *   }
     * })
    **/
    count<T extends ImportTemplateLineItemCountArgs>(
      args?: Subset<T, ImportTemplateLineItemCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ImportTemplateLineItemCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a ImportTemplateLineItem.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateLineItemAggregateArgs} 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<T extends ImportTemplateLineItemAggregateArgs>(args: Subset<T, ImportTemplateLineItemAggregateArgs>): Prisma.PrismaPromise<GetImportTemplateLineItemAggregateType<T>>

    /**
     * Group by ImportTemplateLineItem.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateLineItemGroupByArgs} 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 ImportTemplateLineItemGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ImportTemplateLineItemGroupByArgs['orderBy'] }
        : { orderBy?: ImportTemplateLineItemGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ImportTemplateLineItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetImportTemplateLineItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the ImportTemplateLineItem model
   */
  readonly fields: ImportTemplateLineItemFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for ImportTemplateLineItem.
   * 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__ImportTemplateLineItemClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    import_template<T extends ImportTemplateDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ImportTemplateDefaultArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    field_type<T extends ImportTemplateLineItem$field_typeArgs<ExtArgs> = {}>(args?: Subset<T, ImportTemplateLineItem$field_typeArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the ImportTemplateLineItem model
   */ 
  interface ImportTemplateLineItemFieldRefs {
    readonly id: FieldRef<"ImportTemplateLineItem", 'Int'>
    readonly import_template_id: FieldRef<"ImportTemplateLineItem", 'Int'>
    readonly field_name: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly display_name: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly field_table: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly order_no: FieldRef<"ImportTemplateLineItem", 'Decimal'>
    readonly width: FieldRef<"ImportTemplateLineItem", 'Int'>
    readonly default_value: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly check_reg_exp: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly is_nullable: FieldRef<"ImportTemplateLineItem", 'Boolean'>
    readonly is_unique: FieldRef<"ImportTemplateLineItem", 'Boolean'>
    readonly is_foreign: FieldRef<"ImportTemplateLineItem", 'Boolean'>
    readonly unique_query: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly foreign_query: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly is_enum: FieldRef<"ImportTemplateLineItem", 'Boolean'>
    readonly is_multiple: FieldRef<"ImportTemplateLineItem", 'Boolean'>
    readonly enum_values: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly foreign_table: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly foreign_column: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly foreign_can_create: FieldRef<"ImportTemplateLineItem", 'Boolean'>
    readonly is_individual: FieldRef<"ImportTemplateLineItem", 'Boolean'>
    readonly individual_column: FieldRef<"ImportTemplateLineItem", 'String'>
    readonly field_type_id: FieldRef<"ImportTemplateLineItem", 'Int'>
    readonly status_id: FieldRef<"ImportTemplateLineItem", 'Int'>
    readonly company_id: FieldRef<"ImportTemplateLineItem", 'Int'>
    readonly created_at: FieldRef<"ImportTemplateLineItem", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * ImportTemplateLineItem findUnique
   */
  export type ImportTemplateLineItemFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateLineItem to fetch.
     */
    where: ImportTemplateLineItemWhereUniqueInput
  }

  /**
   * ImportTemplateLineItem findUniqueOrThrow
   */
  export type ImportTemplateLineItemFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateLineItem to fetch.
     */
    where: ImportTemplateLineItemWhereUniqueInput
  }

  /**
   * ImportTemplateLineItem findFirst
   */
  export type ImportTemplateLineItemFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateLineItem to fetch.
     */
    where?: ImportTemplateLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplateLineItems to fetch.
     */
    orderBy?: ImportTemplateLineItemOrderByWithRelationInput | ImportTemplateLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportTemplateLineItems.
     */
    cursor?: ImportTemplateLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplateLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplateLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportTemplateLineItems.
     */
    distinct?: ImportTemplateLineItemScalarFieldEnum | ImportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * ImportTemplateLineItem findFirstOrThrow
   */
  export type ImportTemplateLineItemFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateLineItem to fetch.
     */
    where?: ImportTemplateLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplateLineItems to fetch.
     */
    orderBy?: ImportTemplateLineItemOrderByWithRelationInput | ImportTemplateLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportTemplateLineItems.
     */
    cursor?: ImportTemplateLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplateLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplateLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportTemplateLineItems.
     */
    distinct?: ImportTemplateLineItemScalarFieldEnum | ImportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * ImportTemplateLineItem findMany
   */
  export type ImportTemplateLineItemFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateLineItems to fetch.
     */
    where?: ImportTemplateLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplateLineItems to fetch.
     */
    orderBy?: ImportTemplateLineItemOrderByWithRelationInput | ImportTemplateLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing ImportTemplateLineItems.
     */
    cursor?: ImportTemplateLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplateLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplateLineItems.
     */
    skip?: number
    distinct?: ImportTemplateLineItemScalarFieldEnum | ImportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * ImportTemplateLineItem create
   */
  export type ImportTemplateLineItemCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    /**
     * The data needed to create a ImportTemplateLineItem.
     */
    data: XOR<ImportTemplateLineItemCreateInput, ImportTemplateLineItemUncheckedCreateInput>
  }

  /**
   * ImportTemplateLineItem createMany
   */
  export type ImportTemplateLineItemCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many ImportTemplateLineItems.
     */
    data: ImportTemplateLineItemCreateManyInput | ImportTemplateLineItemCreateManyInput[]
  }

  /**
   * ImportTemplateLineItem update
   */
  export type ImportTemplateLineItemUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    /**
     * The data needed to update a ImportTemplateLineItem.
     */
    data: XOR<ImportTemplateLineItemUpdateInput, ImportTemplateLineItemUncheckedUpdateInput>
    /**
     * Choose, which ImportTemplateLineItem to update.
     */
    where: ImportTemplateLineItemWhereUniqueInput
  }

  /**
   * ImportTemplateLineItem updateMany
   */
  export type ImportTemplateLineItemUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update ImportTemplateLineItems.
     */
    data: XOR<ImportTemplateLineItemUpdateManyMutationInput, ImportTemplateLineItemUncheckedUpdateManyInput>
    /**
     * Filter which ImportTemplateLineItems to update
     */
    where?: ImportTemplateLineItemWhereInput
  }

  /**
   * ImportTemplateLineItem upsert
   */
  export type ImportTemplateLineItemUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    /**
     * The filter to search for the ImportTemplateLineItem to update in case it exists.
     */
    where: ImportTemplateLineItemWhereUniqueInput
    /**
     * In case the ImportTemplateLineItem found by the `where` argument doesn't exist, create a new ImportTemplateLineItem with this data.
     */
    create: XOR<ImportTemplateLineItemCreateInput, ImportTemplateLineItemUncheckedCreateInput>
    /**
     * In case the ImportTemplateLineItem was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ImportTemplateLineItemUpdateInput, ImportTemplateLineItemUncheckedUpdateInput>
  }

  /**
   * ImportTemplateLineItem delete
   */
  export type ImportTemplateLineItemDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter which ImportTemplateLineItem to delete.
     */
    where: ImportTemplateLineItemWhereUniqueInput
  }

  /**
   * ImportTemplateLineItem deleteMany
   */
  export type ImportTemplateLineItemDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportTemplateLineItems to delete
     */
    where?: ImportTemplateLineItemWhereInput
  }

  /**
   * ImportTemplateLineItem.field_type
   */
  export type ImportTemplateLineItem$field_typeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    where?: FieldTypeWhereInput
  }

  /**
   * ImportTemplateLineItem without action
   */
  export type ImportTemplateLineItemDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
  }


  /**
   * Model ImportTemplateQueries
   */

  export type AggregateImportTemplateQueries = {
    _count: ImportTemplateQueriesCountAggregateOutputType | null
    _avg: ImportTemplateQueriesAvgAggregateOutputType | null
    _sum: ImportTemplateQueriesSumAggregateOutputType | null
    _min: ImportTemplateQueriesMinAggregateOutputType | null
    _max: ImportTemplateQueriesMaxAggregateOutputType | null
  }

  export type ImportTemplateQueriesAvgAggregateOutputType = {
    id: number | null
    import_template_id: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
  }

  export type ImportTemplateQueriesSumAggregateOutputType = {
    id: number | null
    import_template_id: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
  }

  export type ImportTemplateQueriesMinAggregateOutputType = {
    id: number | null
    import_template_id: number | null
    query_string: string | null
    query_name: string | null
    allow_multiple: boolean | null
    is_individual: boolean | null
    before_lineitems: boolean | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ImportTemplateQueriesMaxAggregateOutputType = {
    id: number | null
    import_template_id: number | null
    query_string: string | null
    query_name: string | null
    allow_multiple: boolean | null
    is_individual: boolean | null
    before_lineitems: boolean | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ImportTemplateQueriesCountAggregateOutputType = {
    id: number
    import_template_id: number
    query_string: number
    query_name: number
    allow_multiple: number
    is_individual: number
    before_lineitems: number
    order_no: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type ImportTemplateQueriesAvgAggregateInputType = {
    id?: true
    import_template_id?: true
    order_no?: true
    status_id?: true
    company_id?: true
  }

  export type ImportTemplateQueriesSumAggregateInputType = {
    id?: true
    import_template_id?: true
    order_no?: true
    status_id?: true
    company_id?: true
  }

  export type ImportTemplateQueriesMinAggregateInputType = {
    id?: true
    import_template_id?: true
    query_string?: true
    query_name?: true
    allow_multiple?: true
    is_individual?: true
    before_lineitems?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ImportTemplateQueriesMaxAggregateInputType = {
    id?: true
    import_template_id?: true
    query_string?: true
    query_name?: true
    allow_multiple?: true
    is_individual?: true
    before_lineitems?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ImportTemplateQueriesCountAggregateInputType = {
    id?: true
    import_template_id?: true
    query_string?: true
    query_name?: true
    allow_multiple?: true
    is_individual?: true
    before_lineitems?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type ImportTemplateQueriesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportTemplateQueries to aggregate.
     */
    where?: ImportTemplateQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplateQueries to fetch.
     */
    orderBy?: ImportTemplateQueriesOrderByWithRelationInput | ImportTemplateQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ImportTemplateQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplateQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplateQueries.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned ImportTemplateQueries
    **/
    _count?: true | ImportTemplateQueriesCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ImportTemplateQueriesAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ImportTemplateQueriesSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ImportTemplateQueriesMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ImportTemplateQueriesMaxAggregateInputType
  }

  export type GetImportTemplateQueriesAggregateType<T extends ImportTemplateQueriesAggregateArgs> = {
        [P in keyof T & keyof AggregateImportTemplateQueries]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateImportTemplateQueries[P]>
      : GetScalarType<T[P], AggregateImportTemplateQueries[P]>
  }




  export type ImportTemplateQueriesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportTemplateQueriesWhereInput
    orderBy?: ImportTemplateQueriesOrderByWithAggregationInput | ImportTemplateQueriesOrderByWithAggregationInput[]
    by: ImportTemplateQueriesScalarFieldEnum[] | ImportTemplateQueriesScalarFieldEnum
    having?: ImportTemplateQueriesScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ImportTemplateQueriesCountAggregateInputType | true
    _avg?: ImportTemplateQueriesAvgAggregateInputType
    _sum?: ImportTemplateQueriesSumAggregateInputType
    _min?: ImportTemplateQueriesMinAggregateInputType
    _max?: ImportTemplateQueriesMaxAggregateInputType
  }

  export type ImportTemplateQueriesGroupByOutputType = {
    id: number
    import_template_id: number
    query_string: string | null
    query_name: string
    allow_multiple: boolean
    is_individual: boolean
    before_lineitems: boolean
    order_no: Decimal
    status_id: number
    company_id: number
    created_at: Date
    _count: ImportTemplateQueriesCountAggregateOutputType | null
    _avg: ImportTemplateQueriesAvgAggregateOutputType | null
    _sum: ImportTemplateQueriesSumAggregateOutputType | null
    _min: ImportTemplateQueriesMinAggregateOutputType | null
    _max: ImportTemplateQueriesMaxAggregateOutputType | null
  }

  type GetImportTemplateQueriesGroupByPayload<T extends ImportTemplateQueriesGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ImportTemplateQueriesGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ImportTemplateQueriesGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ImportTemplateQueriesGroupByOutputType[P]>
            : GetScalarType<T[P], ImportTemplateQueriesGroupByOutputType[P]>
        }
      >
    >


  export type ImportTemplateQueriesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    import_template_id?: boolean
    query_string?: boolean
    query_name?: boolean
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    import_template?: boolean | ImportTemplateDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["importTemplateQueries"]>


  export type ImportTemplateQueriesSelectScalar = {
    id?: boolean
    import_template_id?: boolean
    query_string?: boolean
    query_name?: boolean
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type ImportTemplateQueriesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    import_template?: boolean | ImportTemplateDefaultArgs<ExtArgs>
  }

  export type $ImportTemplateQueriesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "ImportTemplateQueries"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      import_template: Prisma.$ImportTemplatePayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      import_template_id: number
      query_string: string | null
      query_name: string
      allow_multiple: boolean
      is_individual: boolean
      before_lineitems: boolean
      order_no: Prisma.Decimal
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["importTemplateQueries"]>
    composites: {}
  }

  type ImportTemplateQueriesGetPayload<S extends boolean | null | undefined | ImportTemplateQueriesDefaultArgs> = $Result.GetResult<Prisma.$ImportTemplateQueriesPayload, S>

  type ImportTemplateQueriesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ImportTemplateQueriesFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ImportTemplateQueriesCountAggregateInputType | true
    }

  export interface ImportTemplateQueriesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ImportTemplateQueries'], meta: { name: 'ImportTemplateQueries' } }
    /**
     * Find zero or one ImportTemplateQueries that matches the filter.
     * @param {ImportTemplateQueriesFindUniqueArgs} args - Arguments to find a ImportTemplateQueries
     * @example
     * // Get one ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ImportTemplateQueriesFindUniqueArgs>(args: SelectSubset<T, ImportTemplateQueriesFindUniqueArgs<ExtArgs>>): Prisma__ImportTemplateQueriesClient<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one ImportTemplateQueries that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ImportTemplateQueriesFindUniqueOrThrowArgs} args - Arguments to find a ImportTemplateQueries
     * @example
     * // Get one ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ImportTemplateQueriesFindUniqueOrThrowArgs>(args: SelectSubset<T, ImportTemplateQueriesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ImportTemplateQueriesClient<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first ImportTemplateQueries 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 {ImportTemplateQueriesFindFirstArgs} args - Arguments to find a ImportTemplateQueries
     * @example
     * // Get one ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ImportTemplateQueriesFindFirstArgs>(args?: SelectSubset<T, ImportTemplateQueriesFindFirstArgs<ExtArgs>>): Prisma__ImportTemplateQueriesClient<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first ImportTemplateQueries 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 {ImportTemplateQueriesFindFirstOrThrowArgs} args - Arguments to find a ImportTemplateQueries
     * @example
     * // Get one ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ImportTemplateQueriesFindFirstOrThrowArgs>(args?: SelectSubset<T, ImportTemplateQueriesFindFirstOrThrowArgs<ExtArgs>>): Prisma__ImportTemplateQueriesClient<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more ImportTemplateQueries 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 {ImportTemplateQueriesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.findMany()
     * 
     * // Get first 10 ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const importTemplateQueriesWithIdOnly = await prisma.importTemplateQueries.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ImportTemplateQueriesFindManyArgs>(args?: SelectSubset<T, ImportTemplateQueriesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a ImportTemplateQueries.
     * @param {ImportTemplateQueriesCreateArgs} args - Arguments to create a ImportTemplateQueries.
     * @example
     * // Create one ImportTemplateQueries
     * const ImportTemplateQueries = await prisma.importTemplateQueries.create({
     *   data: {
     *     // ... data to create a ImportTemplateQueries
     *   }
     * })
     * 
     */
    create<T extends ImportTemplateQueriesCreateArgs>(args: SelectSubset<T, ImportTemplateQueriesCreateArgs<ExtArgs>>): Prisma__ImportTemplateQueriesClient<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many ImportTemplateQueries.
     * @param {ImportTemplateQueriesCreateManyArgs} args - Arguments to create many ImportTemplateQueries.
     * @example
     * // Create many ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ImportTemplateQueriesCreateManyArgs>(args?: SelectSubset<T, ImportTemplateQueriesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a ImportTemplateQueries.
     * @param {ImportTemplateQueriesDeleteArgs} args - Arguments to delete one ImportTemplateQueries.
     * @example
     * // Delete one ImportTemplateQueries
     * const ImportTemplateQueries = await prisma.importTemplateQueries.delete({
     *   where: {
     *     // ... filter to delete one ImportTemplateQueries
     *   }
     * })
     * 
     */
    delete<T extends ImportTemplateQueriesDeleteArgs>(args: SelectSubset<T, ImportTemplateQueriesDeleteArgs<ExtArgs>>): Prisma__ImportTemplateQueriesClient<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one ImportTemplateQueries.
     * @param {ImportTemplateQueriesUpdateArgs} args - Arguments to update one ImportTemplateQueries.
     * @example
     * // Update one ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ImportTemplateQueriesUpdateArgs>(args: SelectSubset<T, ImportTemplateQueriesUpdateArgs<ExtArgs>>): Prisma__ImportTemplateQueriesClient<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more ImportTemplateQueries.
     * @param {ImportTemplateQueriesDeleteManyArgs} args - Arguments to filter ImportTemplateQueries to delete.
     * @example
     * // Delete a few ImportTemplateQueries
     * const { count } = await prisma.importTemplateQueries.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ImportTemplateQueriesDeleteManyArgs>(args?: SelectSubset<T, ImportTemplateQueriesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more ImportTemplateQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateQueriesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ImportTemplateQueriesUpdateManyArgs>(args: SelectSubset<T, ImportTemplateQueriesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one ImportTemplateQueries.
     * @param {ImportTemplateQueriesUpsertArgs} args - Arguments to update or create a ImportTemplateQueries.
     * @example
     * // Update or create a ImportTemplateQueries
     * const importTemplateQueries = await prisma.importTemplateQueries.upsert({
     *   create: {
     *     // ... data to create a ImportTemplateQueries
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the ImportTemplateQueries we want to update
     *   }
     * })
     */
    upsert<T extends ImportTemplateQueriesUpsertArgs>(args: SelectSubset<T, ImportTemplateQueriesUpsertArgs<ExtArgs>>): Prisma__ImportTemplateQueriesClient<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of ImportTemplateQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateQueriesCountArgs} args - Arguments to filter ImportTemplateQueries to count.
     * @example
     * // Count the number of ImportTemplateQueries
     * const count = await prisma.importTemplateQueries.count({
     *   where: {
     *     // ... the filter for the ImportTemplateQueries we want to count
     *   }
     * })
    **/
    count<T extends ImportTemplateQueriesCountArgs>(
      args?: Subset<T, ImportTemplateQueriesCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ImportTemplateQueriesCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a ImportTemplateQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateQueriesAggregateArgs} 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<T extends ImportTemplateQueriesAggregateArgs>(args: Subset<T, ImportTemplateQueriesAggregateArgs>): Prisma.PrismaPromise<GetImportTemplateQueriesAggregateType<T>>

    /**
     * Group by ImportTemplateQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportTemplateQueriesGroupByArgs} 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 ImportTemplateQueriesGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ImportTemplateQueriesGroupByArgs['orderBy'] }
        : { orderBy?: ImportTemplateQueriesGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ImportTemplateQueriesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetImportTemplateQueriesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the ImportTemplateQueries model
   */
  readonly fields: ImportTemplateQueriesFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for ImportTemplateQueries.
   * 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__ImportTemplateQueriesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    import_template<T extends ImportTemplateDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ImportTemplateDefaultArgs<ExtArgs>>): Prisma__ImportTemplateClient<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the ImportTemplateQueries model
   */ 
  interface ImportTemplateQueriesFieldRefs {
    readonly id: FieldRef<"ImportTemplateQueries", 'Int'>
    readonly import_template_id: FieldRef<"ImportTemplateQueries", 'Int'>
    readonly query_string: FieldRef<"ImportTemplateQueries", 'String'>
    readonly query_name: FieldRef<"ImportTemplateQueries", 'String'>
    readonly allow_multiple: FieldRef<"ImportTemplateQueries", 'Boolean'>
    readonly is_individual: FieldRef<"ImportTemplateQueries", 'Boolean'>
    readonly before_lineitems: FieldRef<"ImportTemplateQueries", 'Boolean'>
    readonly order_no: FieldRef<"ImportTemplateQueries", 'Decimal'>
    readonly status_id: FieldRef<"ImportTemplateQueries", 'Int'>
    readonly company_id: FieldRef<"ImportTemplateQueries", 'Int'>
    readonly created_at: FieldRef<"ImportTemplateQueries", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * ImportTemplateQueries findUnique
   */
  export type ImportTemplateQueriesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateQueries to fetch.
     */
    where: ImportTemplateQueriesWhereUniqueInput
  }

  /**
   * ImportTemplateQueries findUniqueOrThrow
   */
  export type ImportTemplateQueriesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateQueries to fetch.
     */
    where: ImportTemplateQueriesWhereUniqueInput
  }

  /**
   * ImportTemplateQueries findFirst
   */
  export type ImportTemplateQueriesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateQueries to fetch.
     */
    where?: ImportTemplateQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplateQueries to fetch.
     */
    orderBy?: ImportTemplateQueriesOrderByWithRelationInput | ImportTemplateQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportTemplateQueries.
     */
    cursor?: ImportTemplateQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplateQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplateQueries.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportTemplateQueries.
     */
    distinct?: ImportTemplateQueriesScalarFieldEnum | ImportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * ImportTemplateQueries findFirstOrThrow
   */
  export type ImportTemplateQueriesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateQueries to fetch.
     */
    where?: ImportTemplateQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplateQueries to fetch.
     */
    orderBy?: ImportTemplateQueriesOrderByWithRelationInput | ImportTemplateQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportTemplateQueries.
     */
    cursor?: ImportTemplateQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplateQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplateQueries.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportTemplateQueries.
     */
    distinct?: ImportTemplateQueriesScalarFieldEnum | ImportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * ImportTemplateQueries findMany
   */
  export type ImportTemplateQueriesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ImportTemplateQueries to fetch.
     */
    where?: ImportTemplateQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportTemplateQueries to fetch.
     */
    orderBy?: ImportTemplateQueriesOrderByWithRelationInput | ImportTemplateQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing ImportTemplateQueries.
     */
    cursor?: ImportTemplateQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportTemplateQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportTemplateQueries.
     */
    skip?: number
    distinct?: ImportTemplateQueriesScalarFieldEnum | ImportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * ImportTemplateQueries create
   */
  export type ImportTemplateQueriesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    /**
     * The data needed to create a ImportTemplateQueries.
     */
    data: XOR<ImportTemplateQueriesCreateInput, ImportTemplateQueriesUncheckedCreateInput>
  }

  /**
   * ImportTemplateQueries createMany
   */
  export type ImportTemplateQueriesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many ImportTemplateQueries.
     */
    data: ImportTemplateQueriesCreateManyInput | ImportTemplateQueriesCreateManyInput[]
  }

  /**
   * ImportTemplateQueries update
   */
  export type ImportTemplateQueriesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    /**
     * The data needed to update a ImportTemplateQueries.
     */
    data: XOR<ImportTemplateQueriesUpdateInput, ImportTemplateQueriesUncheckedUpdateInput>
    /**
     * Choose, which ImportTemplateQueries to update.
     */
    where: ImportTemplateQueriesWhereUniqueInput
  }

  /**
   * ImportTemplateQueries updateMany
   */
  export type ImportTemplateQueriesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update ImportTemplateQueries.
     */
    data: XOR<ImportTemplateQueriesUpdateManyMutationInput, ImportTemplateQueriesUncheckedUpdateManyInput>
    /**
     * Filter which ImportTemplateQueries to update
     */
    where?: ImportTemplateQueriesWhereInput
  }

  /**
   * ImportTemplateQueries upsert
   */
  export type ImportTemplateQueriesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    /**
     * The filter to search for the ImportTemplateQueries to update in case it exists.
     */
    where: ImportTemplateQueriesWhereUniqueInput
    /**
     * In case the ImportTemplateQueries found by the `where` argument doesn't exist, create a new ImportTemplateQueries with this data.
     */
    create: XOR<ImportTemplateQueriesCreateInput, ImportTemplateQueriesUncheckedCreateInput>
    /**
     * In case the ImportTemplateQueries was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ImportTemplateQueriesUpdateInput, ImportTemplateQueriesUncheckedUpdateInput>
  }

  /**
   * ImportTemplateQueries delete
   */
  export type ImportTemplateQueriesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter which ImportTemplateQueries to delete.
     */
    where: ImportTemplateQueriesWhereUniqueInput
  }

  /**
   * ImportTemplateQueries deleteMany
   */
  export type ImportTemplateQueriesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportTemplateQueries to delete
     */
    where?: ImportTemplateQueriesWhereInput
  }

  /**
   * ImportTemplateQueries without action
   */
  export type ImportTemplateQueriesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
  }


  /**
   * Model ImportJob
   */

  export type AggregateImportJob = {
    _count: ImportJobCountAggregateOutputType | null
    _avg: ImportJobAvgAggregateOutputType | null
    _sum: ImportJobSumAggregateOutputType | null
    _min: ImportJobMinAggregateOutputType | null
    _max: ImportJobMaxAggregateOutputType | null
  }

  export type ImportJobAvgAggregateOutputType = {
    id: number | null
    total_rows: number | null
    completed_rows: number | null
    error_rows: number | null
    batch_process_count: number | null
    last_processed_row_id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type ImportJobSumAggregateOutputType = {
    id: number | null
    total_rows: number | null
    completed_rows: number | null
    error_rows: number | null
    batch_process_count: number | null
    last_processed_row_id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type ImportJobMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    description: string | null
    sequence_number: string | null
    header_details: string | null
    table_config: string | null
    total_rows: number | null
    completed_rows: number | null
    error_rows: number | null
    batch_process_count: number | null
    job_status: string | null
    last_processed_row_id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    created_at: Date | null
    updated_by: number | null
    updated_at: Date | null
    deleted_by: number | null
    deleted_at: Date | null
  }

  export type ImportJobMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    description: string | null
    sequence_number: string | null
    header_details: string | null
    table_config: string | null
    total_rows: number | null
    completed_rows: number | null
    error_rows: number | null
    batch_process_count: number | null
    job_status: string | null
    last_processed_row_id: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    created_at: Date | null
    updated_by: number | null
    updated_at: Date | null
    deleted_by: number | null
    deleted_at: Date | null
  }

  export type ImportJobCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    description: number
    sequence_number: number
    header_details: number
    table_config: number
    total_rows: number
    completed_rows: number
    error_rows: number
    batch_process_count: number
    job_status: number
    last_processed_row_id: number
    status_id: number
    company_id: number
    created_by: number
    created_at: number
    updated_by: number
    updated_at: number
    deleted_by: number
    deleted_at: number
    _all: number
  }


  export type ImportJobAvgAggregateInputType = {
    id?: true
    total_rows?: true
    completed_rows?: true
    error_rows?: true
    batch_process_count?: true
    last_processed_row_id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type ImportJobSumAggregateInputType = {
    id?: true
    total_rows?: true
    completed_rows?: true
    error_rows?: true
    batch_process_count?: true
    last_processed_row_id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type ImportJobMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    description?: true
    sequence_number?: true
    header_details?: true
    table_config?: true
    total_rows?: true
    completed_rows?: true
    error_rows?: true
    batch_process_count?: true
    job_status?: true
    last_processed_row_id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
  }

  export type ImportJobMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    description?: true
    sequence_number?: true
    header_details?: true
    table_config?: true
    total_rows?: true
    completed_rows?: true
    error_rows?: true
    batch_process_count?: true
    job_status?: true
    last_processed_row_id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
  }

  export type ImportJobCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    description?: true
    sequence_number?: true
    header_details?: true
    table_config?: true
    total_rows?: true
    completed_rows?: true
    error_rows?: true
    batch_process_count?: true
    job_status?: true
    last_processed_row_id?: true
    status_id?: true
    company_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
    _all?: true
  }

  export type ImportJobAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportJob to aggregate.
     */
    where?: ImportJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportJobs to fetch.
     */
    orderBy?: ImportJobOrderByWithRelationInput | ImportJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ImportJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportJobs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned ImportJobs
    **/
    _count?: true | ImportJobCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ImportJobAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ImportJobSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ImportJobMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ImportJobMaxAggregateInputType
  }

  export type GetImportJobAggregateType<T extends ImportJobAggregateArgs> = {
        [P in keyof T & keyof AggregateImportJob]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateImportJob[P]>
      : GetScalarType<T[P], AggregateImportJob[P]>
  }




  export type ImportJobGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportJobWhereInput
    orderBy?: ImportJobOrderByWithAggregationInput | ImportJobOrderByWithAggregationInput[]
    by: ImportJobScalarFieldEnum[] | ImportJobScalarFieldEnum
    having?: ImportJobScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ImportJobCountAggregateInputType | true
    _avg?: ImportJobAvgAggregateInputType
    _sum?: ImportJobSumAggregateInputType
    _min?: ImportJobMinAggregateInputType
    _max?: ImportJobMaxAggregateInputType
  }

  export type ImportJobGroupByOutputType = {
    id: number
    uuid: string
    name: string
    description: string | null
    sequence_number: string | null
    header_details: string | null
    table_config: string | null
    total_rows: number
    completed_rows: number
    error_rows: number
    batch_process_count: number | null
    job_status: string | null
    last_processed_row_id: number | null
    status_id: number
    company_id: number
    created_by: number | null
    created_at: Date
    updated_by: number | null
    updated_at: Date
    deleted_by: number | null
    deleted_at: Date | null
    _count: ImportJobCountAggregateOutputType | null
    _avg: ImportJobAvgAggregateOutputType | null
    _sum: ImportJobSumAggregateOutputType | null
    _min: ImportJobMinAggregateOutputType | null
    _max: ImportJobMaxAggregateOutputType | null
  }

  type GetImportJobGroupByPayload<T extends ImportJobGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ImportJobGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ImportJobGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ImportJobGroupByOutputType[P]>
            : GetScalarType<T[P], ImportJobGroupByOutputType[P]>
        }
      >
    >


  export type ImportJobSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    description?: boolean
    sequence_number?: boolean
    header_details?: boolean
    table_config?: boolean
    total_rows?: boolean
    completed_rows?: boolean
    error_rows?: boolean
    batch_process_count?: boolean
    job_status?: boolean
    last_processed_row_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    created_at?: boolean
    updated_by?: boolean
    updated_at?: boolean
    deleted_by?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | ImportJob$createdArgs<ExtArgs>
    updated?: boolean | ImportJob$updatedArgs<ExtArgs>
    deleted?: boolean | ImportJob$deletedArgs<ExtArgs>
    line_items?: boolean | ImportJob$line_itemsArgs<ExtArgs>
    _count?: boolean | ImportJobCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["importJob"]>


  export type ImportJobSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    description?: boolean
    sequence_number?: boolean
    header_details?: boolean
    table_config?: boolean
    total_rows?: boolean
    completed_rows?: boolean
    error_rows?: boolean
    batch_process_count?: boolean
    job_status?: boolean
    last_processed_row_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    created_at?: boolean
    updated_by?: boolean
    updated_at?: boolean
    deleted_by?: boolean
    deleted_at?: boolean
  }

  export type ImportJobInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | ImportJob$createdArgs<ExtArgs>
    updated?: boolean | ImportJob$updatedArgs<ExtArgs>
    deleted?: boolean | ImportJob$deletedArgs<ExtArgs>
    line_items?: boolean | ImportJob$line_itemsArgs<ExtArgs>
    _count?: boolean | ImportJobCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $ImportJobPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "ImportJob"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
      line_items: Prisma.$ImportJobLineItemPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      description: string | null
      sequence_number: string | null
      header_details: string | null
      table_config: string | null
      total_rows: number
      completed_rows: number
      error_rows: number
      batch_process_count: number | null
      job_status: string | null
      last_processed_row_id: number | null
      status_id: number
      company_id: number
      created_by: number | null
      created_at: Date
      updated_by: number | null
      updated_at: Date
      deleted_by: number | null
      deleted_at: Date | null
    }, ExtArgs["result"]["importJob"]>
    composites: {}
  }

  type ImportJobGetPayload<S extends boolean | null | undefined | ImportJobDefaultArgs> = $Result.GetResult<Prisma.$ImportJobPayload, S>

  type ImportJobCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ImportJobFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ImportJobCountAggregateInputType | true
    }

  export interface ImportJobDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ImportJob'], meta: { name: 'ImportJob' } }
    /**
     * Find zero or one ImportJob that matches the filter.
     * @param {ImportJobFindUniqueArgs} args - Arguments to find a ImportJob
     * @example
     * // Get one ImportJob
     * const importJob = await prisma.importJob.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ImportJobFindUniqueArgs>(args: SelectSubset<T, ImportJobFindUniqueArgs<ExtArgs>>): Prisma__ImportJobClient<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one ImportJob that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ImportJobFindUniqueOrThrowArgs} args - Arguments to find a ImportJob
     * @example
     * // Get one ImportJob
     * const importJob = await prisma.importJob.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ImportJobFindUniqueOrThrowArgs>(args: SelectSubset<T, ImportJobFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ImportJobClient<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first ImportJob 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 {ImportJobFindFirstArgs} args - Arguments to find a ImportJob
     * @example
     * // Get one ImportJob
     * const importJob = await prisma.importJob.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ImportJobFindFirstArgs>(args?: SelectSubset<T, ImportJobFindFirstArgs<ExtArgs>>): Prisma__ImportJobClient<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first ImportJob 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 {ImportJobFindFirstOrThrowArgs} args - Arguments to find a ImportJob
     * @example
     * // Get one ImportJob
     * const importJob = await prisma.importJob.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ImportJobFindFirstOrThrowArgs>(args?: SelectSubset<T, ImportJobFindFirstOrThrowArgs<ExtArgs>>): Prisma__ImportJobClient<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more ImportJobs 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 {ImportJobFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all ImportJobs
     * const importJobs = await prisma.importJob.findMany()
     * 
     * // Get first 10 ImportJobs
     * const importJobs = await prisma.importJob.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const importJobWithIdOnly = await prisma.importJob.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ImportJobFindManyArgs>(args?: SelectSubset<T, ImportJobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a ImportJob.
     * @param {ImportJobCreateArgs} args - Arguments to create a ImportJob.
     * @example
     * // Create one ImportJob
     * const ImportJob = await prisma.importJob.create({
     *   data: {
     *     // ... data to create a ImportJob
     *   }
     * })
     * 
     */
    create<T extends ImportJobCreateArgs>(args: SelectSubset<T, ImportJobCreateArgs<ExtArgs>>): Prisma__ImportJobClient<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many ImportJobs.
     * @param {ImportJobCreateManyArgs} args - Arguments to create many ImportJobs.
     * @example
     * // Create many ImportJobs
     * const importJob = await prisma.importJob.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ImportJobCreateManyArgs>(args?: SelectSubset<T, ImportJobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a ImportJob.
     * @param {ImportJobDeleteArgs} args - Arguments to delete one ImportJob.
     * @example
     * // Delete one ImportJob
     * const ImportJob = await prisma.importJob.delete({
     *   where: {
     *     // ... filter to delete one ImportJob
     *   }
     * })
     * 
     */
    delete<T extends ImportJobDeleteArgs>(args: SelectSubset<T, ImportJobDeleteArgs<ExtArgs>>): Prisma__ImportJobClient<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one ImportJob.
     * @param {ImportJobUpdateArgs} args - Arguments to update one ImportJob.
     * @example
     * // Update one ImportJob
     * const importJob = await prisma.importJob.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ImportJobUpdateArgs>(args: SelectSubset<T, ImportJobUpdateArgs<ExtArgs>>): Prisma__ImportJobClient<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more ImportJobs.
     * @param {ImportJobDeleteManyArgs} args - Arguments to filter ImportJobs to delete.
     * @example
     * // Delete a few ImportJobs
     * const { count } = await prisma.importJob.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ImportJobDeleteManyArgs>(args?: SelectSubset<T, ImportJobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more ImportJobs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportJobUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many ImportJobs
     * const importJob = await prisma.importJob.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ImportJobUpdateManyArgs>(args: SelectSubset<T, ImportJobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one ImportJob.
     * @param {ImportJobUpsertArgs} args - Arguments to update or create a ImportJob.
     * @example
     * // Update or create a ImportJob
     * const importJob = await prisma.importJob.upsert({
     *   create: {
     *     // ... data to create a ImportJob
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the ImportJob we want to update
     *   }
     * })
     */
    upsert<T extends ImportJobUpsertArgs>(args: SelectSubset<T, ImportJobUpsertArgs<ExtArgs>>): Prisma__ImportJobClient<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of ImportJobs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportJobCountArgs} args - Arguments to filter ImportJobs to count.
     * @example
     * // Count the number of ImportJobs
     * const count = await prisma.importJob.count({
     *   where: {
     *     // ... the filter for the ImportJobs we want to count
     *   }
     * })
    **/
    count<T extends ImportJobCountArgs>(
      args?: Subset<T, ImportJobCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ImportJobCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a ImportJob.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportJobAggregateArgs} 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<T extends ImportJobAggregateArgs>(args: Subset<T, ImportJobAggregateArgs>): Prisma.PrismaPromise<GetImportJobAggregateType<T>>

    /**
     * Group by ImportJob.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportJobGroupByArgs} 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 ImportJobGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ImportJobGroupByArgs['orderBy'] }
        : { orderBy?: ImportJobGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ImportJobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetImportJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the ImportJob model
   */
  readonly fields: ImportJobFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for ImportJob.
   * 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__ImportJobClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created<T extends ImportJob$createdArgs<ExtArgs> = {}>(args?: Subset<T, ImportJob$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends ImportJob$updatedArgs<ExtArgs> = {}>(args?: Subset<T, ImportJob$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends ImportJob$deletedArgs<ExtArgs> = {}>(args?: Subset<T, ImportJob$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    line_items<T extends ImportJob$line_itemsArgs<ExtArgs> = {}>(args?: Subset<T, ImportJob$line_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the ImportJob model
   */ 
  interface ImportJobFieldRefs {
    readonly id: FieldRef<"ImportJob", 'Int'>
    readonly uuid: FieldRef<"ImportJob", 'String'>
    readonly name: FieldRef<"ImportJob", 'String'>
    readonly description: FieldRef<"ImportJob", 'String'>
    readonly sequence_number: FieldRef<"ImportJob", 'String'>
    readonly header_details: FieldRef<"ImportJob", 'String'>
    readonly table_config: FieldRef<"ImportJob", 'String'>
    readonly total_rows: FieldRef<"ImportJob", 'Int'>
    readonly completed_rows: FieldRef<"ImportJob", 'Int'>
    readonly error_rows: FieldRef<"ImportJob", 'Int'>
    readonly batch_process_count: FieldRef<"ImportJob", 'Int'>
    readonly job_status: FieldRef<"ImportJob", 'String'>
    readonly last_processed_row_id: FieldRef<"ImportJob", 'Int'>
    readonly status_id: FieldRef<"ImportJob", 'Int'>
    readonly company_id: FieldRef<"ImportJob", 'Int'>
    readonly created_by: FieldRef<"ImportJob", 'Int'>
    readonly created_at: FieldRef<"ImportJob", 'DateTime'>
    readonly updated_by: FieldRef<"ImportJob", 'Int'>
    readonly updated_at: FieldRef<"ImportJob", 'DateTime'>
    readonly deleted_by: FieldRef<"ImportJob", 'Int'>
    readonly deleted_at: FieldRef<"ImportJob", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * ImportJob findUnique
   */
  export type ImportJobFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    /**
     * Filter, which ImportJob to fetch.
     */
    where: ImportJobWhereUniqueInput
  }

  /**
   * ImportJob findUniqueOrThrow
   */
  export type ImportJobFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    /**
     * Filter, which ImportJob to fetch.
     */
    where: ImportJobWhereUniqueInput
  }

  /**
   * ImportJob findFirst
   */
  export type ImportJobFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    /**
     * Filter, which ImportJob to fetch.
     */
    where?: ImportJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportJobs to fetch.
     */
    orderBy?: ImportJobOrderByWithRelationInput | ImportJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportJobs.
     */
    cursor?: ImportJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportJobs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportJobs.
     */
    distinct?: ImportJobScalarFieldEnum | ImportJobScalarFieldEnum[]
  }

  /**
   * ImportJob findFirstOrThrow
   */
  export type ImportJobFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    /**
     * Filter, which ImportJob to fetch.
     */
    where?: ImportJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportJobs to fetch.
     */
    orderBy?: ImportJobOrderByWithRelationInput | ImportJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportJobs.
     */
    cursor?: ImportJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportJobs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportJobs.
     */
    distinct?: ImportJobScalarFieldEnum | ImportJobScalarFieldEnum[]
  }

  /**
   * ImportJob findMany
   */
  export type ImportJobFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    /**
     * Filter, which ImportJobs to fetch.
     */
    where?: ImportJobWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportJobs to fetch.
     */
    orderBy?: ImportJobOrderByWithRelationInput | ImportJobOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing ImportJobs.
     */
    cursor?: ImportJobWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportJobs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportJobs.
     */
    skip?: number
    distinct?: ImportJobScalarFieldEnum | ImportJobScalarFieldEnum[]
  }

  /**
   * ImportJob create
   */
  export type ImportJobCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    /**
     * The data needed to create a ImportJob.
     */
    data: XOR<ImportJobCreateInput, ImportJobUncheckedCreateInput>
  }

  /**
   * ImportJob createMany
   */
  export type ImportJobCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many ImportJobs.
     */
    data: ImportJobCreateManyInput | ImportJobCreateManyInput[]
  }

  /**
   * ImportJob update
   */
  export type ImportJobUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    /**
     * The data needed to update a ImportJob.
     */
    data: XOR<ImportJobUpdateInput, ImportJobUncheckedUpdateInput>
    /**
     * Choose, which ImportJob to update.
     */
    where: ImportJobWhereUniqueInput
  }

  /**
   * ImportJob updateMany
   */
  export type ImportJobUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update ImportJobs.
     */
    data: XOR<ImportJobUpdateManyMutationInput, ImportJobUncheckedUpdateManyInput>
    /**
     * Filter which ImportJobs to update
     */
    where?: ImportJobWhereInput
  }

  /**
   * ImportJob upsert
   */
  export type ImportJobUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    /**
     * The filter to search for the ImportJob to update in case it exists.
     */
    where: ImportJobWhereUniqueInput
    /**
     * In case the ImportJob found by the `where` argument doesn't exist, create a new ImportJob with this data.
     */
    create: XOR<ImportJobCreateInput, ImportJobUncheckedCreateInput>
    /**
     * In case the ImportJob was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ImportJobUpdateInput, ImportJobUncheckedUpdateInput>
  }

  /**
   * ImportJob delete
   */
  export type ImportJobDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    /**
     * Filter which ImportJob to delete.
     */
    where: ImportJobWhereUniqueInput
  }

  /**
   * ImportJob deleteMany
   */
  export type ImportJobDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportJobs to delete
     */
    where?: ImportJobWhereInput
  }

  /**
   * ImportJob.created
   */
  export type ImportJob$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * ImportJob.updated
   */
  export type ImportJob$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * ImportJob.deleted
   */
  export type ImportJob$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * ImportJob.line_items
   */
  export type ImportJob$line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    where?: ImportJobLineItemWhereInput
    orderBy?: ImportJobLineItemOrderByWithRelationInput | ImportJobLineItemOrderByWithRelationInput[]
    cursor?: ImportJobLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportJobLineItemScalarFieldEnum | ImportJobLineItemScalarFieldEnum[]
  }

  /**
   * ImportJob without action
   */
  export type ImportJobDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
  }


  /**
   * Model ImportJobLineItem
   */

  export type AggregateImportJobLineItem = {
    _count: ImportJobLineItemCountAggregateOutputType | null
    _avg: ImportJobLineItemAvgAggregateOutputType | null
    _sum: ImportJobLineItemSumAggregateOutputType | null
    _min: ImportJobLineItemMinAggregateOutputType | null
    _max: ImportJobLineItemMaxAggregateOutputType | null
  }

  export type ImportJobLineItemAvgAggregateOutputType = {
    id: number | null
    import_job_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type ImportJobLineItemSumAggregateOutputType = {
    id: number | null
    import_job_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type ImportJobLineItemMinAggregateOutputType = {
    id: number | null
    import_job_id: number | null
    row_object: string | null
    job_status: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ImportJobLineItemMaxAggregateOutputType = {
    id: number | null
    import_job_id: number | null
    row_object: string | null
    job_status: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ImportJobLineItemCountAggregateOutputType = {
    id: number
    import_job_id: number
    row_object: number
    job_status: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type ImportJobLineItemAvgAggregateInputType = {
    id?: true
    import_job_id?: true
    status_id?: true
    company_id?: true
  }

  export type ImportJobLineItemSumAggregateInputType = {
    id?: true
    import_job_id?: true
    status_id?: true
    company_id?: true
  }

  export type ImportJobLineItemMinAggregateInputType = {
    id?: true
    import_job_id?: true
    row_object?: true
    job_status?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ImportJobLineItemMaxAggregateInputType = {
    id?: true
    import_job_id?: true
    row_object?: true
    job_status?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ImportJobLineItemCountAggregateInputType = {
    id?: true
    import_job_id?: true
    row_object?: true
    job_status?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type ImportJobLineItemAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportJobLineItem to aggregate.
     */
    where?: ImportJobLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportJobLineItems to fetch.
     */
    orderBy?: ImportJobLineItemOrderByWithRelationInput | ImportJobLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ImportJobLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportJobLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportJobLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned ImportJobLineItems
    **/
    _count?: true | ImportJobLineItemCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ImportJobLineItemAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ImportJobLineItemSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ImportJobLineItemMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ImportJobLineItemMaxAggregateInputType
  }

  export type GetImportJobLineItemAggregateType<T extends ImportJobLineItemAggregateArgs> = {
        [P in keyof T & keyof AggregateImportJobLineItem]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateImportJobLineItem[P]>
      : GetScalarType<T[P], AggregateImportJobLineItem[P]>
  }




  export type ImportJobLineItemGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ImportJobLineItemWhereInput
    orderBy?: ImportJobLineItemOrderByWithAggregationInput | ImportJobLineItemOrderByWithAggregationInput[]
    by: ImportJobLineItemScalarFieldEnum[] | ImportJobLineItemScalarFieldEnum
    having?: ImportJobLineItemScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ImportJobLineItemCountAggregateInputType | true
    _avg?: ImportJobLineItemAvgAggregateInputType
    _sum?: ImportJobLineItemSumAggregateInputType
    _min?: ImportJobLineItemMinAggregateInputType
    _max?: ImportJobLineItemMaxAggregateInputType
  }

  export type ImportJobLineItemGroupByOutputType = {
    id: number
    import_job_id: number
    row_object: string | null
    job_status: string | null
    status_id: number
    company_id: number
    created_at: Date
    _count: ImportJobLineItemCountAggregateOutputType | null
    _avg: ImportJobLineItemAvgAggregateOutputType | null
    _sum: ImportJobLineItemSumAggregateOutputType | null
    _min: ImportJobLineItemMinAggregateOutputType | null
    _max: ImportJobLineItemMaxAggregateOutputType | null
  }

  type GetImportJobLineItemGroupByPayload<T extends ImportJobLineItemGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ImportJobLineItemGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ImportJobLineItemGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ImportJobLineItemGroupByOutputType[P]>
            : GetScalarType<T[P], ImportJobLineItemGroupByOutputType[P]>
        }
      >
    >


  export type ImportJobLineItemSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    import_job_id?: boolean
    row_object?: boolean
    job_status?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    import_job?: boolean | ImportJobDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["importJobLineItem"]>


  export type ImportJobLineItemSelectScalar = {
    id?: boolean
    import_job_id?: boolean
    row_object?: boolean
    job_status?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type ImportJobLineItemInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    import_job?: boolean | ImportJobDefaultArgs<ExtArgs>
  }

  export type $ImportJobLineItemPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "ImportJobLineItem"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      import_job: Prisma.$ImportJobPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      import_job_id: number
      row_object: string | null
      job_status: string | null
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["importJobLineItem"]>
    composites: {}
  }

  type ImportJobLineItemGetPayload<S extends boolean | null | undefined | ImportJobLineItemDefaultArgs> = $Result.GetResult<Prisma.$ImportJobLineItemPayload, S>

  type ImportJobLineItemCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ImportJobLineItemFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ImportJobLineItemCountAggregateInputType | true
    }

  export interface ImportJobLineItemDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ImportJobLineItem'], meta: { name: 'ImportJobLineItem' } }
    /**
     * Find zero or one ImportJobLineItem that matches the filter.
     * @param {ImportJobLineItemFindUniqueArgs} args - Arguments to find a ImportJobLineItem
     * @example
     * // Get one ImportJobLineItem
     * const importJobLineItem = await prisma.importJobLineItem.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ImportJobLineItemFindUniqueArgs>(args: SelectSubset<T, ImportJobLineItemFindUniqueArgs<ExtArgs>>): Prisma__ImportJobLineItemClient<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one ImportJobLineItem that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ImportJobLineItemFindUniqueOrThrowArgs} args - Arguments to find a ImportJobLineItem
     * @example
     * // Get one ImportJobLineItem
     * const importJobLineItem = await prisma.importJobLineItem.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ImportJobLineItemFindUniqueOrThrowArgs>(args: SelectSubset<T, ImportJobLineItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ImportJobLineItemClient<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first ImportJobLineItem 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 {ImportJobLineItemFindFirstArgs} args - Arguments to find a ImportJobLineItem
     * @example
     * // Get one ImportJobLineItem
     * const importJobLineItem = await prisma.importJobLineItem.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ImportJobLineItemFindFirstArgs>(args?: SelectSubset<T, ImportJobLineItemFindFirstArgs<ExtArgs>>): Prisma__ImportJobLineItemClient<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first ImportJobLineItem 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 {ImportJobLineItemFindFirstOrThrowArgs} args - Arguments to find a ImportJobLineItem
     * @example
     * // Get one ImportJobLineItem
     * const importJobLineItem = await prisma.importJobLineItem.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ImportJobLineItemFindFirstOrThrowArgs>(args?: SelectSubset<T, ImportJobLineItemFindFirstOrThrowArgs<ExtArgs>>): Prisma__ImportJobLineItemClient<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more ImportJobLineItems 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 {ImportJobLineItemFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all ImportJobLineItems
     * const importJobLineItems = await prisma.importJobLineItem.findMany()
     * 
     * // Get first 10 ImportJobLineItems
     * const importJobLineItems = await prisma.importJobLineItem.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const importJobLineItemWithIdOnly = await prisma.importJobLineItem.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ImportJobLineItemFindManyArgs>(args?: SelectSubset<T, ImportJobLineItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a ImportJobLineItem.
     * @param {ImportJobLineItemCreateArgs} args - Arguments to create a ImportJobLineItem.
     * @example
     * // Create one ImportJobLineItem
     * const ImportJobLineItem = await prisma.importJobLineItem.create({
     *   data: {
     *     // ... data to create a ImportJobLineItem
     *   }
     * })
     * 
     */
    create<T extends ImportJobLineItemCreateArgs>(args: SelectSubset<T, ImportJobLineItemCreateArgs<ExtArgs>>): Prisma__ImportJobLineItemClient<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many ImportJobLineItems.
     * @param {ImportJobLineItemCreateManyArgs} args - Arguments to create many ImportJobLineItems.
     * @example
     * // Create many ImportJobLineItems
     * const importJobLineItem = await prisma.importJobLineItem.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ImportJobLineItemCreateManyArgs>(args?: SelectSubset<T, ImportJobLineItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a ImportJobLineItem.
     * @param {ImportJobLineItemDeleteArgs} args - Arguments to delete one ImportJobLineItem.
     * @example
     * // Delete one ImportJobLineItem
     * const ImportJobLineItem = await prisma.importJobLineItem.delete({
     *   where: {
     *     // ... filter to delete one ImportJobLineItem
     *   }
     * })
     * 
     */
    delete<T extends ImportJobLineItemDeleteArgs>(args: SelectSubset<T, ImportJobLineItemDeleteArgs<ExtArgs>>): Prisma__ImportJobLineItemClient<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one ImportJobLineItem.
     * @param {ImportJobLineItemUpdateArgs} args - Arguments to update one ImportJobLineItem.
     * @example
     * // Update one ImportJobLineItem
     * const importJobLineItem = await prisma.importJobLineItem.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ImportJobLineItemUpdateArgs>(args: SelectSubset<T, ImportJobLineItemUpdateArgs<ExtArgs>>): Prisma__ImportJobLineItemClient<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more ImportJobLineItems.
     * @param {ImportJobLineItemDeleteManyArgs} args - Arguments to filter ImportJobLineItems to delete.
     * @example
     * // Delete a few ImportJobLineItems
     * const { count } = await prisma.importJobLineItem.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ImportJobLineItemDeleteManyArgs>(args?: SelectSubset<T, ImportJobLineItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more ImportJobLineItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportJobLineItemUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many ImportJobLineItems
     * const importJobLineItem = await prisma.importJobLineItem.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ImportJobLineItemUpdateManyArgs>(args: SelectSubset<T, ImportJobLineItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one ImportJobLineItem.
     * @param {ImportJobLineItemUpsertArgs} args - Arguments to update or create a ImportJobLineItem.
     * @example
     * // Update or create a ImportJobLineItem
     * const importJobLineItem = await prisma.importJobLineItem.upsert({
     *   create: {
     *     // ... data to create a ImportJobLineItem
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the ImportJobLineItem we want to update
     *   }
     * })
     */
    upsert<T extends ImportJobLineItemUpsertArgs>(args: SelectSubset<T, ImportJobLineItemUpsertArgs<ExtArgs>>): Prisma__ImportJobLineItemClient<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of ImportJobLineItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportJobLineItemCountArgs} args - Arguments to filter ImportJobLineItems to count.
     * @example
     * // Count the number of ImportJobLineItems
     * const count = await prisma.importJobLineItem.count({
     *   where: {
     *     // ... the filter for the ImportJobLineItems we want to count
     *   }
     * })
    **/
    count<T extends ImportJobLineItemCountArgs>(
      args?: Subset<T, ImportJobLineItemCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ImportJobLineItemCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a ImportJobLineItem.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportJobLineItemAggregateArgs} 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<T extends ImportJobLineItemAggregateArgs>(args: Subset<T, ImportJobLineItemAggregateArgs>): Prisma.PrismaPromise<GetImportJobLineItemAggregateType<T>>

    /**
     * Group by ImportJobLineItem.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ImportJobLineItemGroupByArgs} 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 ImportJobLineItemGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ImportJobLineItemGroupByArgs['orderBy'] }
        : { orderBy?: ImportJobLineItemGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ImportJobLineItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetImportJobLineItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the ImportJobLineItem model
   */
  readonly fields: ImportJobLineItemFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for ImportJobLineItem.
   * 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__ImportJobLineItemClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    import_job<T extends ImportJobDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ImportJobDefaultArgs<ExtArgs>>): Prisma__ImportJobClient<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the ImportJobLineItem model
   */ 
  interface ImportJobLineItemFieldRefs {
    readonly id: FieldRef<"ImportJobLineItem", 'Int'>
    readonly import_job_id: FieldRef<"ImportJobLineItem", 'Int'>
    readonly row_object: FieldRef<"ImportJobLineItem", 'String'>
    readonly job_status: FieldRef<"ImportJobLineItem", 'String'>
    readonly status_id: FieldRef<"ImportJobLineItem", 'Int'>
    readonly company_id: FieldRef<"ImportJobLineItem", 'Int'>
    readonly created_at: FieldRef<"ImportJobLineItem", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * ImportJobLineItem findUnique
   */
  export type ImportJobLineItemFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportJobLineItem to fetch.
     */
    where: ImportJobLineItemWhereUniqueInput
  }

  /**
   * ImportJobLineItem findUniqueOrThrow
   */
  export type ImportJobLineItemFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportJobLineItem to fetch.
     */
    where: ImportJobLineItemWhereUniqueInput
  }

  /**
   * ImportJobLineItem findFirst
   */
  export type ImportJobLineItemFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportJobLineItem to fetch.
     */
    where?: ImportJobLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportJobLineItems to fetch.
     */
    orderBy?: ImportJobLineItemOrderByWithRelationInput | ImportJobLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportJobLineItems.
     */
    cursor?: ImportJobLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportJobLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportJobLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportJobLineItems.
     */
    distinct?: ImportJobLineItemScalarFieldEnum | ImportJobLineItemScalarFieldEnum[]
  }

  /**
   * ImportJobLineItem findFirstOrThrow
   */
  export type ImportJobLineItemFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportJobLineItem to fetch.
     */
    where?: ImportJobLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportJobLineItems to fetch.
     */
    orderBy?: ImportJobLineItemOrderByWithRelationInput | ImportJobLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ImportJobLineItems.
     */
    cursor?: ImportJobLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportJobLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportJobLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ImportJobLineItems.
     */
    distinct?: ImportJobLineItemScalarFieldEnum | ImportJobLineItemScalarFieldEnum[]
  }

  /**
   * ImportJobLineItem findMany
   */
  export type ImportJobLineItemFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ImportJobLineItems to fetch.
     */
    where?: ImportJobLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ImportJobLineItems to fetch.
     */
    orderBy?: ImportJobLineItemOrderByWithRelationInput | ImportJobLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing ImportJobLineItems.
     */
    cursor?: ImportJobLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ImportJobLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ImportJobLineItems.
     */
    skip?: number
    distinct?: ImportJobLineItemScalarFieldEnum | ImportJobLineItemScalarFieldEnum[]
  }

  /**
   * ImportJobLineItem create
   */
  export type ImportJobLineItemCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    /**
     * The data needed to create a ImportJobLineItem.
     */
    data: XOR<ImportJobLineItemCreateInput, ImportJobLineItemUncheckedCreateInput>
  }

  /**
   * ImportJobLineItem createMany
   */
  export type ImportJobLineItemCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many ImportJobLineItems.
     */
    data: ImportJobLineItemCreateManyInput | ImportJobLineItemCreateManyInput[]
  }

  /**
   * ImportJobLineItem update
   */
  export type ImportJobLineItemUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    /**
     * The data needed to update a ImportJobLineItem.
     */
    data: XOR<ImportJobLineItemUpdateInput, ImportJobLineItemUncheckedUpdateInput>
    /**
     * Choose, which ImportJobLineItem to update.
     */
    where: ImportJobLineItemWhereUniqueInput
  }

  /**
   * ImportJobLineItem updateMany
   */
  export type ImportJobLineItemUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update ImportJobLineItems.
     */
    data: XOR<ImportJobLineItemUpdateManyMutationInput, ImportJobLineItemUncheckedUpdateManyInput>
    /**
     * Filter which ImportJobLineItems to update
     */
    where?: ImportJobLineItemWhereInput
  }

  /**
   * ImportJobLineItem upsert
   */
  export type ImportJobLineItemUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    /**
     * The filter to search for the ImportJobLineItem to update in case it exists.
     */
    where: ImportJobLineItemWhereUniqueInput
    /**
     * In case the ImportJobLineItem found by the `where` argument doesn't exist, create a new ImportJobLineItem with this data.
     */
    create: XOR<ImportJobLineItemCreateInput, ImportJobLineItemUncheckedCreateInput>
    /**
     * In case the ImportJobLineItem was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ImportJobLineItemUpdateInput, ImportJobLineItemUncheckedUpdateInput>
  }

  /**
   * ImportJobLineItem delete
   */
  export type ImportJobLineItemDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    /**
     * Filter which ImportJobLineItem to delete.
     */
    where: ImportJobLineItemWhereUniqueInput
  }

  /**
   * ImportJobLineItem deleteMany
   */
  export type ImportJobLineItemDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ImportJobLineItems to delete
     */
    where?: ImportJobLineItemWhereInput
  }

  /**
   * ImportJobLineItem without action
   */
  export type ImportJobLineItemDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
  }


  /**
   * Model ExportTemplate
   */

  export type AggregateExportTemplate = {
    _count: ExportTemplateCountAggregateOutputType | null
    _avg: ExportTemplateAvgAggregateOutputType | null
    _sum: ExportTemplateSumAggregateOutputType | null
    _min: ExportTemplateMinAggregateOutputType | null
    _max: ExportTemplateMaxAggregateOutputType | null
  }

  export type ExportTemplateAvgAggregateOutputType = {
    id: number | null
    max_row_count: number | null
    header_row: number | null
    data_start_row: number | null
    data_end_row: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type ExportTemplateSumAggregateOutputType = {
    id: number | null
    max_row_count: number | null
    header_row: number | null
    data_start_row: number | null
    data_end_row: number | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type ExportTemplateMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    description: string | null
    max_row_count: number | null
    header_row: number | null
    data_start_row: number | null
    data_end_row: number | null
    data_filepath: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    created_at: Date | null
    updated_by: number | null
    updated_at: Date | null
    deleted_by: number | null
    deleted_at: Date | null
  }

  export type ExportTemplateMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    name: string | null
    slug: string | null
    description: string | null
    max_row_count: number | null
    header_row: number | null
    data_start_row: number | null
    data_end_row: number | null
    data_filepath: string | null
    status_id: number | null
    company_id: number | null
    created_by: number | null
    created_at: Date | null
    updated_by: number | null
    updated_at: Date | null
    deleted_by: number | null
    deleted_at: Date | null
  }

  export type ExportTemplateCountAggregateOutputType = {
    id: number
    uuid: number
    name: number
    slug: number
    description: number
    max_row_count: number
    header_row: number
    data_start_row: number
    data_end_row: number
    data_filepath: number
    status_id: number
    company_id: number
    created_by: number
    created_at: number
    updated_by: number
    updated_at: number
    deleted_by: number
    deleted_at: number
    _all: number
  }


  export type ExportTemplateAvgAggregateInputType = {
    id?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type ExportTemplateSumAggregateInputType = {
    id?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    status_id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type ExportTemplateMinAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    data_filepath?: true
    status_id?: true
    company_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
  }

  export type ExportTemplateMaxAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    data_filepath?: true
    status_id?: true
    company_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
  }

  export type ExportTemplateCountAggregateInputType = {
    id?: true
    uuid?: true
    name?: true
    slug?: true
    description?: true
    max_row_count?: true
    header_row?: true
    data_start_row?: true
    data_end_row?: true
    data_filepath?: true
    status_id?: true
    company_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
    _all?: true
  }

  export type ExportTemplateAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ExportTemplate to aggregate.
     */
    where?: ExportTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplates to fetch.
     */
    orderBy?: ExportTemplateOrderByWithRelationInput | ExportTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ExportTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplates.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned ExportTemplates
    **/
    _count?: true | ExportTemplateCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ExportTemplateAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ExportTemplateSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ExportTemplateMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ExportTemplateMaxAggregateInputType
  }

  export type GetExportTemplateAggregateType<T extends ExportTemplateAggregateArgs> = {
        [P in keyof T & keyof AggregateExportTemplate]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateExportTemplate[P]>
      : GetScalarType<T[P], AggregateExportTemplate[P]>
  }




  export type ExportTemplateGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateWhereInput
    orderBy?: ExportTemplateOrderByWithAggregationInput | ExportTemplateOrderByWithAggregationInput[]
    by: ExportTemplateScalarFieldEnum[] | ExportTemplateScalarFieldEnum
    having?: ExportTemplateScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ExportTemplateCountAggregateInputType | true
    _avg?: ExportTemplateAvgAggregateInputType
    _sum?: ExportTemplateSumAggregateInputType
    _min?: ExportTemplateMinAggregateInputType
    _max?: ExportTemplateMaxAggregateInputType
  }

  export type ExportTemplateGroupByOutputType = {
    id: number
    uuid: string
    name: string
    slug: string
    description: string | null
    max_row_count: number
    header_row: number
    data_start_row: number
    data_end_row: number
    data_filepath: string
    status_id: number
    company_id: number
    created_by: number | null
    created_at: Date
    updated_by: number | null
    updated_at: Date
    deleted_by: number | null
    deleted_at: Date | null
    _count: ExportTemplateCountAggregateOutputType | null
    _avg: ExportTemplateAvgAggregateOutputType | null
    _sum: ExportTemplateSumAggregateOutputType | null
    _min: ExportTemplateMinAggregateOutputType | null
    _max: ExportTemplateMaxAggregateOutputType | null
  }

  type GetExportTemplateGroupByPayload<T extends ExportTemplateGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ExportTemplateGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ExportTemplateGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ExportTemplateGroupByOutputType[P]>
            : GetScalarType<T[P], ExportTemplateGroupByOutputType[P]>
        }
      >
    >


  export type ExportTemplateSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    max_row_count?: boolean
    header_row?: boolean
    data_start_row?: boolean
    data_end_row?: boolean
    data_filepath?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    created_at?: boolean
    updated_by?: boolean
    updated_at?: boolean
    deleted_by?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | ExportTemplate$createdArgs<ExtArgs>
    updated?: boolean | ExportTemplate$updatedArgs<ExtArgs>
    deleted?: boolean | ExportTemplate$deletedArgs<ExtArgs>
    line_items?: boolean | ExportTemplate$line_itemsArgs<ExtArgs>
    queries?: boolean | ExportTemplate$queriesArgs<ExtArgs>
    _count?: boolean | ExportTemplateCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["exportTemplate"]>


  export type ExportTemplateSelectScalar = {
    id?: boolean
    uuid?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    max_row_count?: boolean
    header_row?: boolean
    data_start_row?: boolean
    data_end_row?: boolean
    data_filepath?: boolean
    status_id?: boolean
    company_id?: boolean
    created_by?: boolean
    created_at?: boolean
    updated_by?: boolean
    updated_at?: boolean
    deleted_by?: boolean
    deleted_at?: boolean
  }

  export type ExportTemplateInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created?: boolean | ExportTemplate$createdArgs<ExtArgs>
    updated?: boolean | ExportTemplate$updatedArgs<ExtArgs>
    deleted?: boolean | ExportTemplate$deletedArgs<ExtArgs>
    line_items?: boolean | ExportTemplate$line_itemsArgs<ExtArgs>
    queries?: boolean | ExportTemplate$queriesArgs<ExtArgs>
    _count?: boolean | ExportTemplateCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $ExportTemplatePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "ExportTemplate"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      created: Prisma.$UserPayload<ExtArgs> | null
      updated: Prisma.$UserPayload<ExtArgs> | null
      deleted: Prisma.$UserPayload<ExtArgs> | null
      line_items: Prisma.$ExportTemplateLineItemPayload<ExtArgs>[]
      queries: Prisma.$ExportTemplateQueriesPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      name: string
      slug: string
      description: string | null
      max_row_count: number
      header_row: number
      data_start_row: number
      data_end_row: number
      data_filepath: string
      status_id: number
      company_id: number
      created_by: number | null
      created_at: Date
      updated_by: number | null
      updated_at: Date
      deleted_by: number | null
      deleted_at: Date | null
    }, ExtArgs["result"]["exportTemplate"]>
    composites: {}
  }

  type ExportTemplateGetPayload<S extends boolean | null | undefined | ExportTemplateDefaultArgs> = $Result.GetResult<Prisma.$ExportTemplatePayload, S>

  type ExportTemplateCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ExportTemplateFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ExportTemplateCountAggregateInputType | true
    }

  export interface ExportTemplateDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ExportTemplate'], meta: { name: 'ExportTemplate' } }
    /**
     * Find zero or one ExportTemplate that matches the filter.
     * @param {ExportTemplateFindUniqueArgs} args - Arguments to find a ExportTemplate
     * @example
     * // Get one ExportTemplate
     * const exportTemplate = await prisma.exportTemplate.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ExportTemplateFindUniqueArgs>(args: SelectSubset<T, ExportTemplateFindUniqueArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one ExportTemplate that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ExportTemplateFindUniqueOrThrowArgs} args - Arguments to find a ExportTemplate
     * @example
     * // Get one ExportTemplate
     * const exportTemplate = await prisma.exportTemplate.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ExportTemplateFindUniqueOrThrowArgs>(args: SelectSubset<T, ExportTemplateFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first ExportTemplate 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 {ExportTemplateFindFirstArgs} args - Arguments to find a ExportTemplate
     * @example
     * // Get one ExportTemplate
     * const exportTemplate = await prisma.exportTemplate.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ExportTemplateFindFirstArgs>(args?: SelectSubset<T, ExportTemplateFindFirstArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first ExportTemplate 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 {ExportTemplateFindFirstOrThrowArgs} args - Arguments to find a ExportTemplate
     * @example
     * // Get one ExportTemplate
     * const exportTemplate = await prisma.exportTemplate.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ExportTemplateFindFirstOrThrowArgs>(args?: SelectSubset<T, ExportTemplateFindFirstOrThrowArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more ExportTemplates 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 {ExportTemplateFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all ExportTemplates
     * const exportTemplates = await prisma.exportTemplate.findMany()
     * 
     * // Get first 10 ExportTemplates
     * const exportTemplates = await prisma.exportTemplate.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const exportTemplateWithIdOnly = await prisma.exportTemplate.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ExportTemplateFindManyArgs>(args?: SelectSubset<T, ExportTemplateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findMany">>

    /**
     * Create a ExportTemplate.
     * @param {ExportTemplateCreateArgs} args - Arguments to create a ExportTemplate.
     * @example
     * // Create one ExportTemplate
     * const ExportTemplate = await prisma.exportTemplate.create({
     *   data: {
     *     // ... data to create a ExportTemplate
     *   }
     * })
     * 
     */
    create<T extends ExportTemplateCreateArgs>(args: SelectSubset<T, ExportTemplateCreateArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many ExportTemplates.
     * @param {ExportTemplateCreateManyArgs} args - Arguments to create many ExportTemplates.
     * @example
     * // Create many ExportTemplates
     * const exportTemplate = await prisma.exportTemplate.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ExportTemplateCreateManyArgs>(args?: SelectSubset<T, ExportTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a ExportTemplate.
     * @param {ExportTemplateDeleteArgs} args - Arguments to delete one ExportTemplate.
     * @example
     * // Delete one ExportTemplate
     * const ExportTemplate = await prisma.exportTemplate.delete({
     *   where: {
     *     // ... filter to delete one ExportTemplate
     *   }
     * })
     * 
     */
    delete<T extends ExportTemplateDeleteArgs>(args: SelectSubset<T, ExportTemplateDeleteArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one ExportTemplate.
     * @param {ExportTemplateUpdateArgs} args - Arguments to update one ExportTemplate.
     * @example
     * // Update one ExportTemplate
     * const exportTemplate = await prisma.exportTemplate.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ExportTemplateUpdateArgs>(args: SelectSubset<T, ExportTemplateUpdateArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more ExportTemplates.
     * @param {ExportTemplateDeleteManyArgs} args - Arguments to filter ExportTemplates to delete.
     * @example
     * // Delete a few ExportTemplates
     * const { count } = await prisma.exportTemplate.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ExportTemplateDeleteManyArgs>(args?: SelectSubset<T, ExportTemplateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more ExportTemplates.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many ExportTemplates
     * const exportTemplate = await prisma.exportTemplate.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ExportTemplateUpdateManyArgs>(args: SelectSubset<T, ExportTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one ExportTemplate.
     * @param {ExportTemplateUpsertArgs} args - Arguments to update or create a ExportTemplate.
     * @example
     * // Update or create a ExportTemplate
     * const exportTemplate = await prisma.exportTemplate.upsert({
     *   create: {
     *     // ... data to create a ExportTemplate
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the ExportTemplate we want to update
     *   }
     * })
     */
    upsert<T extends ExportTemplateUpsertArgs>(args: SelectSubset<T, ExportTemplateUpsertArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of ExportTemplates.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateCountArgs} args - Arguments to filter ExportTemplates to count.
     * @example
     * // Count the number of ExportTemplates
     * const count = await prisma.exportTemplate.count({
     *   where: {
     *     // ... the filter for the ExportTemplates we want to count
     *   }
     * })
    **/
    count<T extends ExportTemplateCountArgs>(
      args?: Subset<T, ExportTemplateCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ExportTemplateCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a ExportTemplate.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateAggregateArgs} 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<T extends ExportTemplateAggregateArgs>(args: Subset<T, ExportTemplateAggregateArgs>): Prisma.PrismaPromise<GetExportTemplateAggregateType<T>>

    /**
     * Group by ExportTemplate.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateGroupByArgs} 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 ExportTemplateGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ExportTemplateGroupByArgs['orderBy'] }
        : { orderBy?: ExportTemplateGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ExportTemplateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetExportTemplateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the ExportTemplate model
   */
  readonly fields: ExportTemplateFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for ExportTemplate.
   * 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__ExportTemplateClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created<T extends ExportTemplate$createdArgs<ExtArgs> = {}>(args?: Subset<T, ExportTemplate$createdArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated<T extends ExportTemplate$updatedArgs<ExtArgs> = {}>(args?: Subset<T, ExportTemplate$updatedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted<T extends ExportTemplate$deletedArgs<ExtArgs> = {}>(args?: Subset<T, ExportTemplate$deletedArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    line_items<T extends ExportTemplate$line_itemsArgs<ExtArgs> = {}>(args?: Subset<T, ExportTemplate$line_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    queries<T extends ExportTemplate$queriesArgs<ExtArgs> = {}>(args?: Subset<T, ExportTemplate$queriesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the ExportTemplate model
   */ 
  interface ExportTemplateFieldRefs {
    readonly id: FieldRef<"ExportTemplate", 'Int'>
    readonly uuid: FieldRef<"ExportTemplate", 'String'>
    readonly name: FieldRef<"ExportTemplate", 'String'>
    readonly slug: FieldRef<"ExportTemplate", 'String'>
    readonly description: FieldRef<"ExportTemplate", 'String'>
    readonly max_row_count: FieldRef<"ExportTemplate", 'Int'>
    readonly header_row: FieldRef<"ExportTemplate", 'Int'>
    readonly data_start_row: FieldRef<"ExportTemplate", 'Int'>
    readonly data_end_row: FieldRef<"ExportTemplate", 'Int'>
    readonly data_filepath: FieldRef<"ExportTemplate", 'String'>
    readonly status_id: FieldRef<"ExportTemplate", 'Int'>
    readonly company_id: FieldRef<"ExportTemplate", 'Int'>
    readonly created_by: FieldRef<"ExportTemplate", 'Int'>
    readonly created_at: FieldRef<"ExportTemplate", 'DateTime'>
    readonly updated_by: FieldRef<"ExportTemplate", 'Int'>
    readonly updated_at: FieldRef<"ExportTemplate", 'DateTime'>
    readonly deleted_by: FieldRef<"ExportTemplate", 'Int'>
    readonly deleted_at: FieldRef<"ExportTemplate", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * ExportTemplate findUnique
   */
  export type ExportTemplateFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplate to fetch.
     */
    where: ExportTemplateWhereUniqueInput
  }

  /**
   * ExportTemplate findUniqueOrThrow
   */
  export type ExportTemplateFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplate to fetch.
     */
    where: ExportTemplateWhereUniqueInput
  }

  /**
   * ExportTemplate findFirst
   */
  export type ExportTemplateFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplate to fetch.
     */
    where?: ExportTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplates to fetch.
     */
    orderBy?: ExportTemplateOrderByWithRelationInput | ExportTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ExportTemplates.
     */
    cursor?: ExportTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplates.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ExportTemplates.
     */
    distinct?: ExportTemplateScalarFieldEnum | ExportTemplateScalarFieldEnum[]
  }

  /**
   * ExportTemplate findFirstOrThrow
   */
  export type ExportTemplateFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplate to fetch.
     */
    where?: ExportTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplates to fetch.
     */
    orderBy?: ExportTemplateOrderByWithRelationInput | ExportTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ExportTemplates.
     */
    cursor?: ExportTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplates.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ExportTemplates.
     */
    distinct?: ExportTemplateScalarFieldEnum | ExportTemplateScalarFieldEnum[]
  }

  /**
   * ExportTemplate findMany
   */
  export type ExportTemplateFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplates to fetch.
     */
    where?: ExportTemplateWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplates to fetch.
     */
    orderBy?: ExportTemplateOrderByWithRelationInput | ExportTemplateOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing ExportTemplates.
     */
    cursor?: ExportTemplateWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplates from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplates.
     */
    skip?: number
    distinct?: ExportTemplateScalarFieldEnum | ExportTemplateScalarFieldEnum[]
  }

  /**
   * ExportTemplate create
   */
  export type ExportTemplateCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    /**
     * The data needed to create a ExportTemplate.
     */
    data: XOR<ExportTemplateCreateInput, ExportTemplateUncheckedCreateInput>
  }

  /**
   * ExportTemplate createMany
   */
  export type ExportTemplateCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many ExportTemplates.
     */
    data: ExportTemplateCreateManyInput | ExportTemplateCreateManyInput[]
  }

  /**
   * ExportTemplate update
   */
  export type ExportTemplateUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    /**
     * The data needed to update a ExportTemplate.
     */
    data: XOR<ExportTemplateUpdateInput, ExportTemplateUncheckedUpdateInput>
    /**
     * Choose, which ExportTemplate to update.
     */
    where: ExportTemplateWhereUniqueInput
  }

  /**
   * ExportTemplate updateMany
   */
  export type ExportTemplateUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update ExportTemplates.
     */
    data: XOR<ExportTemplateUpdateManyMutationInput, ExportTemplateUncheckedUpdateManyInput>
    /**
     * Filter which ExportTemplates to update
     */
    where?: ExportTemplateWhereInput
  }

  /**
   * ExportTemplate upsert
   */
  export type ExportTemplateUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    /**
     * The filter to search for the ExportTemplate to update in case it exists.
     */
    where: ExportTemplateWhereUniqueInput
    /**
     * In case the ExportTemplate found by the `where` argument doesn't exist, create a new ExportTemplate with this data.
     */
    create: XOR<ExportTemplateCreateInput, ExportTemplateUncheckedCreateInput>
    /**
     * In case the ExportTemplate was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ExportTemplateUpdateInput, ExportTemplateUncheckedUpdateInput>
  }

  /**
   * ExportTemplate delete
   */
  export type ExportTemplateDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    /**
     * Filter which ExportTemplate to delete.
     */
    where: ExportTemplateWhereUniqueInput
  }

  /**
   * ExportTemplate deleteMany
   */
  export type ExportTemplateDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ExportTemplates to delete
     */
    where?: ExportTemplateWhereInput
  }

  /**
   * ExportTemplate.created
   */
  export type ExportTemplate$createdArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * ExportTemplate.updated
   */
  export type ExportTemplate$updatedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * ExportTemplate.deleted
   */
  export type ExportTemplate$deletedArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * ExportTemplate.line_items
   */
  export type ExportTemplate$line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    where?: ExportTemplateLineItemWhereInput
    orderBy?: ExportTemplateLineItemOrderByWithRelationInput | ExportTemplateLineItemOrderByWithRelationInput[]
    cursor?: ExportTemplateLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ExportTemplateLineItemScalarFieldEnum | ExportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * ExportTemplate.queries
   */
  export type ExportTemplate$queriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    where?: ExportTemplateQueriesWhereInput
    orderBy?: ExportTemplateQueriesOrderByWithRelationInput | ExportTemplateQueriesOrderByWithRelationInput[]
    cursor?: ExportTemplateQueriesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ExportTemplateQueriesScalarFieldEnum | ExportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * ExportTemplate without action
   */
  export type ExportTemplateDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
  }


  /**
   * Model ExportTemplateLineItem
   */

  export type AggregateExportTemplateLineItem = {
    _count: ExportTemplateLineItemCountAggregateOutputType | null
    _avg: ExportTemplateLineItemAvgAggregateOutputType | null
    _sum: ExportTemplateLineItemSumAggregateOutputType | null
    _min: ExportTemplateLineItemMinAggregateOutputType | null
    _max: ExportTemplateLineItemMaxAggregateOutputType | null
  }

  export type ExportTemplateLineItemAvgAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    order_no: Decimal | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type ExportTemplateLineItemSumAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    order_no: Decimal | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type ExportTemplateLineItemMinAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    field_name: string | null
    display_name: string | null
    field_table: string | null
    order_no: Decimal | null
    default_value: string | null
    column_name: string | null
    is_individual: boolean | null
    individual_column: string | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ExportTemplateLineItemMaxAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    field_name: string | null
    display_name: string | null
    field_table: string | null
    order_no: Decimal | null
    default_value: string | null
    column_name: string | null
    is_individual: boolean | null
    individual_column: string | null
    field_type_id: number | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ExportTemplateLineItemCountAggregateOutputType = {
    id: number
    export_template_id: number
    field_name: number
    display_name: number
    field_table: number
    order_no: number
    default_value: number
    column_name: number
    is_individual: number
    individual_column: number
    field_type_id: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type ExportTemplateLineItemAvgAggregateInputType = {
    id?: true
    export_template_id?: true
    order_no?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
  }

  export type ExportTemplateLineItemSumAggregateInputType = {
    id?: true
    export_template_id?: true
    order_no?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
  }

  export type ExportTemplateLineItemMinAggregateInputType = {
    id?: true
    export_template_id?: true
    field_name?: true
    display_name?: true
    field_table?: true
    order_no?: true
    default_value?: true
    column_name?: true
    is_individual?: true
    individual_column?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ExportTemplateLineItemMaxAggregateInputType = {
    id?: true
    export_template_id?: true
    field_name?: true
    display_name?: true
    field_table?: true
    order_no?: true
    default_value?: true
    column_name?: true
    is_individual?: true
    individual_column?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ExportTemplateLineItemCountAggregateInputType = {
    id?: true
    export_template_id?: true
    field_name?: true
    display_name?: true
    field_table?: true
    order_no?: true
    default_value?: true
    column_name?: true
    is_individual?: true
    individual_column?: true
    field_type_id?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type ExportTemplateLineItemAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ExportTemplateLineItem to aggregate.
     */
    where?: ExportTemplateLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplateLineItems to fetch.
     */
    orderBy?: ExportTemplateLineItemOrderByWithRelationInput | ExportTemplateLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ExportTemplateLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplateLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplateLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned ExportTemplateLineItems
    **/
    _count?: true | ExportTemplateLineItemCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ExportTemplateLineItemAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ExportTemplateLineItemSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ExportTemplateLineItemMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ExportTemplateLineItemMaxAggregateInputType
  }

  export type GetExportTemplateLineItemAggregateType<T extends ExportTemplateLineItemAggregateArgs> = {
        [P in keyof T & keyof AggregateExportTemplateLineItem]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateExportTemplateLineItem[P]>
      : GetScalarType<T[P], AggregateExportTemplateLineItem[P]>
  }




  export type ExportTemplateLineItemGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateLineItemWhereInput
    orderBy?: ExportTemplateLineItemOrderByWithAggregationInput | ExportTemplateLineItemOrderByWithAggregationInput[]
    by: ExportTemplateLineItemScalarFieldEnum[] | ExportTemplateLineItemScalarFieldEnum
    having?: ExportTemplateLineItemScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ExportTemplateLineItemCountAggregateInputType | true
    _avg?: ExportTemplateLineItemAvgAggregateInputType
    _sum?: ExportTemplateLineItemSumAggregateInputType
    _min?: ExportTemplateLineItemMinAggregateInputType
    _max?: ExportTemplateLineItemMaxAggregateInputType
  }

  export type ExportTemplateLineItemGroupByOutputType = {
    id: number
    export_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no: Decimal
    default_value: string | null
    column_name: string | null
    is_individual: boolean
    individual_column: string | null
    field_type_id: number | null
    status_id: number
    company_id: number
    created_at: Date
    _count: ExportTemplateLineItemCountAggregateOutputType | null
    _avg: ExportTemplateLineItemAvgAggregateOutputType | null
    _sum: ExportTemplateLineItemSumAggregateOutputType | null
    _min: ExportTemplateLineItemMinAggregateOutputType | null
    _max: ExportTemplateLineItemMaxAggregateOutputType | null
  }

  type GetExportTemplateLineItemGroupByPayload<T extends ExportTemplateLineItemGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ExportTemplateLineItemGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ExportTemplateLineItemGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ExportTemplateLineItemGroupByOutputType[P]>
            : GetScalarType<T[P], ExportTemplateLineItemGroupByOutputType[P]>
        }
      >
    >


  export type ExportTemplateLineItemSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    export_template_id?: boolean
    field_name?: boolean
    display_name?: boolean
    field_table?: boolean
    order_no?: boolean
    default_value?: boolean
    column_name?: boolean
    is_individual?: boolean
    individual_column?: boolean
    field_type_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    export_template?: boolean | ExportTemplateDefaultArgs<ExtArgs>
    field_type?: boolean | ExportTemplateLineItem$field_typeArgs<ExtArgs>
  }, ExtArgs["result"]["exportTemplateLineItem"]>


  export type ExportTemplateLineItemSelectScalar = {
    id?: boolean
    export_template_id?: boolean
    field_name?: boolean
    display_name?: boolean
    field_table?: boolean
    order_no?: boolean
    default_value?: boolean
    column_name?: boolean
    is_individual?: boolean
    individual_column?: boolean
    field_type_id?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type ExportTemplateLineItemInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    export_template?: boolean | ExportTemplateDefaultArgs<ExtArgs>
    field_type?: boolean | ExportTemplateLineItem$field_typeArgs<ExtArgs>
  }

  export type $ExportTemplateLineItemPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "ExportTemplateLineItem"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      export_template: Prisma.$ExportTemplatePayload<ExtArgs>
      field_type: Prisma.$FieldTypePayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      export_template_id: number
      field_name: string
      display_name: string
      field_table: string
      order_no: Prisma.Decimal
      default_value: string | null
      column_name: string | null
      is_individual: boolean
      individual_column: string | null
      field_type_id: number | null
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["exportTemplateLineItem"]>
    composites: {}
  }

  type ExportTemplateLineItemGetPayload<S extends boolean | null | undefined | ExportTemplateLineItemDefaultArgs> = $Result.GetResult<Prisma.$ExportTemplateLineItemPayload, S>

  type ExportTemplateLineItemCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ExportTemplateLineItemFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ExportTemplateLineItemCountAggregateInputType | true
    }

  export interface ExportTemplateLineItemDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ExportTemplateLineItem'], meta: { name: 'ExportTemplateLineItem' } }
    /**
     * Find zero or one ExportTemplateLineItem that matches the filter.
     * @param {ExportTemplateLineItemFindUniqueArgs} args - Arguments to find a ExportTemplateLineItem
     * @example
     * // Get one ExportTemplateLineItem
     * const exportTemplateLineItem = await prisma.exportTemplateLineItem.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ExportTemplateLineItemFindUniqueArgs>(args: SelectSubset<T, ExportTemplateLineItemFindUniqueArgs<ExtArgs>>): Prisma__ExportTemplateLineItemClient<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one ExportTemplateLineItem that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ExportTemplateLineItemFindUniqueOrThrowArgs} args - Arguments to find a ExportTemplateLineItem
     * @example
     * // Get one ExportTemplateLineItem
     * const exportTemplateLineItem = await prisma.exportTemplateLineItem.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ExportTemplateLineItemFindUniqueOrThrowArgs>(args: SelectSubset<T, ExportTemplateLineItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ExportTemplateLineItemClient<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first ExportTemplateLineItem 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 {ExportTemplateLineItemFindFirstArgs} args - Arguments to find a ExportTemplateLineItem
     * @example
     * // Get one ExportTemplateLineItem
     * const exportTemplateLineItem = await prisma.exportTemplateLineItem.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ExportTemplateLineItemFindFirstArgs>(args?: SelectSubset<T, ExportTemplateLineItemFindFirstArgs<ExtArgs>>): Prisma__ExportTemplateLineItemClient<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first ExportTemplateLineItem 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 {ExportTemplateLineItemFindFirstOrThrowArgs} args - Arguments to find a ExportTemplateLineItem
     * @example
     * // Get one ExportTemplateLineItem
     * const exportTemplateLineItem = await prisma.exportTemplateLineItem.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ExportTemplateLineItemFindFirstOrThrowArgs>(args?: SelectSubset<T, ExportTemplateLineItemFindFirstOrThrowArgs<ExtArgs>>): Prisma__ExportTemplateLineItemClient<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more ExportTemplateLineItems 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 {ExportTemplateLineItemFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all ExportTemplateLineItems
     * const exportTemplateLineItems = await prisma.exportTemplateLineItem.findMany()
     * 
     * // Get first 10 ExportTemplateLineItems
     * const exportTemplateLineItems = await prisma.exportTemplateLineItem.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const exportTemplateLineItemWithIdOnly = await prisma.exportTemplateLineItem.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ExportTemplateLineItemFindManyArgs>(args?: SelectSubset<T, ExportTemplateLineItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a ExportTemplateLineItem.
     * @param {ExportTemplateLineItemCreateArgs} args - Arguments to create a ExportTemplateLineItem.
     * @example
     * // Create one ExportTemplateLineItem
     * const ExportTemplateLineItem = await prisma.exportTemplateLineItem.create({
     *   data: {
     *     // ... data to create a ExportTemplateLineItem
     *   }
     * })
     * 
     */
    create<T extends ExportTemplateLineItemCreateArgs>(args: SelectSubset<T, ExportTemplateLineItemCreateArgs<ExtArgs>>): Prisma__ExportTemplateLineItemClient<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many ExportTemplateLineItems.
     * @param {ExportTemplateLineItemCreateManyArgs} args - Arguments to create many ExportTemplateLineItems.
     * @example
     * // Create many ExportTemplateLineItems
     * const exportTemplateLineItem = await prisma.exportTemplateLineItem.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ExportTemplateLineItemCreateManyArgs>(args?: SelectSubset<T, ExportTemplateLineItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a ExportTemplateLineItem.
     * @param {ExportTemplateLineItemDeleteArgs} args - Arguments to delete one ExportTemplateLineItem.
     * @example
     * // Delete one ExportTemplateLineItem
     * const ExportTemplateLineItem = await prisma.exportTemplateLineItem.delete({
     *   where: {
     *     // ... filter to delete one ExportTemplateLineItem
     *   }
     * })
     * 
     */
    delete<T extends ExportTemplateLineItemDeleteArgs>(args: SelectSubset<T, ExportTemplateLineItemDeleteArgs<ExtArgs>>): Prisma__ExportTemplateLineItemClient<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one ExportTemplateLineItem.
     * @param {ExportTemplateLineItemUpdateArgs} args - Arguments to update one ExportTemplateLineItem.
     * @example
     * // Update one ExportTemplateLineItem
     * const exportTemplateLineItem = await prisma.exportTemplateLineItem.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ExportTemplateLineItemUpdateArgs>(args: SelectSubset<T, ExportTemplateLineItemUpdateArgs<ExtArgs>>): Prisma__ExportTemplateLineItemClient<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more ExportTemplateLineItems.
     * @param {ExportTemplateLineItemDeleteManyArgs} args - Arguments to filter ExportTemplateLineItems to delete.
     * @example
     * // Delete a few ExportTemplateLineItems
     * const { count } = await prisma.exportTemplateLineItem.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ExportTemplateLineItemDeleteManyArgs>(args?: SelectSubset<T, ExportTemplateLineItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more ExportTemplateLineItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateLineItemUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many ExportTemplateLineItems
     * const exportTemplateLineItem = await prisma.exportTemplateLineItem.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ExportTemplateLineItemUpdateManyArgs>(args: SelectSubset<T, ExportTemplateLineItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one ExportTemplateLineItem.
     * @param {ExportTemplateLineItemUpsertArgs} args - Arguments to update or create a ExportTemplateLineItem.
     * @example
     * // Update or create a ExportTemplateLineItem
     * const exportTemplateLineItem = await prisma.exportTemplateLineItem.upsert({
     *   create: {
     *     // ... data to create a ExportTemplateLineItem
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the ExportTemplateLineItem we want to update
     *   }
     * })
     */
    upsert<T extends ExportTemplateLineItemUpsertArgs>(args: SelectSubset<T, ExportTemplateLineItemUpsertArgs<ExtArgs>>): Prisma__ExportTemplateLineItemClient<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of ExportTemplateLineItems.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateLineItemCountArgs} args - Arguments to filter ExportTemplateLineItems to count.
     * @example
     * // Count the number of ExportTemplateLineItems
     * const count = await prisma.exportTemplateLineItem.count({
     *   where: {
     *     // ... the filter for the ExportTemplateLineItems we want to count
     *   }
     * })
    **/
    count<T extends ExportTemplateLineItemCountArgs>(
      args?: Subset<T, ExportTemplateLineItemCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ExportTemplateLineItemCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a ExportTemplateLineItem.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateLineItemAggregateArgs} 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<T extends ExportTemplateLineItemAggregateArgs>(args: Subset<T, ExportTemplateLineItemAggregateArgs>): Prisma.PrismaPromise<GetExportTemplateLineItemAggregateType<T>>

    /**
     * Group by ExportTemplateLineItem.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateLineItemGroupByArgs} 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 ExportTemplateLineItemGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ExportTemplateLineItemGroupByArgs['orderBy'] }
        : { orderBy?: ExportTemplateLineItemGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ExportTemplateLineItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetExportTemplateLineItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the ExportTemplateLineItem model
   */
  readonly fields: ExportTemplateLineItemFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for ExportTemplateLineItem.
   * 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__ExportTemplateLineItemClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    export_template<T extends ExportTemplateDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ExportTemplateDefaultArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    field_type<T extends ExportTemplateLineItem$field_typeArgs<ExtArgs> = {}>(args?: Subset<T, ExportTemplateLineItem$field_typeArgs<ExtArgs>>): Prisma__FieldTypeClient<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the ExportTemplateLineItem model
   */ 
  interface ExportTemplateLineItemFieldRefs {
    readonly id: FieldRef<"ExportTemplateLineItem", 'Int'>
    readonly export_template_id: FieldRef<"ExportTemplateLineItem", 'Int'>
    readonly field_name: FieldRef<"ExportTemplateLineItem", 'String'>
    readonly display_name: FieldRef<"ExportTemplateLineItem", 'String'>
    readonly field_table: FieldRef<"ExportTemplateLineItem", 'String'>
    readonly order_no: FieldRef<"ExportTemplateLineItem", 'Decimal'>
    readonly default_value: FieldRef<"ExportTemplateLineItem", 'String'>
    readonly column_name: FieldRef<"ExportTemplateLineItem", 'String'>
    readonly is_individual: FieldRef<"ExportTemplateLineItem", 'Boolean'>
    readonly individual_column: FieldRef<"ExportTemplateLineItem", 'String'>
    readonly field_type_id: FieldRef<"ExportTemplateLineItem", 'Int'>
    readonly status_id: FieldRef<"ExportTemplateLineItem", 'Int'>
    readonly company_id: FieldRef<"ExportTemplateLineItem", 'Int'>
    readonly created_at: FieldRef<"ExportTemplateLineItem", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * ExportTemplateLineItem findUnique
   */
  export type ExportTemplateLineItemFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateLineItem to fetch.
     */
    where: ExportTemplateLineItemWhereUniqueInput
  }

  /**
   * ExportTemplateLineItem findUniqueOrThrow
   */
  export type ExportTemplateLineItemFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateLineItem to fetch.
     */
    where: ExportTemplateLineItemWhereUniqueInput
  }

  /**
   * ExportTemplateLineItem findFirst
   */
  export type ExportTemplateLineItemFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateLineItem to fetch.
     */
    where?: ExportTemplateLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplateLineItems to fetch.
     */
    orderBy?: ExportTemplateLineItemOrderByWithRelationInput | ExportTemplateLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ExportTemplateLineItems.
     */
    cursor?: ExportTemplateLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplateLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplateLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ExportTemplateLineItems.
     */
    distinct?: ExportTemplateLineItemScalarFieldEnum | ExportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * ExportTemplateLineItem findFirstOrThrow
   */
  export type ExportTemplateLineItemFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateLineItem to fetch.
     */
    where?: ExportTemplateLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplateLineItems to fetch.
     */
    orderBy?: ExportTemplateLineItemOrderByWithRelationInput | ExportTemplateLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ExportTemplateLineItems.
     */
    cursor?: ExportTemplateLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplateLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplateLineItems.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ExportTemplateLineItems.
     */
    distinct?: ExportTemplateLineItemScalarFieldEnum | ExportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * ExportTemplateLineItem findMany
   */
  export type ExportTemplateLineItemFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateLineItems to fetch.
     */
    where?: ExportTemplateLineItemWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplateLineItems to fetch.
     */
    orderBy?: ExportTemplateLineItemOrderByWithRelationInput | ExportTemplateLineItemOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing ExportTemplateLineItems.
     */
    cursor?: ExportTemplateLineItemWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplateLineItems from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplateLineItems.
     */
    skip?: number
    distinct?: ExportTemplateLineItemScalarFieldEnum | ExportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * ExportTemplateLineItem create
   */
  export type ExportTemplateLineItemCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    /**
     * The data needed to create a ExportTemplateLineItem.
     */
    data: XOR<ExportTemplateLineItemCreateInput, ExportTemplateLineItemUncheckedCreateInput>
  }

  /**
   * ExportTemplateLineItem createMany
   */
  export type ExportTemplateLineItemCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many ExportTemplateLineItems.
     */
    data: ExportTemplateLineItemCreateManyInput | ExportTemplateLineItemCreateManyInput[]
  }

  /**
   * ExportTemplateLineItem update
   */
  export type ExportTemplateLineItemUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    /**
     * The data needed to update a ExportTemplateLineItem.
     */
    data: XOR<ExportTemplateLineItemUpdateInput, ExportTemplateLineItemUncheckedUpdateInput>
    /**
     * Choose, which ExportTemplateLineItem to update.
     */
    where: ExportTemplateLineItemWhereUniqueInput
  }

  /**
   * ExportTemplateLineItem updateMany
   */
  export type ExportTemplateLineItemUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update ExportTemplateLineItems.
     */
    data: XOR<ExportTemplateLineItemUpdateManyMutationInput, ExportTemplateLineItemUncheckedUpdateManyInput>
    /**
     * Filter which ExportTemplateLineItems to update
     */
    where?: ExportTemplateLineItemWhereInput
  }

  /**
   * ExportTemplateLineItem upsert
   */
  export type ExportTemplateLineItemUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    /**
     * The filter to search for the ExportTemplateLineItem to update in case it exists.
     */
    where: ExportTemplateLineItemWhereUniqueInput
    /**
     * In case the ExportTemplateLineItem found by the `where` argument doesn't exist, create a new ExportTemplateLineItem with this data.
     */
    create: XOR<ExportTemplateLineItemCreateInput, ExportTemplateLineItemUncheckedCreateInput>
    /**
     * In case the ExportTemplateLineItem was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ExportTemplateLineItemUpdateInput, ExportTemplateLineItemUncheckedUpdateInput>
  }

  /**
   * ExportTemplateLineItem delete
   */
  export type ExportTemplateLineItemDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    /**
     * Filter which ExportTemplateLineItem to delete.
     */
    where: ExportTemplateLineItemWhereUniqueInput
  }

  /**
   * ExportTemplateLineItem deleteMany
   */
  export type ExportTemplateLineItemDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ExportTemplateLineItems to delete
     */
    where?: ExportTemplateLineItemWhereInput
  }

  /**
   * ExportTemplateLineItem.field_type
   */
  export type ExportTemplateLineItem$field_typeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    where?: FieldTypeWhereInput
  }

  /**
   * ExportTemplateLineItem without action
   */
  export type ExportTemplateLineItemDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
  }


  /**
   * Model ExportTemplateQueries
   */

  export type AggregateExportTemplateQueries = {
    _count: ExportTemplateQueriesCountAggregateOutputType | null
    _avg: ExportTemplateQueriesAvgAggregateOutputType | null
    _sum: ExportTemplateQueriesSumAggregateOutputType | null
    _min: ExportTemplateQueriesMinAggregateOutputType | null
    _max: ExportTemplateQueriesMaxAggregateOutputType | null
  }

  export type ExportTemplateQueriesAvgAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
  }

  export type ExportTemplateQueriesSumAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
  }

  export type ExportTemplateQueriesMinAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    query_string: string | null
    query_name: string | null
    query_procedure: string | null
    is_individual: boolean | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ExportTemplateQueriesMaxAggregateOutputType = {
    id: number | null
    export_template_id: number | null
    query_string: string | null
    query_name: string | null
    query_procedure: string | null
    is_individual: boolean | null
    order_no: Decimal | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type ExportTemplateQueriesCountAggregateOutputType = {
    id: number
    export_template_id: number
    query_string: number
    query_name: number
    query_procedure: number
    is_individual: number
    order_no: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type ExportTemplateQueriesAvgAggregateInputType = {
    id?: true
    export_template_id?: true
    order_no?: true
    status_id?: true
    company_id?: true
  }

  export type ExportTemplateQueriesSumAggregateInputType = {
    id?: true
    export_template_id?: true
    order_no?: true
    status_id?: true
    company_id?: true
  }

  export type ExportTemplateQueriesMinAggregateInputType = {
    id?: true
    export_template_id?: true
    query_string?: true
    query_name?: true
    query_procedure?: true
    is_individual?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ExportTemplateQueriesMaxAggregateInputType = {
    id?: true
    export_template_id?: true
    query_string?: true
    query_name?: true
    query_procedure?: true
    is_individual?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type ExportTemplateQueriesCountAggregateInputType = {
    id?: true
    export_template_id?: true
    query_string?: true
    query_name?: true
    query_procedure?: true
    is_individual?: true
    order_no?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type ExportTemplateQueriesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ExportTemplateQueries to aggregate.
     */
    where?: ExportTemplateQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplateQueries to fetch.
     */
    orderBy?: ExportTemplateQueriesOrderByWithRelationInput | ExportTemplateQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ExportTemplateQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplateQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplateQueries.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned ExportTemplateQueries
    **/
    _count?: true | ExportTemplateQueriesCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ExportTemplateQueriesAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ExportTemplateQueriesSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ExportTemplateQueriesMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ExportTemplateQueriesMaxAggregateInputType
  }

  export type GetExportTemplateQueriesAggregateType<T extends ExportTemplateQueriesAggregateArgs> = {
        [P in keyof T & keyof AggregateExportTemplateQueries]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateExportTemplateQueries[P]>
      : GetScalarType<T[P], AggregateExportTemplateQueries[P]>
  }




  export type ExportTemplateQueriesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ExportTemplateQueriesWhereInput
    orderBy?: ExportTemplateQueriesOrderByWithAggregationInput | ExportTemplateQueriesOrderByWithAggregationInput[]
    by: ExportTemplateQueriesScalarFieldEnum[] | ExportTemplateQueriesScalarFieldEnum
    having?: ExportTemplateQueriesScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ExportTemplateQueriesCountAggregateInputType | true
    _avg?: ExportTemplateQueriesAvgAggregateInputType
    _sum?: ExportTemplateQueriesSumAggregateInputType
    _min?: ExportTemplateQueriesMinAggregateInputType
    _max?: ExportTemplateQueriesMaxAggregateInputType
  }

  export type ExportTemplateQueriesGroupByOutputType = {
    id: number
    export_template_id: number
    query_string: string | null
    query_name: string
    query_procedure: string
    is_individual: boolean
    order_no: Decimal
    status_id: number
    company_id: number
    created_at: Date
    _count: ExportTemplateQueriesCountAggregateOutputType | null
    _avg: ExportTemplateQueriesAvgAggregateOutputType | null
    _sum: ExportTemplateQueriesSumAggregateOutputType | null
    _min: ExportTemplateQueriesMinAggregateOutputType | null
    _max: ExportTemplateQueriesMaxAggregateOutputType | null
  }

  type GetExportTemplateQueriesGroupByPayload<T extends ExportTemplateQueriesGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ExportTemplateQueriesGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ExportTemplateQueriesGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ExportTemplateQueriesGroupByOutputType[P]>
            : GetScalarType<T[P], ExportTemplateQueriesGroupByOutputType[P]>
        }
      >
    >


  export type ExportTemplateQueriesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    export_template_id?: boolean
    query_string?: boolean
    query_name?: boolean
    query_procedure?: boolean
    is_individual?: boolean
    order_no?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    export_template?: boolean | ExportTemplateDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["exportTemplateQueries"]>


  export type ExportTemplateQueriesSelectScalar = {
    id?: boolean
    export_template_id?: boolean
    query_string?: boolean
    query_name?: boolean
    query_procedure?: boolean
    is_individual?: boolean
    order_no?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type ExportTemplateQueriesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    export_template?: boolean | ExportTemplateDefaultArgs<ExtArgs>
  }

  export type $ExportTemplateQueriesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "ExportTemplateQueries"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      export_template: Prisma.$ExportTemplatePayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      export_template_id: number
      query_string: string | null
      query_name: string
      query_procedure: string
      is_individual: boolean
      order_no: Prisma.Decimal
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["exportTemplateQueries"]>
    composites: {}
  }

  type ExportTemplateQueriesGetPayload<S extends boolean | null | undefined | ExportTemplateQueriesDefaultArgs> = $Result.GetResult<Prisma.$ExportTemplateQueriesPayload, S>

  type ExportTemplateQueriesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ExportTemplateQueriesFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ExportTemplateQueriesCountAggregateInputType | true
    }

  export interface ExportTemplateQueriesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ExportTemplateQueries'], meta: { name: 'ExportTemplateQueries' } }
    /**
     * Find zero or one ExportTemplateQueries that matches the filter.
     * @param {ExportTemplateQueriesFindUniqueArgs} args - Arguments to find a ExportTemplateQueries
     * @example
     * // Get one ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ExportTemplateQueriesFindUniqueArgs>(args: SelectSubset<T, ExportTemplateQueriesFindUniqueArgs<ExtArgs>>): Prisma__ExportTemplateQueriesClient<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one ExportTemplateQueries that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ExportTemplateQueriesFindUniqueOrThrowArgs} args - Arguments to find a ExportTemplateQueries
     * @example
     * // Get one ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ExportTemplateQueriesFindUniqueOrThrowArgs>(args: SelectSubset<T, ExportTemplateQueriesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ExportTemplateQueriesClient<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first ExportTemplateQueries 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 {ExportTemplateQueriesFindFirstArgs} args - Arguments to find a ExportTemplateQueries
     * @example
     * // Get one ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ExportTemplateQueriesFindFirstArgs>(args?: SelectSubset<T, ExportTemplateQueriesFindFirstArgs<ExtArgs>>): Prisma__ExportTemplateQueriesClient<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first ExportTemplateQueries 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 {ExportTemplateQueriesFindFirstOrThrowArgs} args - Arguments to find a ExportTemplateQueries
     * @example
     * // Get one ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ExportTemplateQueriesFindFirstOrThrowArgs>(args?: SelectSubset<T, ExportTemplateQueriesFindFirstOrThrowArgs<ExtArgs>>): Prisma__ExportTemplateQueriesClient<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more ExportTemplateQueries 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 {ExportTemplateQueriesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.findMany()
     * 
     * // Get first 10 ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const exportTemplateQueriesWithIdOnly = await prisma.exportTemplateQueries.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ExportTemplateQueriesFindManyArgs>(args?: SelectSubset<T, ExportTemplateQueriesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a ExportTemplateQueries.
     * @param {ExportTemplateQueriesCreateArgs} args - Arguments to create a ExportTemplateQueries.
     * @example
     * // Create one ExportTemplateQueries
     * const ExportTemplateQueries = await prisma.exportTemplateQueries.create({
     *   data: {
     *     // ... data to create a ExportTemplateQueries
     *   }
     * })
     * 
     */
    create<T extends ExportTemplateQueriesCreateArgs>(args: SelectSubset<T, ExportTemplateQueriesCreateArgs<ExtArgs>>): Prisma__ExportTemplateQueriesClient<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many ExportTemplateQueries.
     * @param {ExportTemplateQueriesCreateManyArgs} args - Arguments to create many ExportTemplateQueries.
     * @example
     * // Create many ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ExportTemplateQueriesCreateManyArgs>(args?: SelectSubset<T, ExportTemplateQueriesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a ExportTemplateQueries.
     * @param {ExportTemplateQueriesDeleteArgs} args - Arguments to delete one ExportTemplateQueries.
     * @example
     * // Delete one ExportTemplateQueries
     * const ExportTemplateQueries = await prisma.exportTemplateQueries.delete({
     *   where: {
     *     // ... filter to delete one ExportTemplateQueries
     *   }
     * })
     * 
     */
    delete<T extends ExportTemplateQueriesDeleteArgs>(args: SelectSubset<T, ExportTemplateQueriesDeleteArgs<ExtArgs>>): Prisma__ExportTemplateQueriesClient<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one ExportTemplateQueries.
     * @param {ExportTemplateQueriesUpdateArgs} args - Arguments to update one ExportTemplateQueries.
     * @example
     * // Update one ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ExportTemplateQueriesUpdateArgs>(args: SelectSubset<T, ExportTemplateQueriesUpdateArgs<ExtArgs>>): Prisma__ExportTemplateQueriesClient<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more ExportTemplateQueries.
     * @param {ExportTemplateQueriesDeleteManyArgs} args - Arguments to filter ExportTemplateQueries to delete.
     * @example
     * // Delete a few ExportTemplateQueries
     * const { count } = await prisma.exportTemplateQueries.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ExportTemplateQueriesDeleteManyArgs>(args?: SelectSubset<T, ExportTemplateQueriesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more ExportTemplateQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateQueriesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ExportTemplateQueriesUpdateManyArgs>(args: SelectSubset<T, ExportTemplateQueriesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one ExportTemplateQueries.
     * @param {ExportTemplateQueriesUpsertArgs} args - Arguments to update or create a ExportTemplateQueries.
     * @example
     * // Update or create a ExportTemplateQueries
     * const exportTemplateQueries = await prisma.exportTemplateQueries.upsert({
     *   create: {
     *     // ... data to create a ExportTemplateQueries
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the ExportTemplateQueries we want to update
     *   }
     * })
     */
    upsert<T extends ExportTemplateQueriesUpsertArgs>(args: SelectSubset<T, ExportTemplateQueriesUpsertArgs<ExtArgs>>): Prisma__ExportTemplateQueriesClient<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of ExportTemplateQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateQueriesCountArgs} args - Arguments to filter ExportTemplateQueries to count.
     * @example
     * // Count the number of ExportTemplateQueries
     * const count = await prisma.exportTemplateQueries.count({
     *   where: {
     *     // ... the filter for the ExportTemplateQueries we want to count
     *   }
     * })
    **/
    count<T extends ExportTemplateQueriesCountArgs>(
      args?: Subset<T, ExportTemplateQueriesCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ExportTemplateQueriesCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a ExportTemplateQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateQueriesAggregateArgs} 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<T extends ExportTemplateQueriesAggregateArgs>(args: Subset<T, ExportTemplateQueriesAggregateArgs>): Prisma.PrismaPromise<GetExportTemplateQueriesAggregateType<T>>

    /**
     * Group by ExportTemplateQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ExportTemplateQueriesGroupByArgs} 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 ExportTemplateQueriesGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ExportTemplateQueriesGroupByArgs['orderBy'] }
        : { orderBy?: ExportTemplateQueriesGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ExportTemplateQueriesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetExportTemplateQueriesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the ExportTemplateQueries model
   */
  readonly fields: ExportTemplateQueriesFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for ExportTemplateQueries.
   * 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__ExportTemplateQueriesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    export_template<T extends ExportTemplateDefaultArgs<ExtArgs> = {}>(args?: Subset<T, ExportTemplateDefaultArgs<ExtArgs>>): Prisma__ExportTemplateClient<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the ExportTemplateQueries model
   */ 
  interface ExportTemplateQueriesFieldRefs {
    readonly id: FieldRef<"ExportTemplateQueries", 'Int'>
    readonly export_template_id: FieldRef<"ExportTemplateQueries", 'Int'>
    readonly query_string: FieldRef<"ExportTemplateQueries", 'String'>
    readonly query_name: FieldRef<"ExportTemplateQueries", 'String'>
    readonly query_procedure: FieldRef<"ExportTemplateQueries", 'String'>
    readonly is_individual: FieldRef<"ExportTemplateQueries", 'Boolean'>
    readonly order_no: FieldRef<"ExportTemplateQueries", 'Decimal'>
    readonly status_id: FieldRef<"ExportTemplateQueries", 'Int'>
    readonly company_id: FieldRef<"ExportTemplateQueries", 'Int'>
    readonly created_at: FieldRef<"ExportTemplateQueries", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * ExportTemplateQueries findUnique
   */
  export type ExportTemplateQueriesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateQueries to fetch.
     */
    where: ExportTemplateQueriesWhereUniqueInput
  }

  /**
   * ExportTemplateQueries findUniqueOrThrow
   */
  export type ExportTemplateQueriesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateQueries to fetch.
     */
    where: ExportTemplateQueriesWhereUniqueInput
  }

  /**
   * ExportTemplateQueries findFirst
   */
  export type ExportTemplateQueriesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateQueries to fetch.
     */
    where?: ExportTemplateQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplateQueries to fetch.
     */
    orderBy?: ExportTemplateQueriesOrderByWithRelationInput | ExportTemplateQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ExportTemplateQueries.
     */
    cursor?: ExportTemplateQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplateQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplateQueries.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ExportTemplateQueries.
     */
    distinct?: ExportTemplateQueriesScalarFieldEnum | ExportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * ExportTemplateQueries findFirstOrThrow
   */
  export type ExportTemplateQueriesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateQueries to fetch.
     */
    where?: ExportTemplateQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplateQueries to fetch.
     */
    orderBy?: ExportTemplateQueriesOrderByWithRelationInput | ExportTemplateQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for ExportTemplateQueries.
     */
    cursor?: ExportTemplateQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplateQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplateQueries.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of ExportTemplateQueries.
     */
    distinct?: ExportTemplateQueriesScalarFieldEnum | ExportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * ExportTemplateQueries findMany
   */
  export type ExportTemplateQueriesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter, which ExportTemplateQueries to fetch.
     */
    where?: ExportTemplateQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of ExportTemplateQueries to fetch.
     */
    orderBy?: ExportTemplateQueriesOrderByWithRelationInput | ExportTemplateQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing ExportTemplateQueries.
     */
    cursor?: ExportTemplateQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` ExportTemplateQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` ExportTemplateQueries.
     */
    skip?: number
    distinct?: ExportTemplateQueriesScalarFieldEnum | ExportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * ExportTemplateQueries create
   */
  export type ExportTemplateQueriesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    /**
     * The data needed to create a ExportTemplateQueries.
     */
    data: XOR<ExportTemplateQueriesCreateInput, ExportTemplateQueriesUncheckedCreateInput>
  }

  /**
   * ExportTemplateQueries createMany
   */
  export type ExportTemplateQueriesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many ExportTemplateQueries.
     */
    data: ExportTemplateQueriesCreateManyInput | ExportTemplateQueriesCreateManyInput[]
  }

  /**
   * ExportTemplateQueries update
   */
  export type ExportTemplateQueriesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    /**
     * The data needed to update a ExportTemplateQueries.
     */
    data: XOR<ExportTemplateQueriesUpdateInput, ExportTemplateQueriesUncheckedUpdateInput>
    /**
     * Choose, which ExportTemplateQueries to update.
     */
    where: ExportTemplateQueriesWhereUniqueInput
  }

  /**
   * ExportTemplateQueries updateMany
   */
  export type ExportTemplateQueriesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update ExportTemplateQueries.
     */
    data: XOR<ExportTemplateQueriesUpdateManyMutationInput, ExportTemplateQueriesUncheckedUpdateManyInput>
    /**
     * Filter which ExportTemplateQueries to update
     */
    where?: ExportTemplateQueriesWhereInput
  }

  /**
   * ExportTemplateQueries upsert
   */
  export type ExportTemplateQueriesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    /**
     * The filter to search for the ExportTemplateQueries to update in case it exists.
     */
    where: ExportTemplateQueriesWhereUniqueInput
    /**
     * In case the ExportTemplateQueries found by the `where` argument doesn't exist, create a new ExportTemplateQueries with this data.
     */
    create: XOR<ExportTemplateQueriesCreateInput, ExportTemplateQueriesUncheckedCreateInput>
    /**
     * In case the ExportTemplateQueries was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ExportTemplateQueriesUpdateInput, ExportTemplateQueriesUncheckedUpdateInput>
  }

  /**
   * ExportTemplateQueries delete
   */
  export type ExportTemplateQueriesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    /**
     * Filter which ExportTemplateQueries to delete.
     */
    where: ExportTemplateQueriesWhereUniqueInput
  }

  /**
   * ExportTemplateQueries deleteMany
   */
  export type ExportTemplateQueriesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which ExportTemplateQueries to delete
     */
    where?: ExportTemplateQueriesWhereInput
  }

  /**
   * ExportTemplateQueries without action
   */
  export type ExportTemplateQueriesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
  }


  /**
   * Model Status
   */

  export type AggregateStatus = {
    _count: StatusCountAggregateOutputType | null
    _avg: StatusAvgAggregateOutputType | null
    _sum: StatusSumAggregateOutputType | null
    _min: StatusMinAggregateOutputType | null
    _max: StatusMaxAggregateOutputType | null
  }

  export type StatusAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
  }

  export type StatusSumAggregateOutputType = {
    id: number | null
    status_id: number | null
  }

  export type StatusMinAggregateOutputType = {
    id: number | null
    name: string | null
    slug: string | null
    description: string | null
    status_id: number | null
  }

  export type StatusMaxAggregateOutputType = {
    id: number | null
    name: string | null
    slug: string | null
    description: string | null
    status_id: number | null
  }

  export type StatusCountAggregateOutputType = {
    id: number
    name: number
    slug: number
    description: number
    status_id: number
    _all: number
  }


  export type StatusAvgAggregateInputType = {
    id?: true
    status_id?: true
  }

  export type StatusSumAggregateInputType = {
    id?: true
    status_id?: true
  }

  export type StatusMinAggregateInputType = {
    id?: true
    name?: true
    slug?: true
    description?: true
    status_id?: true
  }

  export type StatusMaxAggregateInputType = {
    id?: true
    name?: true
    slug?: true
    description?: true
    status_id?: true
  }

  export type StatusCountAggregateInputType = {
    id?: true
    name?: true
    slug?: true
    description?: true
    status_id?: true
    _all?: true
  }

  export type StatusAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Status to aggregate.
     */
    where?: StatusWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Statuses to fetch.
     */
    orderBy?: StatusOrderByWithRelationInput | StatusOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: StatusWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Statuses from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Statuses.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Statuses
    **/
    _count?: true | StatusCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: StatusAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: StatusSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: StatusMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: StatusMaxAggregateInputType
  }

  export type GetStatusAggregateType<T extends StatusAggregateArgs> = {
        [P in keyof T & keyof AggregateStatus]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateStatus[P]>
      : GetScalarType<T[P], AggregateStatus[P]>
  }




  export type StatusGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: StatusWhereInput
    orderBy?: StatusOrderByWithAggregationInput | StatusOrderByWithAggregationInput[]
    by: StatusScalarFieldEnum[] | StatusScalarFieldEnum
    having?: StatusScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: StatusCountAggregateInputType | true
    _avg?: StatusAvgAggregateInputType
    _sum?: StatusSumAggregateInputType
    _min?: StatusMinAggregateInputType
    _max?: StatusMaxAggregateInputType
  }

  export type StatusGroupByOutputType = {
    id: number
    name: string
    slug: string
    description: string | null
    status_id: number | null
    _count: StatusCountAggregateOutputType | null
    _avg: StatusAvgAggregateOutputType | null
    _sum: StatusSumAggregateOutputType | null
    _min: StatusMinAggregateOutputType | null
    _max: StatusMaxAggregateOutputType | null
  }

  type GetStatusGroupByPayload<T extends StatusGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<StatusGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof StatusGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], StatusGroupByOutputType[P]>
            : GetScalarType<T[P], StatusGroupByOutputType[P]>
        }
      >
    >


  export type StatusSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    status_id?: boolean
    status?: boolean | Status$statusArgs<ExtArgs>
    status_list?: boolean | Status$status_listArgs<ExtArgs>
    users?: boolean | Status$usersArgs<ExtArgs>
    request_logs?: boolean | Status$request_logsArgs<ExtArgs>
    permissions?: boolean | Status$permissionsArgs<ExtArgs>
    roles?: boolean | Status$rolesArgs<ExtArgs>
    languages?: boolean | Status$languagesArgs<ExtArgs>
    language_contents?: boolean | Status$language_contentsArgs<ExtArgs>
    menuitems?: boolean | Status$menuitemsArgs<ExtArgs>
    menus?: boolean | Status$menusArgs<ExtArgs>
    master_grids?: boolean | Status$master_gridsArgs<ExtArgs>
    master_grid_line_items?: boolean | Status$master_grid_line_itemsArgs<ExtArgs>
    field_types?: boolean | Status$field_typesArgs<ExtArgs>
    menu_types?: boolean | Status$menu_typesArgs<ExtArgs>
    email_template_processes?: boolean | Status$email_template_processesArgs<ExtArgs>
    email_template_tags?: boolean | Status$email_template_tagsArgs<ExtArgs>
    email_template_receiver_tags?: boolean | Status$email_template_receiver_tagsArgs<ExtArgs>
    email_templates?: boolean | Status$email_templatesArgs<ExtArgs>
    email_process_jobs?: boolean | Status$email_process_jobsArgs<ExtArgs>
    notification_job?: boolean | Status$notification_jobArgs<ExtArgs>
    import_templates?: boolean | Status$import_templatesArgs<ExtArgs>
    import_template_line_items?: boolean | Status$import_template_line_itemsArgs<ExtArgs>
    import_template_queries?: boolean | Status$import_template_queriesArgs<ExtArgs>
    export_templates?: boolean | Status$export_templatesArgs<ExtArgs>
    export_template_line_items?: boolean | Status$export_template_line_itemsArgs<ExtArgs>
    export_template_queries?: boolean | Status$export_template_queriesArgs<ExtArgs>
    designations?: boolean | Status$designationsArgs<ExtArgs>
    departments?: boolean | Status$departmentsArgs<ExtArgs>
    audit_logs?: boolean | Status$audit_logsArgs<ExtArgs>
    financial_years?: boolean | Status$financial_yearsArgs<ExtArgs>
    document_sequences?: boolean | Status$document_sequencesArgs<ExtArgs>
    file_upload_logs?: boolean | Status$file_upload_logsArgs<ExtArgs>
    device_registration?: boolean | Status$device_registrationArgs<ExtArgs>
    import_job?: boolean | Status$import_jobArgs<ExtArgs>
    import_job_line_items?: boolean | Status$import_job_line_itemsArgs<ExtArgs>
    _count?: boolean | StatusCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["status"]>


  export type StatusSelectScalar = {
    id?: boolean
    name?: boolean
    slug?: boolean
    description?: boolean
    status_id?: boolean
  }

  export type StatusInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | Status$statusArgs<ExtArgs>
    status_list?: boolean | Status$status_listArgs<ExtArgs>
    users?: boolean | Status$usersArgs<ExtArgs>
    request_logs?: boolean | Status$request_logsArgs<ExtArgs>
    permissions?: boolean | Status$permissionsArgs<ExtArgs>
    roles?: boolean | Status$rolesArgs<ExtArgs>
    languages?: boolean | Status$languagesArgs<ExtArgs>
    language_contents?: boolean | Status$language_contentsArgs<ExtArgs>
    menuitems?: boolean | Status$menuitemsArgs<ExtArgs>
    menus?: boolean | Status$menusArgs<ExtArgs>
    master_grids?: boolean | Status$master_gridsArgs<ExtArgs>
    master_grid_line_items?: boolean | Status$master_grid_line_itemsArgs<ExtArgs>
    field_types?: boolean | Status$field_typesArgs<ExtArgs>
    menu_types?: boolean | Status$menu_typesArgs<ExtArgs>
    email_template_processes?: boolean | Status$email_template_processesArgs<ExtArgs>
    email_template_tags?: boolean | Status$email_template_tagsArgs<ExtArgs>
    email_template_receiver_tags?: boolean | Status$email_template_receiver_tagsArgs<ExtArgs>
    email_templates?: boolean | Status$email_templatesArgs<ExtArgs>
    email_process_jobs?: boolean | Status$email_process_jobsArgs<ExtArgs>
    notification_job?: boolean | Status$notification_jobArgs<ExtArgs>
    import_templates?: boolean | Status$import_templatesArgs<ExtArgs>
    import_template_line_items?: boolean | Status$import_template_line_itemsArgs<ExtArgs>
    import_template_queries?: boolean | Status$import_template_queriesArgs<ExtArgs>
    export_templates?: boolean | Status$export_templatesArgs<ExtArgs>
    export_template_line_items?: boolean | Status$export_template_line_itemsArgs<ExtArgs>
    export_template_queries?: boolean | Status$export_template_queriesArgs<ExtArgs>
    designations?: boolean | Status$designationsArgs<ExtArgs>
    departments?: boolean | Status$departmentsArgs<ExtArgs>
    audit_logs?: boolean | Status$audit_logsArgs<ExtArgs>
    financial_years?: boolean | Status$financial_yearsArgs<ExtArgs>
    document_sequences?: boolean | Status$document_sequencesArgs<ExtArgs>
    file_upload_logs?: boolean | Status$file_upload_logsArgs<ExtArgs>
    device_registration?: boolean | Status$device_registrationArgs<ExtArgs>
    import_job?: boolean | Status$import_jobArgs<ExtArgs>
    import_job_line_items?: boolean | Status$import_job_line_itemsArgs<ExtArgs>
    _count?: boolean | StatusCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $StatusPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Status"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs> | null
      status_list: Prisma.$StatusPayload<ExtArgs>[]
      users: Prisma.$UserPayload<ExtArgs>[]
      request_logs: Prisma.$RequestLogPayload<ExtArgs>[]
      permissions: Prisma.$PermissionsPayload<ExtArgs>[]
      roles: Prisma.$RolePayload<ExtArgs>[]
      languages: Prisma.$LanguagePayload<ExtArgs>[]
      language_contents: Prisma.$LanguageContentPayload<ExtArgs>[]
      menuitems: Prisma.$MenuItemsPayload<ExtArgs>[]
      menus: Prisma.$MenusPayload<ExtArgs>[]
      master_grids: Prisma.$MasterEntityPayload<ExtArgs>[]
      master_grid_line_items: Prisma.$MasterEntityLineItemPayload<ExtArgs>[]
      field_types: Prisma.$FieldTypePayload<ExtArgs>[]
      menu_types: Prisma.$menuTypePayload<ExtArgs>[]
      email_template_processes: Prisma.$EmailTemplateProcessPayload<ExtArgs>[]
      email_template_tags: Prisma.$EmailTemplateTagPayload<ExtArgs>[]
      email_template_receiver_tags: Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>[]
      email_templates: Prisma.$EmailTemplatePayload<ExtArgs>[]
      email_process_jobs: Prisma.$EmailProcessJobPayload<ExtArgs>[]
      notification_job: Prisma.$NotificationJobPayload<ExtArgs>[]
      import_templates: Prisma.$ImportTemplatePayload<ExtArgs>[]
      import_template_line_items: Prisma.$ImportTemplateLineItemPayload<ExtArgs>[]
      import_template_queries: Prisma.$ImportTemplateQueriesPayload<ExtArgs>[]
      export_templates: Prisma.$ExportTemplatePayload<ExtArgs>[]
      export_template_line_items: Prisma.$ExportTemplateLineItemPayload<ExtArgs>[]
      export_template_queries: Prisma.$ExportTemplateQueriesPayload<ExtArgs>[]
      designations: Prisma.$DesignationPayload<ExtArgs>[]
      departments: Prisma.$DepartmentPayload<ExtArgs>[]
      audit_logs: Prisma.$AuditLogPayload<ExtArgs>[]
      financial_years: Prisma.$FinancialYearPayload<ExtArgs>[]
      document_sequences: Prisma.$DocumentSequencePayload<ExtArgs>[]
      file_upload_logs: Prisma.$FileUploadLogPayload<ExtArgs>[]
      device_registration: Prisma.$DeviceRegistrationPayload<ExtArgs>[]
      import_job: Prisma.$ImportJobPayload<ExtArgs>[]
      import_job_line_items: Prisma.$ImportJobLineItemPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      name: string
      slug: string
      description: string | null
      status_id: number | null
    }, ExtArgs["result"]["status"]>
    composites: {}
  }

  type StatusGetPayload<S extends boolean | null | undefined | StatusDefaultArgs> = $Result.GetResult<Prisma.$StatusPayload, S>

  type StatusCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<StatusFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: StatusCountAggregateInputType | true
    }

  export interface StatusDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Status'], meta: { name: 'Status' } }
    /**
     * Find zero or one Status that matches the filter.
     * @param {StatusFindUniqueArgs} args - Arguments to find a Status
     * @example
     * // Get one Status
     * const status = await prisma.status.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends StatusFindUniqueArgs>(args: SelectSubset<T, StatusFindUniqueArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Status that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {StatusFindUniqueOrThrowArgs} args - Arguments to find a Status
     * @example
     * // Get one Status
     * const status = await prisma.status.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends StatusFindUniqueOrThrowArgs>(args: SelectSubset<T, StatusFindUniqueOrThrowArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Status 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 {StatusFindFirstArgs} args - Arguments to find a Status
     * @example
     * // Get one Status
     * const status = await prisma.status.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends StatusFindFirstArgs>(args?: SelectSubset<T, StatusFindFirstArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Status 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 {StatusFindFirstOrThrowArgs} args - Arguments to find a Status
     * @example
     * // Get one Status
     * const status = await prisma.status.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends StatusFindFirstOrThrowArgs>(args?: SelectSubset<T, StatusFindFirstOrThrowArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Statuses 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 {StatusFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Statuses
     * const statuses = await prisma.status.findMany()
     * 
     * // Get first 10 Statuses
     * const statuses = await prisma.status.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const statusWithIdOnly = await prisma.status.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends StatusFindManyArgs>(args?: SelectSubset<T, StatusFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Status.
     * @param {StatusCreateArgs} args - Arguments to create a Status.
     * @example
     * // Create one Status
     * const Status = await prisma.status.create({
     *   data: {
     *     // ... data to create a Status
     *   }
     * })
     * 
     */
    create<T extends StatusCreateArgs>(args: SelectSubset<T, StatusCreateArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Statuses.
     * @param {StatusCreateManyArgs} args - Arguments to create many Statuses.
     * @example
     * // Create many Statuses
     * const status = await prisma.status.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends StatusCreateManyArgs>(args?: SelectSubset<T, StatusCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Status.
     * @param {StatusDeleteArgs} args - Arguments to delete one Status.
     * @example
     * // Delete one Status
     * const Status = await prisma.status.delete({
     *   where: {
     *     // ... filter to delete one Status
     *   }
     * })
     * 
     */
    delete<T extends StatusDeleteArgs>(args: SelectSubset<T, StatusDeleteArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Status.
     * @param {StatusUpdateArgs} args - Arguments to update one Status.
     * @example
     * // Update one Status
     * const status = await prisma.status.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends StatusUpdateArgs>(args: SelectSubset<T, StatusUpdateArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Statuses.
     * @param {StatusDeleteManyArgs} args - Arguments to filter Statuses to delete.
     * @example
     * // Delete a few Statuses
     * const { count } = await prisma.status.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends StatusDeleteManyArgs>(args?: SelectSubset<T, StatusDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Statuses.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {StatusUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Statuses
     * const status = await prisma.status.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends StatusUpdateManyArgs>(args: SelectSubset<T, StatusUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Status.
     * @param {StatusUpsertArgs} args - Arguments to update or create a Status.
     * @example
     * // Update or create a Status
     * const status = await prisma.status.upsert({
     *   create: {
     *     // ... data to create a Status
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Status we want to update
     *   }
     * })
     */
    upsert<T extends StatusUpsertArgs>(args: SelectSubset<T, StatusUpsertArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Statuses.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {StatusCountArgs} args - Arguments to filter Statuses to count.
     * @example
     * // Count the number of Statuses
     * const count = await prisma.status.count({
     *   where: {
     *     // ... the filter for the Statuses we want to count
     *   }
     * })
    **/
    count<T extends StatusCountArgs>(
      args?: Subset<T, StatusCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], StatusCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Status.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {StatusAggregateArgs} 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<T extends StatusAggregateArgs>(args: Subset<T, StatusAggregateArgs>): Prisma.PrismaPromise<GetStatusAggregateType<T>>

    /**
     * Group by Status.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {StatusGroupByArgs} 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 StatusGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: StatusGroupByArgs['orderBy'] }
        : { orderBy?: StatusGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, StatusGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStatusGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Status model
   */
  readonly fields: StatusFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Status.
   * 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__StatusClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends Status$statusArgs<ExtArgs> = {}>(args?: Subset<T, Status$statusArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    status_list<T extends Status$status_listArgs<ExtArgs> = {}>(args?: Subset<T, Status$status_listArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findMany"> | Null>
    users<T extends Status$usersArgs<ExtArgs> = {}>(args?: Subset<T, Status$usersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany"> | Null>
    request_logs<T extends Status$request_logsArgs<ExtArgs> = {}>(args?: Subset<T, Status$request_logsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RequestLogPayload<ExtArgs>, T, "findMany"> | Null>
    permissions<T extends Status$permissionsArgs<ExtArgs> = {}>(args?: Subset<T, Status$permissionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PermissionsPayload<ExtArgs>, T, "findMany"> | Null>
    roles<T extends Status$rolesArgs<ExtArgs> = {}>(args?: Subset<T, Status$rolesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$RolePayload<ExtArgs>, T, "findMany"> | Null>
    languages<T extends Status$languagesArgs<ExtArgs> = {}>(args?: Subset<T, Status$languagesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LanguagePayload<ExtArgs>, T, "findMany"> | Null>
    language_contents<T extends Status$language_contentsArgs<ExtArgs> = {}>(args?: Subset<T, Status$language_contentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LanguageContentPayload<ExtArgs>, T, "findMany"> | Null>
    menuitems<T extends Status$menuitemsArgs<ExtArgs> = {}>(args?: Subset<T, Status$menuitemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenuItemsPayload<ExtArgs>, T, "findMany"> | Null>
    menus<T extends Status$menusArgs<ExtArgs> = {}>(args?: Subset<T, Status$menusArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MenusPayload<ExtArgs>, T, "findMany"> | Null>
    master_grids<T extends Status$master_gridsArgs<ExtArgs> = {}>(args?: Subset<T, Status$master_gridsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MasterEntityPayload<ExtArgs>, T, "findMany"> | Null>
    master_grid_line_items<T extends Status$master_grid_line_itemsArgs<ExtArgs> = {}>(args?: Subset<T, Status$master_grid_line_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$MasterEntityLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    field_types<T extends Status$field_typesArgs<ExtArgs> = {}>(args?: Subset<T, Status$field_typesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$FieldTypePayload<ExtArgs>, T, "findMany"> | Null>
    menu_types<T extends Status$menu_typesArgs<ExtArgs> = {}>(args?: Subset<T, Status$menu_typesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$menuTypePayload<ExtArgs>, T, "findMany"> | Null>
    email_template_processes<T extends Status$email_template_processesArgs<ExtArgs> = {}>(args?: Subset<T, Status$email_template_processesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateProcessPayload<ExtArgs>, T, "findMany"> | Null>
    email_template_tags<T extends Status$email_template_tagsArgs<ExtArgs> = {}>(args?: Subset<T, Status$email_template_tagsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateTagPayload<ExtArgs>, T, "findMany"> | Null>
    email_template_receiver_tags<T extends Status$email_template_receiver_tagsArgs<ExtArgs> = {}>(args?: Subset<T, Status$email_template_receiver_tagsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplateRecipientTagPayload<ExtArgs>, T, "findMany"> | Null>
    email_templates<T extends Status$email_templatesArgs<ExtArgs> = {}>(args?: Subset<T, Status$email_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    email_process_jobs<T extends Status$email_process_jobsArgs<ExtArgs> = {}>(args?: Subset<T, Status$email_process_jobsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EmailProcessJobPayload<ExtArgs>, T, "findMany"> | Null>
    notification_job<T extends Status$notification_jobArgs<ExtArgs> = {}>(args?: Subset<T, Status$notification_jobArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$NotificationJobPayload<ExtArgs>, T, "findMany"> | Null>
    import_templates<T extends Status$import_templatesArgs<ExtArgs> = {}>(args?: Subset<T, Status$import_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    import_template_line_items<T extends Status$import_template_line_itemsArgs<ExtArgs> = {}>(args?: Subset<T, Status$import_template_line_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplateLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    import_template_queries<T extends Status$import_template_queriesArgs<ExtArgs> = {}>(args?: Subset<T, Status$import_template_queriesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportTemplateQueriesPayload<ExtArgs>, T, "findMany"> | Null>
    export_templates<T extends Status$export_templatesArgs<ExtArgs> = {}>(args?: Subset<T, Status$export_templatesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplatePayload<ExtArgs>, T, "findMany"> | Null>
    export_template_line_items<T extends Status$export_template_line_itemsArgs<ExtArgs> = {}>(args?: Subset<T, Status$export_template_line_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplateLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    export_template_queries<T extends Status$export_template_queriesArgs<ExtArgs> = {}>(args?: Subset<T, Status$export_template_queriesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ExportTemplateQueriesPayload<ExtArgs>, T, "findMany"> | Null>
    designations<T extends Status$designationsArgs<ExtArgs> = {}>(args?: Subset<T, Status$designationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DesignationPayload<ExtArgs>, T, "findMany"> | Null>
    departments<T extends Status$departmentsArgs<ExtArgs> = {}>(args?: Subset<T, Status$departmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DepartmentPayload<ExtArgs>, T, "findMany"> | Null>
    audit_logs<T extends Status$audit_logsArgs<ExtArgs> = {}>(args?: Subset<T, Status$audit_logsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany"> | Null>
    financial_years<T extends Status$financial_yearsArgs<ExtArgs> = {}>(args?: Subset<T, Status$financial_yearsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$FinancialYearPayload<ExtArgs>, T, "findMany"> | Null>
    document_sequences<T extends Status$document_sequencesArgs<ExtArgs> = {}>(args?: Subset<T, Status$document_sequencesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DocumentSequencePayload<ExtArgs>, T, "findMany"> | Null>
    file_upload_logs<T extends Status$file_upload_logsArgs<ExtArgs> = {}>(args?: Subset<T, Status$file_upload_logsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "findMany"> | Null>
    device_registration<T extends Status$device_registrationArgs<ExtArgs> = {}>(args?: Subset<T, Status$device_registrationArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findMany"> | Null>
    import_job<T extends Status$import_jobArgs<ExtArgs> = {}>(args?: Subset<T, Status$import_jobArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportJobPayload<ExtArgs>, T, "findMany"> | Null>
    import_job_line_items<T extends Status$import_job_line_itemsArgs<ExtArgs> = {}>(args?: Subset<T, Status$import_job_line_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ImportJobLineItemPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Status model
   */ 
  interface StatusFieldRefs {
    readonly id: FieldRef<"Status", 'Int'>
    readonly name: FieldRef<"Status", 'String'>
    readonly slug: FieldRef<"Status", 'String'>
    readonly description: FieldRef<"Status", 'String'>
    readonly status_id: FieldRef<"Status", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * Status findUnique
   */
  export type StatusFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    /**
     * Filter, which Status to fetch.
     */
    where: StatusWhereUniqueInput
  }

  /**
   * Status findUniqueOrThrow
   */
  export type StatusFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    /**
     * Filter, which Status to fetch.
     */
    where: StatusWhereUniqueInput
  }

  /**
   * Status findFirst
   */
  export type StatusFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    /**
     * Filter, which Status to fetch.
     */
    where?: StatusWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Statuses to fetch.
     */
    orderBy?: StatusOrderByWithRelationInput | StatusOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Statuses.
     */
    cursor?: StatusWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Statuses from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Statuses.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Statuses.
     */
    distinct?: StatusScalarFieldEnum | StatusScalarFieldEnum[]
  }

  /**
   * Status findFirstOrThrow
   */
  export type StatusFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    /**
     * Filter, which Status to fetch.
     */
    where?: StatusWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Statuses to fetch.
     */
    orderBy?: StatusOrderByWithRelationInput | StatusOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Statuses.
     */
    cursor?: StatusWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Statuses from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Statuses.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Statuses.
     */
    distinct?: StatusScalarFieldEnum | StatusScalarFieldEnum[]
  }

  /**
   * Status findMany
   */
  export type StatusFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    /**
     * Filter, which Statuses to fetch.
     */
    where?: StatusWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Statuses to fetch.
     */
    orderBy?: StatusOrderByWithRelationInput | StatusOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Statuses.
     */
    cursor?: StatusWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Statuses from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Statuses.
     */
    skip?: number
    distinct?: StatusScalarFieldEnum | StatusScalarFieldEnum[]
  }

  /**
   * Status create
   */
  export type StatusCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    /**
     * The data needed to create a Status.
     */
    data: XOR<StatusCreateInput, StatusUncheckedCreateInput>
  }

  /**
   * Status createMany
   */
  export type StatusCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Statuses.
     */
    data: StatusCreateManyInput | StatusCreateManyInput[]
  }

  /**
   * Status update
   */
  export type StatusUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    /**
     * The data needed to update a Status.
     */
    data: XOR<StatusUpdateInput, StatusUncheckedUpdateInput>
    /**
     * Choose, which Status to update.
     */
    where: StatusWhereUniqueInput
  }

  /**
   * Status updateMany
   */
  export type StatusUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Statuses.
     */
    data: XOR<StatusUpdateManyMutationInput, StatusUncheckedUpdateManyInput>
    /**
     * Filter which Statuses to update
     */
    where?: StatusWhereInput
  }

  /**
   * Status upsert
   */
  export type StatusUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    /**
     * The filter to search for the Status to update in case it exists.
     */
    where: StatusWhereUniqueInput
    /**
     * In case the Status found by the `where` argument doesn't exist, create a new Status with this data.
     */
    create: XOR<StatusCreateInput, StatusUncheckedCreateInput>
    /**
     * In case the Status was found with the provided `where` argument, update it with this data.
     */
    update: XOR<StatusUpdateInput, StatusUncheckedUpdateInput>
  }

  /**
   * Status delete
   */
  export type StatusDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    /**
     * Filter which Status to delete.
     */
    where: StatusWhereUniqueInput
  }

  /**
   * Status deleteMany
   */
  export type StatusDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Statuses to delete
     */
    where?: StatusWhereInput
  }

  /**
   * Status.status
   */
  export type Status$statusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    where?: StatusWhereInput
  }

  /**
   * Status.status_list
   */
  export type Status$status_listArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
    where?: StatusWhereInput
    orderBy?: StatusOrderByWithRelationInput | StatusOrderByWithRelationInput[]
    cursor?: StatusWhereUniqueInput
    take?: number
    skip?: number
    distinct?: StatusScalarFieldEnum | StatusScalarFieldEnum[]
  }

  /**
   * Status.users
   */
  export type Status$usersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
    orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
    cursor?: UserWhereUniqueInput
    take?: number
    skip?: number
    distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  }

  /**
   * Status.request_logs
   */
  export type Status$request_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the RequestLog
     */
    select?: RequestLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RequestLogInclude<ExtArgs> | null
    where?: RequestLogWhereInput
    orderBy?: RequestLogOrderByWithRelationInput | RequestLogOrderByWithRelationInput[]
    cursor?: RequestLogWhereUniqueInput
    take?: number
    skip?: number
    distinct?: RequestLogScalarFieldEnum | RequestLogScalarFieldEnum[]
  }

  /**
   * Status.permissions
   */
  export type Status$permissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Permissions
     */
    select?: PermissionsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: PermissionsInclude<ExtArgs> | null
    where?: PermissionsWhereInput
    orderBy?: PermissionsOrderByWithRelationInput | PermissionsOrderByWithRelationInput[]
    cursor?: PermissionsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: PermissionsScalarFieldEnum | PermissionsScalarFieldEnum[]
  }

  /**
   * Status.roles
   */
  export type Status$rolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Role
     */
    select?: RoleSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: RoleInclude<ExtArgs> | null
    where?: RoleWhereInput
    orderBy?: RoleOrderByWithRelationInput | RoleOrderByWithRelationInput[]
    cursor?: RoleWhereUniqueInput
    take?: number
    skip?: number
    distinct?: RoleScalarFieldEnum | RoleScalarFieldEnum[]
  }

  /**
   * Status.languages
   */
  export type Status$languagesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Language
     */
    select?: LanguageSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageInclude<ExtArgs> | null
    where?: LanguageWhereInput
    orderBy?: LanguageOrderByWithRelationInput | LanguageOrderByWithRelationInput[]
    cursor?: LanguageWhereUniqueInput
    take?: number
    skip?: number
    distinct?: LanguageScalarFieldEnum | LanguageScalarFieldEnum[]
  }

  /**
   * Status.language_contents
   */
  export type Status$language_contentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the LanguageContent
     */
    select?: LanguageContentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: LanguageContentInclude<ExtArgs> | null
    where?: LanguageContentWhereInput
    orderBy?: LanguageContentOrderByWithRelationInput | LanguageContentOrderByWithRelationInput[]
    cursor?: LanguageContentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: LanguageContentScalarFieldEnum | LanguageContentScalarFieldEnum[]
  }

  /**
   * Status.menuitems
   */
  export type Status$menuitemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MenuItems
     */
    select?: MenuItemsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenuItemsInclude<ExtArgs> | null
    where?: MenuItemsWhereInput
    orderBy?: MenuItemsOrderByWithRelationInput | MenuItemsOrderByWithRelationInput[]
    cursor?: MenuItemsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenuItemsScalarFieldEnum | MenuItemsScalarFieldEnum[]
  }

  /**
   * Status.menus
   */
  export type Status$menusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Menus
     */
    select?: MenusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MenusInclude<ExtArgs> | null
    where?: MenusWhereInput
    orderBy?: MenusOrderByWithRelationInput | MenusOrderByWithRelationInput[]
    cursor?: MenusWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenusScalarFieldEnum | MenusScalarFieldEnum[]
  }

  /**
   * Status.master_grids
   */
  export type Status$master_gridsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntity
     */
    select?: MasterEntitySelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityInclude<ExtArgs> | null
    where?: MasterEntityWhereInput
    orderBy?: MasterEntityOrderByWithRelationInput | MasterEntityOrderByWithRelationInput[]
    cursor?: MasterEntityWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MasterEntityScalarFieldEnum | MasterEntityScalarFieldEnum[]
  }

  /**
   * Status.master_grid_line_items
   */
  export type Status$master_grid_line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the MasterEntityLineItem
     */
    select?: MasterEntityLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: MasterEntityLineItemInclude<ExtArgs> | null
    where?: MasterEntityLineItemWhereInput
    orderBy?: MasterEntityLineItemOrderByWithRelationInput | MasterEntityLineItemOrderByWithRelationInput[]
    cursor?: MasterEntityLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MasterEntityLineItemScalarFieldEnum | MasterEntityLineItemScalarFieldEnum[]
  }

  /**
   * Status.field_types
   */
  export type Status$field_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FieldType
     */
    select?: FieldTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FieldTypeInclude<ExtArgs> | null
    where?: FieldTypeWhereInput
    orderBy?: FieldTypeOrderByWithRelationInput | FieldTypeOrderByWithRelationInput[]
    cursor?: FieldTypeWhereUniqueInput
    take?: number
    skip?: number
    distinct?: FieldTypeScalarFieldEnum | FieldTypeScalarFieldEnum[]
  }

  /**
   * Status.menu_types
   */
  export type Status$menu_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the menuType
     */
    select?: menuTypeSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: menuTypeInclude<ExtArgs> | null
    where?: menuTypeWhereInput
    orderBy?: menuTypeOrderByWithRelationInput | menuTypeOrderByWithRelationInput[]
    cursor?: menuTypeWhereUniqueInput
    take?: number
    skip?: number
    distinct?: MenuTypeScalarFieldEnum | MenuTypeScalarFieldEnum[]
  }

  /**
   * Status.email_template_processes
   */
  export type Status$email_template_processesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateProcess
     */
    select?: EmailTemplateProcessSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateProcessInclude<ExtArgs> | null
    where?: EmailTemplateProcessWhereInput
    orderBy?: EmailTemplateProcessOrderByWithRelationInput | EmailTemplateProcessOrderByWithRelationInput[]
    cursor?: EmailTemplateProcessWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateProcessScalarFieldEnum | EmailTemplateProcessScalarFieldEnum[]
  }

  /**
   * Status.email_template_tags
   */
  export type Status$email_template_tagsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateTag
     */
    select?: EmailTemplateTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateTagInclude<ExtArgs> | null
    where?: EmailTemplateTagWhereInput
    orderBy?: EmailTemplateTagOrderByWithRelationInput | EmailTemplateTagOrderByWithRelationInput[]
    cursor?: EmailTemplateTagWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateTagScalarFieldEnum | EmailTemplateTagScalarFieldEnum[]
  }

  /**
   * Status.email_template_receiver_tags
   */
  export type Status$email_template_receiver_tagsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplateRecipientTag
     */
    select?: EmailTemplateRecipientTagSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateRecipientTagInclude<ExtArgs> | null
    where?: EmailTemplateRecipientTagWhereInput
    orderBy?: EmailTemplateRecipientTagOrderByWithRelationInput | EmailTemplateRecipientTagOrderByWithRelationInput[]
    cursor?: EmailTemplateRecipientTagWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateRecipientTagScalarFieldEnum | EmailTemplateRecipientTagScalarFieldEnum[]
  }

  /**
   * Status.email_templates
   */
  export type Status$email_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailTemplate
     */
    select?: EmailTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailTemplateInclude<ExtArgs> | null
    where?: EmailTemplateWhereInput
    orderBy?: EmailTemplateOrderByWithRelationInput | EmailTemplateOrderByWithRelationInput[]
    cursor?: EmailTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailTemplateScalarFieldEnum | EmailTemplateScalarFieldEnum[]
  }

  /**
   * Status.email_process_jobs
   */
  export type Status$email_process_jobsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the EmailProcessJob
     */
    select?: EmailProcessJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: EmailProcessJobInclude<ExtArgs> | null
    where?: EmailProcessJobWhereInput
    orderBy?: EmailProcessJobOrderByWithRelationInput | EmailProcessJobOrderByWithRelationInput[]
    cursor?: EmailProcessJobWhereUniqueInput
    take?: number
    skip?: number
    distinct?: EmailProcessJobScalarFieldEnum | EmailProcessJobScalarFieldEnum[]
  }

  /**
   * Status.notification_job
   */
  export type Status$notification_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the NotificationJob
     */
    select?: NotificationJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: NotificationJobInclude<ExtArgs> | null
    where?: NotificationJobWhereInput
    orderBy?: NotificationJobOrderByWithRelationInput | NotificationJobOrderByWithRelationInput[]
    cursor?: NotificationJobWhereUniqueInput
    take?: number
    skip?: number
    distinct?: NotificationJobScalarFieldEnum | NotificationJobScalarFieldEnum[]
  }

  /**
   * Status.import_templates
   */
  export type Status$import_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplate
     */
    select?: ImportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateInclude<ExtArgs> | null
    where?: ImportTemplateWhereInput
    orderBy?: ImportTemplateOrderByWithRelationInput | ImportTemplateOrderByWithRelationInput[]
    cursor?: ImportTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportTemplateScalarFieldEnum | ImportTemplateScalarFieldEnum[]
  }

  /**
   * Status.import_template_line_items
   */
  export type Status$import_template_line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateLineItem
     */
    select?: ImportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateLineItemInclude<ExtArgs> | null
    where?: ImportTemplateLineItemWhereInput
    orderBy?: ImportTemplateLineItemOrderByWithRelationInput | ImportTemplateLineItemOrderByWithRelationInput[]
    cursor?: ImportTemplateLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportTemplateLineItemScalarFieldEnum | ImportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * Status.import_template_queries
   */
  export type Status$import_template_queriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportTemplateQueries
     */
    select?: ImportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportTemplateQueriesInclude<ExtArgs> | null
    where?: ImportTemplateQueriesWhereInput
    orderBy?: ImportTemplateQueriesOrderByWithRelationInput | ImportTemplateQueriesOrderByWithRelationInput[]
    cursor?: ImportTemplateQueriesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportTemplateQueriesScalarFieldEnum | ImportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * Status.export_templates
   */
  export type Status$export_templatesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplate
     */
    select?: ExportTemplateSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateInclude<ExtArgs> | null
    where?: ExportTemplateWhereInput
    orderBy?: ExportTemplateOrderByWithRelationInput | ExportTemplateOrderByWithRelationInput[]
    cursor?: ExportTemplateWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ExportTemplateScalarFieldEnum | ExportTemplateScalarFieldEnum[]
  }

  /**
   * Status.export_template_line_items
   */
  export type Status$export_template_line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateLineItem
     */
    select?: ExportTemplateLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateLineItemInclude<ExtArgs> | null
    where?: ExportTemplateLineItemWhereInput
    orderBy?: ExportTemplateLineItemOrderByWithRelationInput | ExportTemplateLineItemOrderByWithRelationInput[]
    cursor?: ExportTemplateLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ExportTemplateLineItemScalarFieldEnum | ExportTemplateLineItemScalarFieldEnum[]
  }

  /**
   * Status.export_template_queries
   */
  export type Status$export_template_queriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ExportTemplateQueries
     */
    select?: ExportTemplateQueriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ExportTemplateQueriesInclude<ExtArgs> | null
    where?: ExportTemplateQueriesWhereInput
    orderBy?: ExportTemplateQueriesOrderByWithRelationInput | ExportTemplateQueriesOrderByWithRelationInput[]
    cursor?: ExportTemplateQueriesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ExportTemplateQueriesScalarFieldEnum | ExportTemplateQueriesScalarFieldEnum[]
  }

  /**
   * Status.designations
   */
  export type Status$designationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Designation
     */
    select?: DesignationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DesignationInclude<ExtArgs> | null
    where?: DesignationWhereInput
    orderBy?: DesignationOrderByWithRelationInput | DesignationOrderByWithRelationInput[]
    cursor?: DesignationWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DesignationScalarFieldEnum | DesignationScalarFieldEnum[]
  }

  /**
   * Status.departments
   */
  export type Status$departmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Department
     */
    select?: DepartmentSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DepartmentInclude<ExtArgs> | null
    where?: DepartmentWhereInput
    orderBy?: DepartmentOrderByWithRelationInput | DepartmentOrderByWithRelationInput[]
    cursor?: DepartmentWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DepartmentScalarFieldEnum | DepartmentScalarFieldEnum[]
  }

  /**
   * Status.audit_logs
   */
  export type Status$audit_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the AuditLog
     */
    select?: AuditLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: AuditLogInclude<ExtArgs> | null
    where?: AuditLogWhereInput
    orderBy?: AuditLogOrderByWithRelationInput | AuditLogOrderByWithRelationInput[]
    cursor?: AuditLogWhereUniqueInput
    take?: number
    skip?: number
    distinct?: AuditLogScalarFieldEnum | AuditLogScalarFieldEnum[]
  }

  /**
   * Status.financial_years
   */
  export type Status$financial_yearsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FinancialYear
     */
    select?: FinancialYearSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FinancialYearInclude<ExtArgs> | null
    where?: FinancialYearWhereInput
    orderBy?: FinancialYearOrderByWithRelationInput | FinancialYearOrderByWithRelationInput[]
    cursor?: FinancialYearWhereUniqueInput
    take?: number
    skip?: number
    distinct?: FinancialYearScalarFieldEnum | FinancialYearScalarFieldEnum[]
  }

  /**
   * Status.document_sequences
   */
  export type Status$document_sequencesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DocumentSequence
     */
    select?: DocumentSequenceSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DocumentSequenceInclude<ExtArgs> | null
    where?: DocumentSequenceWhereInput
    orderBy?: DocumentSequenceOrderByWithRelationInput | DocumentSequenceOrderByWithRelationInput[]
    cursor?: DocumentSequenceWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DocumentSequenceScalarFieldEnum | DocumentSequenceScalarFieldEnum[]
  }

  /**
   * Status.file_upload_logs
   */
  export type Status$file_upload_logsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    where?: FileUploadLogWhereInput
    orderBy?: FileUploadLogOrderByWithRelationInput | FileUploadLogOrderByWithRelationInput[]
    cursor?: FileUploadLogWhereUniqueInput
    take?: number
    skip?: number
    distinct?: FileUploadLogScalarFieldEnum | FileUploadLogScalarFieldEnum[]
  }

  /**
   * Status.device_registration
   */
  export type Status$device_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    where?: DeviceRegistrationWhereInput
    orderBy?: DeviceRegistrationOrderByWithRelationInput | DeviceRegistrationOrderByWithRelationInput[]
    cursor?: DeviceRegistrationWhereUniqueInput
    take?: number
    skip?: number
    distinct?: DeviceRegistrationScalarFieldEnum | DeviceRegistrationScalarFieldEnum[]
  }

  /**
   * Status.import_job
   */
  export type Status$import_jobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJob
     */
    select?: ImportJobSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobInclude<ExtArgs> | null
    where?: ImportJobWhereInput
    orderBy?: ImportJobOrderByWithRelationInput | ImportJobOrderByWithRelationInput[]
    cursor?: ImportJobWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportJobScalarFieldEnum | ImportJobScalarFieldEnum[]
  }

  /**
   * Status.import_job_line_items
   */
  export type Status$import_job_line_itemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ImportJobLineItem
     */
    select?: ImportJobLineItemSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ImportJobLineItemInclude<ExtArgs> | null
    where?: ImportJobLineItemWhereInput
    orderBy?: ImportJobLineItemOrderByWithRelationInput | ImportJobLineItemOrderByWithRelationInput[]
    cursor?: ImportJobLineItemWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ImportJobLineItemScalarFieldEnum | ImportJobLineItemScalarFieldEnum[]
  }

  /**
   * Status without action
   */
  export type StatusDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Status
     */
    select?: StatusSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: StatusInclude<ExtArgs> | null
  }


  /**
   * Model CategoryTypes
   */

  export type AggregateCategoryTypes = {
    _count: CategoryTypesCountAggregateOutputType | null
    _avg: CategoryTypesAvgAggregateOutputType | null
    _sum: CategoryTypesSumAggregateOutputType | null
    _min: CategoryTypesMinAggregateOutputType | null
    _max: CategoryTypesMaxAggregateOutputType | null
  }

  export type CategoryTypesAvgAggregateOutputType = {
    id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type CategoryTypesSumAggregateOutputType = {
    id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type CategoryTypesMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    category_type_id: string | null
    name: string | null
    description: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type CategoryTypesMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    category_type_id: string | null
    name: string | null
    description: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type CategoryTypesCountAggregateOutputType = {
    id: number
    uuid: number
    category_type_id: number
    name: number
    description: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type CategoryTypesAvgAggregateInputType = {
    id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type CategoryTypesSumAggregateInputType = {
    id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type CategoryTypesMinAggregateInputType = {
    id?: true
    uuid?: true
    category_type_id?: true
    name?: true
    description?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type CategoryTypesMaxAggregateInputType = {
    id?: true
    uuid?: true
    category_type_id?: true
    name?: true
    description?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type CategoryTypesCountAggregateInputType = {
    id?: true
    uuid?: true
    category_type_id?: true
    name?: true
    description?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type CategoryTypesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which CategoryTypes to aggregate.
     */
    where?: CategoryTypesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of CategoryTypes to fetch.
     */
    orderBy?: CategoryTypesOrderByWithRelationInput | CategoryTypesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: CategoryTypesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` CategoryTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` CategoryTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned CategoryTypes
    **/
    _count?: true | CategoryTypesCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: CategoryTypesAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: CategoryTypesSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: CategoryTypesMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: CategoryTypesMaxAggregateInputType
  }

  export type GetCategoryTypesAggregateType<T extends CategoryTypesAggregateArgs> = {
        [P in keyof T & keyof AggregateCategoryTypes]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateCategoryTypes[P]>
      : GetScalarType<T[P], AggregateCategoryTypes[P]>
  }




  export type CategoryTypesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoryTypesWhereInput
    orderBy?: CategoryTypesOrderByWithAggregationInput | CategoryTypesOrderByWithAggregationInput[]
    by: CategoryTypesScalarFieldEnum[] | CategoryTypesScalarFieldEnum
    having?: CategoryTypesScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: CategoryTypesCountAggregateInputType | true
    _avg?: CategoryTypesAvgAggregateInputType
    _sum?: CategoryTypesSumAggregateInputType
    _min?: CategoryTypesMinAggregateInputType
    _max?: CategoryTypesMaxAggregateInputType
  }

  export type CategoryTypesGroupByOutputType = {
    id: number
    uuid: string
    category_type_id: string
    name: string
    description: string | null
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: CategoryTypesCountAggregateOutputType | null
    _avg: CategoryTypesAvgAggregateOutputType | null
    _sum: CategoryTypesSumAggregateOutputType | null
    _min: CategoryTypesMinAggregateOutputType | null
    _max: CategoryTypesMaxAggregateOutputType | null
  }

  type GetCategoryTypesGroupByPayload<T extends CategoryTypesGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<CategoryTypesGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof CategoryTypesGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], CategoryTypesGroupByOutputType[P]>
            : GetScalarType<T[P], CategoryTypesGroupByOutputType[P]>
        }
      >
    >


  export type CategoryTypesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    category_type_id?: boolean
    name?: boolean
    description?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    created_category_types?: boolean | CategoryTypes$created_category_typesArgs<ExtArgs>
    updated_category_types?: boolean | CategoryTypes$updated_category_typesArgs<ExtArgs>
    deleted_category_types?: boolean | CategoryTypes$deleted_category_typesArgs<ExtArgs>
    categories?: boolean | CategoryTypes$categoriesArgs<ExtArgs>
    _count?: boolean | CategoryTypesCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["categoryTypes"]>


  export type CategoryTypesSelectScalar = {
    id?: boolean
    uuid?: boolean
    category_type_id?: boolean
    name?: boolean
    description?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type CategoryTypesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    created_category_types?: boolean | CategoryTypes$created_category_typesArgs<ExtArgs>
    updated_category_types?: boolean | CategoryTypes$updated_category_typesArgs<ExtArgs>
    deleted_category_types?: boolean | CategoryTypes$deleted_category_typesArgs<ExtArgs>
    categories?: boolean | CategoryTypes$categoriesArgs<ExtArgs>
    _count?: boolean | CategoryTypesCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $CategoryTypesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "CategoryTypes"
    objects: {
      created_category_types: Prisma.$UserPayload<ExtArgs> | null
      updated_category_types: Prisma.$UserPayload<ExtArgs> | null
      deleted_category_types: Prisma.$UserPayload<ExtArgs> | null
      categories: Prisma.$CategoriesPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      category_type_id: string
      name: string
      description: string | null
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["categoryTypes"]>
    composites: {}
  }

  type CategoryTypesGetPayload<S extends boolean | null | undefined | CategoryTypesDefaultArgs> = $Result.GetResult<Prisma.$CategoryTypesPayload, S>

  type CategoryTypesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<CategoryTypesFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: CategoryTypesCountAggregateInputType | true
    }

  export interface CategoryTypesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CategoryTypes'], meta: { name: 'CategoryTypes' } }
    /**
     * Find zero or one CategoryTypes that matches the filter.
     * @param {CategoryTypesFindUniqueArgs} args - Arguments to find a CategoryTypes
     * @example
     * // Get one CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends CategoryTypesFindUniqueArgs>(args: SelectSubset<T, CategoryTypesFindUniqueArgs<ExtArgs>>): Prisma__CategoryTypesClient<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one CategoryTypes that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {CategoryTypesFindUniqueOrThrowArgs} args - Arguments to find a CategoryTypes
     * @example
     * // Get one CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends CategoryTypesFindUniqueOrThrowArgs>(args: SelectSubset<T, CategoryTypesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CategoryTypesClient<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first CategoryTypes 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 {CategoryTypesFindFirstArgs} args - Arguments to find a CategoryTypes
     * @example
     * // Get one CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends CategoryTypesFindFirstArgs>(args?: SelectSubset<T, CategoryTypesFindFirstArgs<ExtArgs>>): Prisma__CategoryTypesClient<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first CategoryTypes 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 {CategoryTypesFindFirstOrThrowArgs} args - Arguments to find a CategoryTypes
     * @example
     * // Get one CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends CategoryTypesFindFirstOrThrowArgs>(args?: SelectSubset<T, CategoryTypesFindFirstOrThrowArgs<ExtArgs>>): Prisma__CategoryTypesClient<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more CategoryTypes 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 {CategoryTypesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.findMany()
     * 
     * // Get first 10 CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const categoryTypesWithIdOnly = await prisma.categoryTypes.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends CategoryTypesFindManyArgs>(args?: SelectSubset<T, CategoryTypesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a CategoryTypes.
     * @param {CategoryTypesCreateArgs} args - Arguments to create a CategoryTypes.
     * @example
     * // Create one CategoryTypes
     * const CategoryTypes = await prisma.categoryTypes.create({
     *   data: {
     *     // ... data to create a CategoryTypes
     *   }
     * })
     * 
     */
    create<T extends CategoryTypesCreateArgs>(args: SelectSubset<T, CategoryTypesCreateArgs<ExtArgs>>): Prisma__CategoryTypesClient<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many CategoryTypes.
     * @param {CategoryTypesCreateManyArgs} args - Arguments to create many CategoryTypes.
     * @example
     * // Create many CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends CategoryTypesCreateManyArgs>(args?: SelectSubset<T, CategoryTypesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a CategoryTypes.
     * @param {CategoryTypesDeleteArgs} args - Arguments to delete one CategoryTypes.
     * @example
     * // Delete one CategoryTypes
     * const CategoryTypes = await prisma.categoryTypes.delete({
     *   where: {
     *     // ... filter to delete one CategoryTypes
     *   }
     * })
     * 
     */
    delete<T extends CategoryTypesDeleteArgs>(args: SelectSubset<T, CategoryTypesDeleteArgs<ExtArgs>>): Prisma__CategoryTypesClient<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one CategoryTypes.
     * @param {CategoryTypesUpdateArgs} args - Arguments to update one CategoryTypes.
     * @example
     * // Update one CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends CategoryTypesUpdateArgs>(args: SelectSubset<T, CategoryTypesUpdateArgs<ExtArgs>>): Prisma__CategoryTypesClient<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more CategoryTypes.
     * @param {CategoryTypesDeleteManyArgs} args - Arguments to filter CategoryTypes to delete.
     * @example
     * // Delete a few CategoryTypes
     * const { count } = await prisma.categoryTypes.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends CategoryTypesDeleteManyArgs>(args?: SelectSubset<T, CategoryTypesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more CategoryTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {CategoryTypesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends CategoryTypesUpdateManyArgs>(args: SelectSubset<T, CategoryTypesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one CategoryTypes.
     * @param {CategoryTypesUpsertArgs} args - Arguments to update or create a CategoryTypes.
     * @example
     * // Update or create a CategoryTypes
     * const categoryTypes = await prisma.categoryTypes.upsert({
     *   create: {
     *     // ... data to create a CategoryTypes
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the CategoryTypes we want to update
     *   }
     * })
     */
    upsert<T extends CategoryTypesUpsertArgs>(args: SelectSubset<T, CategoryTypesUpsertArgs<ExtArgs>>): Prisma__CategoryTypesClient<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of CategoryTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {CategoryTypesCountArgs} args - Arguments to filter CategoryTypes to count.
     * @example
     * // Count the number of CategoryTypes
     * const count = await prisma.categoryTypes.count({
     *   where: {
     *     // ... the filter for the CategoryTypes we want to count
     *   }
     * })
    **/
    count<T extends CategoryTypesCountArgs>(
      args?: Subset<T, CategoryTypesCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], CategoryTypesCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a CategoryTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {CategoryTypesAggregateArgs} 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<T extends CategoryTypesAggregateArgs>(args: Subset<T, CategoryTypesAggregateArgs>): Prisma.PrismaPromise<GetCategoryTypesAggregateType<T>>

    /**
     * Group by CategoryTypes.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {CategoryTypesGroupByArgs} 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 CategoryTypesGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: CategoryTypesGroupByArgs['orderBy'] }
        : { orderBy?: CategoryTypesGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, CategoryTypesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCategoryTypesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the CategoryTypes model
   */
  readonly fields: CategoryTypesFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for CategoryTypes.
   * 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__CategoryTypesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    created_category_types<T extends CategoryTypes$created_category_typesArgs<ExtArgs> = {}>(args?: Subset<T, CategoryTypes$created_category_typesArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated_category_types<T extends CategoryTypes$updated_category_typesArgs<ExtArgs> = {}>(args?: Subset<T, CategoryTypes$updated_category_typesArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted_category_types<T extends CategoryTypes$deleted_category_typesArgs<ExtArgs> = {}>(args?: Subset<T, CategoryTypes$deleted_category_typesArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    categories<T extends CategoryTypes$categoriesArgs<ExtArgs> = {}>(args?: Subset<T, CategoryTypes$categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the CategoryTypes model
   */ 
  interface CategoryTypesFieldRefs {
    readonly id: FieldRef<"CategoryTypes", 'Int'>
    readonly uuid: FieldRef<"CategoryTypes", 'String'>
    readonly category_type_id: FieldRef<"CategoryTypes", 'String'>
    readonly name: FieldRef<"CategoryTypes", 'String'>
    readonly description: FieldRef<"CategoryTypes", 'String'>
    readonly company_id: FieldRef<"CategoryTypes", 'Int'>
    readonly created_by: FieldRef<"CategoryTypes", 'Int'>
    readonly updated_by: FieldRef<"CategoryTypes", 'Int'>
    readonly deleted_by: FieldRef<"CategoryTypes", 'Int'>
    readonly created_at: FieldRef<"CategoryTypes", 'DateTime'>
    readonly updated_at: FieldRef<"CategoryTypes", 'DateTime'>
    readonly deleted_at: FieldRef<"CategoryTypes", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * CategoryTypes findUnique
   */
  export type CategoryTypesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    /**
     * Filter, which CategoryTypes to fetch.
     */
    where: CategoryTypesWhereUniqueInput
  }

  /**
   * CategoryTypes findUniqueOrThrow
   */
  export type CategoryTypesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    /**
     * Filter, which CategoryTypes to fetch.
     */
    where: CategoryTypesWhereUniqueInput
  }

  /**
   * CategoryTypes findFirst
   */
  export type CategoryTypesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    /**
     * Filter, which CategoryTypes to fetch.
     */
    where?: CategoryTypesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of CategoryTypes to fetch.
     */
    orderBy?: CategoryTypesOrderByWithRelationInput | CategoryTypesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for CategoryTypes.
     */
    cursor?: CategoryTypesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` CategoryTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` CategoryTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of CategoryTypes.
     */
    distinct?: CategoryTypesScalarFieldEnum | CategoryTypesScalarFieldEnum[]
  }

  /**
   * CategoryTypes findFirstOrThrow
   */
  export type CategoryTypesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    /**
     * Filter, which CategoryTypes to fetch.
     */
    where?: CategoryTypesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of CategoryTypes to fetch.
     */
    orderBy?: CategoryTypesOrderByWithRelationInput | CategoryTypesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for CategoryTypes.
     */
    cursor?: CategoryTypesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` CategoryTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` CategoryTypes.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of CategoryTypes.
     */
    distinct?: CategoryTypesScalarFieldEnum | CategoryTypesScalarFieldEnum[]
  }

  /**
   * CategoryTypes findMany
   */
  export type CategoryTypesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    /**
     * Filter, which CategoryTypes to fetch.
     */
    where?: CategoryTypesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of CategoryTypes to fetch.
     */
    orderBy?: CategoryTypesOrderByWithRelationInput | CategoryTypesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing CategoryTypes.
     */
    cursor?: CategoryTypesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` CategoryTypes from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` CategoryTypes.
     */
    skip?: number
    distinct?: CategoryTypesScalarFieldEnum | CategoryTypesScalarFieldEnum[]
  }

  /**
   * CategoryTypes create
   */
  export type CategoryTypesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    /**
     * The data needed to create a CategoryTypes.
     */
    data: XOR<CategoryTypesCreateInput, CategoryTypesUncheckedCreateInput>
  }

  /**
   * CategoryTypes createMany
   */
  export type CategoryTypesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many CategoryTypes.
     */
    data: CategoryTypesCreateManyInput | CategoryTypesCreateManyInput[]
  }

  /**
   * CategoryTypes update
   */
  export type CategoryTypesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    /**
     * The data needed to update a CategoryTypes.
     */
    data: XOR<CategoryTypesUpdateInput, CategoryTypesUncheckedUpdateInput>
    /**
     * Choose, which CategoryTypes to update.
     */
    where: CategoryTypesWhereUniqueInput
  }

  /**
   * CategoryTypes updateMany
   */
  export type CategoryTypesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update CategoryTypes.
     */
    data: XOR<CategoryTypesUpdateManyMutationInput, CategoryTypesUncheckedUpdateManyInput>
    /**
     * Filter which CategoryTypes to update
     */
    where?: CategoryTypesWhereInput
  }

  /**
   * CategoryTypes upsert
   */
  export type CategoryTypesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    /**
     * The filter to search for the CategoryTypes to update in case it exists.
     */
    where: CategoryTypesWhereUniqueInput
    /**
     * In case the CategoryTypes found by the `where` argument doesn't exist, create a new CategoryTypes with this data.
     */
    create: XOR<CategoryTypesCreateInput, CategoryTypesUncheckedCreateInput>
    /**
     * In case the CategoryTypes was found with the provided `where` argument, update it with this data.
     */
    update: XOR<CategoryTypesUpdateInput, CategoryTypesUncheckedUpdateInput>
  }

  /**
   * CategoryTypes delete
   */
  export type CategoryTypesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
    /**
     * Filter which CategoryTypes to delete.
     */
    where: CategoryTypesWhereUniqueInput
  }

  /**
   * CategoryTypes deleteMany
   */
  export type CategoryTypesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which CategoryTypes to delete
     */
    where?: CategoryTypesWhereInput
  }

  /**
   * CategoryTypes.created_category_types
   */
  export type CategoryTypes$created_category_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * CategoryTypes.updated_category_types
   */
  export type CategoryTypes$updated_category_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * CategoryTypes.deleted_category_types
   */
  export type CategoryTypes$deleted_category_typesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * CategoryTypes.categories
   */
  export type CategoryTypes$categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    where?: CategoriesWhereInput
    orderBy?: CategoriesOrderByWithRelationInput | CategoriesOrderByWithRelationInput[]
    cursor?: CategoriesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: CategoriesScalarFieldEnum | CategoriesScalarFieldEnum[]
  }

  /**
   * CategoryTypes without action
   */
  export type CategoryTypesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the CategoryTypes
     */
    select?: CategoryTypesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoryTypesInclude<ExtArgs> | null
  }


  /**
   * Model Categories
   */

  export type AggregateCategories = {
    _count: CategoriesCountAggregateOutputType | null
    _avg: CategoriesAvgAggregateOutputType | null
    _sum: CategoriesSumAggregateOutputType | null
    _min: CategoriesMinAggregateOutputType | null
    _max: CategoriesMaxAggregateOutputType | null
  }

  export type CategoriesAvgAggregateOutputType = {
    id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type CategoriesSumAggregateOutputType = {
    id: number | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type CategoriesMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    category_type_id: string | null
    category_id: string | null
    parent_id: string | null
    name: string | null
    description: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type CategoriesMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    category_type_id: string | null
    category_id: string | null
    parent_id: string | null
    name: string | null
    description: string | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type CategoriesCountAggregateOutputType = {
    id: number
    uuid: number
    category_type_id: number
    category_id: number
    parent_id: number
    name: number
    description: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type CategoriesAvgAggregateInputType = {
    id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type CategoriesSumAggregateInputType = {
    id?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type CategoriesMinAggregateInputType = {
    id?: true
    uuid?: true
    category_type_id?: true
    category_id?: true
    parent_id?: true
    name?: true
    description?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type CategoriesMaxAggregateInputType = {
    id?: true
    uuid?: true
    category_type_id?: true
    category_id?: true
    parent_id?: true
    name?: true
    description?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type CategoriesCountAggregateInputType = {
    id?: true
    uuid?: true
    category_type_id?: true
    category_id?: true
    parent_id?: true
    name?: true
    description?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type CategoriesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Categories to aggregate.
     */
    where?: CategoriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Categories to fetch.
     */
    orderBy?: CategoriesOrderByWithRelationInput | CategoriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: CategoriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Categories from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Categories.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Categories
    **/
    _count?: true | CategoriesCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: CategoriesAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: CategoriesSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: CategoriesMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: CategoriesMaxAggregateInputType
  }

  export type GetCategoriesAggregateType<T extends CategoriesAggregateArgs> = {
        [P in keyof T & keyof AggregateCategories]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateCategories[P]>
      : GetScalarType<T[P], AggregateCategories[P]>
  }




  export type CategoriesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: CategoriesWhereInput
    orderBy?: CategoriesOrderByWithAggregationInput | CategoriesOrderByWithAggregationInput[]
    by: CategoriesScalarFieldEnum[] | CategoriesScalarFieldEnum
    having?: CategoriesScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: CategoriesCountAggregateInputType | true
    _avg?: CategoriesAvgAggregateInputType
    _sum?: CategoriesSumAggregateInputType
    _min?: CategoriesMinAggregateInputType
    _max?: CategoriesMaxAggregateInputType
  }

  export type CategoriesGroupByOutputType = {
    id: number
    uuid: string
    category_type_id: string
    category_id: string
    parent_id: string | null
    name: string
    description: string | null
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date
    deleted_at: Date | null
    _count: CategoriesCountAggregateOutputType | null
    _avg: CategoriesAvgAggregateOutputType | null
    _sum: CategoriesSumAggregateOutputType | null
    _min: CategoriesMinAggregateOutputType | null
    _max: CategoriesMaxAggregateOutputType | null
  }

  type GetCategoriesGroupByPayload<T extends CategoriesGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<CategoriesGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof CategoriesGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], CategoriesGroupByOutputType[P]>
            : GetScalarType<T[P], CategoriesGroupByOutputType[P]>
        }
      >
    >


  export type CategoriesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    category_type_id?: boolean
    category_id?: boolean
    parent_id?: boolean
    name?: boolean
    description?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    parent?: boolean | Categories$parentArgs<ExtArgs>
    subcategories?: boolean | Categories$subcategoriesArgs<ExtArgs>
    category_type?: boolean | CategoryTypesDefaultArgs<ExtArgs>
    created_categories?: boolean | Categories$created_categoriesArgs<ExtArgs>
    updated_categories?: boolean | Categories$updated_categoriesArgs<ExtArgs>
    deleted_categories?: boolean | Categories$deleted_categoriesArgs<ExtArgs>
    configurations?: boolean | Categories$configurationsArgs<ExtArgs>
    _count?: boolean | CategoriesCountOutputTypeDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["categories"]>


  export type CategoriesSelectScalar = {
    id?: boolean
    uuid?: boolean
    category_type_id?: boolean
    category_id?: boolean
    parent_id?: boolean
    name?: boolean
    description?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type CategoriesInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    parent?: boolean | Categories$parentArgs<ExtArgs>
    subcategories?: boolean | Categories$subcategoriesArgs<ExtArgs>
    category_type?: boolean | CategoryTypesDefaultArgs<ExtArgs>
    created_categories?: boolean | Categories$created_categoriesArgs<ExtArgs>
    updated_categories?: boolean | Categories$updated_categoriesArgs<ExtArgs>
    deleted_categories?: boolean | Categories$deleted_categoriesArgs<ExtArgs>
    configurations?: boolean | Categories$configurationsArgs<ExtArgs>
    _count?: boolean | CategoriesCountOutputTypeDefaultArgs<ExtArgs>
  }

  export type $CategoriesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Categories"
    objects: {
      parent: Prisma.$CategoriesPayload<ExtArgs> | null
      subcategories: Prisma.$CategoriesPayload<ExtArgs>[]
      category_type: Prisma.$CategoryTypesPayload<ExtArgs>
      created_categories: Prisma.$UserPayload<ExtArgs> | null
      updated_categories: Prisma.$UserPayload<ExtArgs> | null
      deleted_categories: Prisma.$UserPayload<ExtArgs> | null
      configurations: Prisma.$ConfigurationsPayload<ExtArgs>[]
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      category_type_id: string
      category_id: string
      parent_id: string | null
      name: string
      description: string | null
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date
      deleted_at: Date | null
    }, ExtArgs["result"]["categories"]>
    composites: {}
  }

  type CategoriesGetPayload<S extends boolean | null | undefined | CategoriesDefaultArgs> = $Result.GetResult<Prisma.$CategoriesPayload, S>

  type CategoriesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<CategoriesFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: CategoriesCountAggregateInputType | true
    }

  export interface CategoriesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Categories'], meta: { name: 'Categories' } }
    /**
     * Find zero or one Categories that matches the filter.
     * @param {CategoriesFindUniqueArgs} args - Arguments to find a Categories
     * @example
     * // Get one Categories
     * const categories = await prisma.categories.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends CategoriesFindUniqueArgs>(args: SelectSubset<T, CategoriesFindUniqueArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Categories that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {CategoriesFindUniqueOrThrowArgs} args - Arguments to find a Categories
     * @example
     * // Get one Categories
     * const categories = await prisma.categories.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends CategoriesFindUniqueOrThrowArgs>(args: SelectSubset<T, CategoriesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Categories 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 {CategoriesFindFirstArgs} args - Arguments to find a Categories
     * @example
     * // Get one Categories
     * const categories = await prisma.categories.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends CategoriesFindFirstArgs>(args?: SelectSubset<T, CategoriesFindFirstArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Categories 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 {CategoriesFindFirstOrThrowArgs} args - Arguments to find a Categories
     * @example
     * // Get one Categories
     * const categories = await prisma.categories.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends CategoriesFindFirstOrThrowArgs>(args?: SelectSubset<T, CategoriesFindFirstOrThrowArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Categories 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 {CategoriesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Categories
     * const categories = await prisma.categories.findMany()
     * 
     * // Get first 10 Categories
     * const categories = await prisma.categories.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const categoriesWithIdOnly = await prisma.categories.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends CategoriesFindManyArgs>(args?: SelectSubset<T, CategoriesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Categories.
     * @param {CategoriesCreateArgs} args - Arguments to create a Categories.
     * @example
     * // Create one Categories
     * const Categories = await prisma.categories.create({
     *   data: {
     *     // ... data to create a Categories
     *   }
     * })
     * 
     */
    create<T extends CategoriesCreateArgs>(args: SelectSubset<T, CategoriesCreateArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Categories.
     * @param {CategoriesCreateManyArgs} args - Arguments to create many Categories.
     * @example
     * // Create many Categories
     * const categories = await prisma.categories.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends CategoriesCreateManyArgs>(args?: SelectSubset<T, CategoriesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Categories.
     * @param {CategoriesDeleteArgs} args - Arguments to delete one Categories.
     * @example
     * // Delete one Categories
     * const Categories = await prisma.categories.delete({
     *   where: {
     *     // ... filter to delete one Categories
     *   }
     * })
     * 
     */
    delete<T extends CategoriesDeleteArgs>(args: SelectSubset<T, CategoriesDeleteArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Categories.
     * @param {CategoriesUpdateArgs} args - Arguments to update one Categories.
     * @example
     * // Update one Categories
     * const categories = await prisma.categories.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends CategoriesUpdateArgs>(args: SelectSubset<T, CategoriesUpdateArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Categories.
     * @param {CategoriesDeleteManyArgs} args - Arguments to filter Categories to delete.
     * @example
     * // Delete a few Categories
     * const { count } = await prisma.categories.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends CategoriesDeleteManyArgs>(args?: SelectSubset<T, CategoriesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {CategoriesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Categories
     * const categories = await prisma.categories.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends CategoriesUpdateManyArgs>(args: SelectSubset<T, CategoriesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Categories.
     * @param {CategoriesUpsertArgs} args - Arguments to update or create a Categories.
     * @example
     * // Update or create a Categories
     * const categories = await prisma.categories.upsert({
     *   create: {
     *     // ... data to create a Categories
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Categories we want to update
     *   }
     * })
     */
    upsert<T extends CategoriesUpsertArgs>(args: SelectSubset<T, CategoriesUpsertArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {CategoriesCountArgs} args - Arguments to filter Categories to count.
     * @example
     * // Count the number of Categories
     * const count = await prisma.categories.count({
     *   where: {
     *     // ... the filter for the Categories we want to count
     *   }
     * })
    **/
    count<T extends CategoriesCountArgs>(
      args?: Subset<T, CategoriesCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], CategoriesCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {CategoriesAggregateArgs} 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<T extends CategoriesAggregateArgs>(args: Subset<T, CategoriesAggregateArgs>): Prisma.PrismaPromise<GetCategoriesAggregateType<T>>

    /**
     * Group by Categories.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {CategoriesGroupByArgs} 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 CategoriesGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: CategoriesGroupByArgs['orderBy'] }
        : { orderBy?: CategoriesGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, CategoriesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCategoriesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Categories model
   */
  readonly fields: CategoriesFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Categories.
   * 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__CategoriesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    parent<T extends Categories$parentArgs<ExtArgs> = {}>(args?: Subset<T, Categories$parentArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    subcategories<T extends Categories$subcategoriesArgs<ExtArgs> = {}>(args?: Subset<T, Categories$subcategoriesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findMany"> | Null>
    category_type<T extends CategoryTypesDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CategoryTypesDefaultArgs<ExtArgs>>): Prisma__CategoryTypesClient<$Result.GetResult<Prisma.$CategoryTypesPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created_categories<T extends Categories$created_categoriesArgs<ExtArgs> = {}>(args?: Subset<T, Categories$created_categoriesArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated_categories<T extends Categories$updated_categoriesArgs<ExtArgs> = {}>(args?: Subset<T, Categories$updated_categoriesArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted_categories<T extends Categories$deleted_categoriesArgs<ExtArgs> = {}>(args?: Subset<T, Categories$deleted_categoriesArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    configurations<T extends Categories$configurationsArgs<ExtArgs> = {}>(args?: Subset<T, Categories$configurationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "findMany"> | Null>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Categories model
   */ 
  interface CategoriesFieldRefs {
    readonly id: FieldRef<"Categories", 'Int'>
    readonly uuid: FieldRef<"Categories", 'String'>
    readonly category_type_id: FieldRef<"Categories", 'String'>
    readonly category_id: FieldRef<"Categories", 'String'>
    readonly parent_id: FieldRef<"Categories", 'String'>
    readonly name: FieldRef<"Categories", 'String'>
    readonly description: FieldRef<"Categories", 'String'>
    readonly company_id: FieldRef<"Categories", 'Int'>
    readonly created_by: FieldRef<"Categories", 'Int'>
    readonly updated_by: FieldRef<"Categories", 'Int'>
    readonly deleted_by: FieldRef<"Categories", 'Int'>
    readonly created_at: FieldRef<"Categories", 'DateTime'>
    readonly updated_at: FieldRef<"Categories", 'DateTime'>
    readonly deleted_at: FieldRef<"Categories", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * Categories findUnique
   */
  export type CategoriesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    /**
     * Filter, which Categories to fetch.
     */
    where: CategoriesWhereUniqueInput
  }

  /**
   * Categories findUniqueOrThrow
   */
  export type CategoriesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    /**
     * Filter, which Categories to fetch.
     */
    where: CategoriesWhereUniqueInput
  }

  /**
   * Categories findFirst
   */
  export type CategoriesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    /**
     * Filter, which Categories to fetch.
     */
    where?: CategoriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Categories to fetch.
     */
    orderBy?: CategoriesOrderByWithRelationInput | CategoriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Categories.
     */
    cursor?: CategoriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Categories from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Categories.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Categories.
     */
    distinct?: CategoriesScalarFieldEnum | CategoriesScalarFieldEnum[]
  }

  /**
   * Categories findFirstOrThrow
   */
  export type CategoriesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    /**
     * Filter, which Categories to fetch.
     */
    where?: CategoriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Categories to fetch.
     */
    orderBy?: CategoriesOrderByWithRelationInput | CategoriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Categories.
     */
    cursor?: CategoriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Categories from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Categories.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Categories.
     */
    distinct?: CategoriesScalarFieldEnum | CategoriesScalarFieldEnum[]
  }

  /**
   * Categories findMany
   */
  export type CategoriesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    /**
     * Filter, which Categories to fetch.
     */
    where?: CategoriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Categories to fetch.
     */
    orderBy?: CategoriesOrderByWithRelationInput | CategoriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Categories.
     */
    cursor?: CategoriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Categories from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Categories.
     */
    skip?: number
    distinct?: CategoriesScalarFieldEnum | CategoriesScalarFieldEnum[]
  }

  /**
   * Categories create
   */
  export type CategoriesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    /**
     * The data needed to create a Categories.
     */
    data: XOR<CategoriesCreateInput, CategoriesUncheckedCreateInput>
  }

  /**
   * Categories createMany
   */
  export type CategoriesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Categories.
     */
    data: CategoriesCreateManyInput | CategoriesCreateManyInput[]
  }

  /**
   * Categories update
   */
  export type CategoriesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    /**
     * The data needed to update a Categories.
     */
    data: XOR<CategoriesUpdateInput, CategoriesUncheckedUpdateInput>
    /**
     * Choose, which Categories to update.
     */
    where: CategoriesWhereUniqueInput
  }

  /**
   * Categories updateMany
   */
  export type CategoriesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Categories.
     */
    data: XOR<CategoriesUpdateManyMutationInput, CategoriesUncheckedUpdateManyInput>
    /**
     * Filter which Categories to update
     */
    where?: CategoriesWhereInput
  }

  /**
   * Categories upsert
   */
  export type CategoriesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    /**
     * The filter to search for the Categories to update in case it exists.
     */
    where: CategoriesWhereUniqueInput
    /**
     * In case the Categories found by the `where` argument doesn't exist, create a new Categories with this data.
     */
    create: XOR<CategoriesCreateInput, CategoriesUncheckedCreateInput>
    /**
     * In case the Categories was found with the provided `where` argument, update it with this data.
     */
    update: XOR<CategoriesUpdateInput, CategoriesUncheckedUpdateInput>
  }

  /**
   * Categories delete
   */
  export type CategoriesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    /**
     * Filter which Categories to delete.
     */
    where: CategoriesWhereUniqueInput
  }

  /**
   * Categories deleteMany
   */
  export type CategoriesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Categories to delete
     */
    where?: CategoriesWhereInput
  }

  /**
   * Categories.parent
   */
  export type Categories$parentArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    where?: CategoriesWhereInput
  }

  /**
   * Categories.subcategories
   */
  export type Categories$subcategoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
    where?: CategoriesWhereInput
    orderBy?: CategoriesOrderByWithRelationInput | CategoriesOrderByWithRelationInput[]
    cursor?: CategoriesWhereUniqueInput
    take?: number
    skip?: number
    distinct?: CategoriesScalarFieldEnum | CategoriesScalarFieldEnum[]
  }

  /**
   * Categories.created_categories
   */
  export type Categories$created_categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Categories.updated_categories
   */
  export type Categories$updated_categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Categories.deleted_categories
   */
  export type Categories$deleted_categoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Categories.configurations
   */
  export type Categories$configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    where?: ConfigurationsWhereInput
    orderBy?: ConfigurationsOrderByWithRelationInput | ConfigurationsOrderByWithRelationInput[]
    cursor?: ConfigurationsWhereUniqueInput
    take?: number
    skip?: number
    distinct?: ConfigurationsScalarFieldEnum | ConfigurationsScalarFieldEnum[]
  }

  /**
   * Categories without action
   */
  export type CategoriesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Categories
     */
    select?: CategoriesSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: CategoriesInclude<ExtArgs> | null
  }


  /**
   * Model Configurations
   */

  export type AggregateConfigurations = {
    _count: ConfigurationsCountAggregateOutputType | null
    _avg: ConfigurationsAvgAggregateOutputType | null
    _sum: ConfigurationsSumAggregateOutputType | null
    _min: ConfigurationsMinAggregateOutputType | null
    _max: ConfigurationsMaxAggregateOutputType | null
  }

  export type ConfigurationsAvgAggregateOutputType = {
    id: number | null
    order_no: Decimal | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type ConfigurationsSumAggregateOutputType = {
    id: number | null
    order_no: Decimal | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type ConfigurationsMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    order_no: Decimal | null
    config_key: string | null
    category_id: string | null
    config_value: string | null
    config_file_value: string | null
    config_value_type: string | null
    config_field_type: string | null
    display_config: boolean | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type ConfigurationsMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    order_no: Decimal | null
    config_key: string | null
    category_id: string | null
    config_value: string | null
    config_file_value: string | null
    config_value_type: string | null
    config_field_type: string | null
    display_config: boolean | null
    company_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date | null
    updated_at: Date | null
    deleted_at: Date | null
  }

  export type ConfigurationsCountAggregateOutputType = {
    id: number
    uuid: number
    order_no: number
    config_key: number
    category_id: number
    config_value: number
    config_file_value: number
    config_value_type: number
    config_field_type: number
    display_config: number
    company_id: number
    created_by: number
    updated_by: number
    deleted_by: number
    created_at: number
    updated_at: number
    deleted_at: number
    _all: number
  }


  export type ConfigurationsAvgAggregateInputType = {
    id?: true
    order_no?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type ConfigurationsSumAggregateInputType = {
    id?: true
    order_no?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type ConfigurationsMinAggregateInputType = {
    id?: true
    uuid?: true
    order_no?: true
    config_key?: true
    category_id?: true
    config_value?: true
    config_file_value?: true
    config_value_type?: true
    config_field_type?: true
    display_config?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type ConfigurationsMaxAggregateInputType = {
    id?: true
    uuid?: true
    order_no?: true
    config_key?: true
    category_id?: true
    config_value?: true
    config_file_value?: true
    config_value_type?: true
    config_field_type?: true
    display_config?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
  }

  export type ConfigurationsCountAggregateInputType = {
    id?: true
    uuid?: true
    order_no?: true
    config_key?: true
    category_id?: true
    config_value?: true
    config_file_value?: true
    config_value_type?: true
    config_field_type?: true
    display_config?: true
    company_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
    created_at?: true
    updated_at?: true
    deleted_at?: true
    _all?: true
  }

  export type ConfigurationsAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Configurations to aggregate.
     */
    where?: ConfigurationsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Configurations to fetch.
     */
    orderBy?: ConfigurationsOrderByWithRelationInput | ConfigurationsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: ConfigurationsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Configurations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Configurations.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned Configurations
    **/
    _count?: true | ConfigurationsCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: ConfigurationsAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: ConfigurationsSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: ConfigurationsMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: ConfigurationsMaxAggregateInputType
  }

  export type GetConfigurationsAggregateType<T extends ConfigurationsAggregateArgs> = {
        [P in keyof T & keyof AggregateConfigurations]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateConfigurations[P]>
      : GetScalarType<T[P], AggregateConfigurations[P]>
  }




  export type ConfigurationsGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: ConfigurationsWhereInput
    orderBy?: ConfigurationsOrderByWithAggregationInput | ConfigurationsOrderByWithAggregationInput[]
    by: ConfigurationsScalarFieldEnum[] | ConfigurationsScalarFieldEnum
    having?: ConfigurationsScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: ConfigurationsCountAggregateInputType | true
    _avg?: ConfigurationsAvgAggregateInputType
    _sum?: ConfigurationsSumAggregateInputType
    _min?: ConfigurationsMinAggregateInputType
    _max?: ConfigurationsMaxAggregateInputType
  }

  export type ConfigurationsGroupByOutputType = {
    id: number
    uuid: string
    order_no: Decimal
    config_key: string
    category_id: string
    config_value: string | null
    config_file_value: string | null
    config_value_type: string
    config_field_type: string
    display_config: boolean
    company_id: number
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
    created_at: Date
    updated_at: Date | null
    deleted_at: Date | null
    _count: ConfigurationsCountAggregateOutputType | null
    _avg: ConfigurationsAvgAggregateOutputType | null
    _sum: ConfigurationsSumAggregateOutputType | null
    _min: ConfigurationsMinAggregateOutputType | null
    _max: ConfigurationsMaxAggregateOutputType | null
  }

  type GetConfigurationsGroupByPayload<T extends ConfigurationsGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<ConfigurationsGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof ConfigurationsGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], ConfigurationsGroupByOutputType[P]>
            : GetScalarType<T[P], ConfigurationsGroupByOutputType[P]>
        }
      >
    >


  export type ConfigurationsSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    order_no?: boolean
    config_key?: boolean
    category_id?: boolean
    config_value?: boolean
    config_file_value?: boolean
    config_value_type?: boolean
    config_field_type?: boolean
    display_config?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
    category?: boolean | CategoriesDefaultArgs<ExtArgs>
    created_configurations?: boolean | Configurations$created_configurationsArgs<ExtArgs>
    updated_configurations?: boolean | Configurations$updated_configurationsArgs<ExtArgs>
    deleted_configurations?: boolean | Configurations$deleted_configurationsArgs<ExtArgs>
  }, ExtArgs["result"]["configurations"]>


  export type ConfigurationsSelectScalar = {
    id?: boolean
    uuid?: boolean
    order_no?: boolean
    config_key?: boolean
    category_id?: boolean
    config_value?: boolean
    config_file_value?: boolean
    config_value_type?: boolean
    config_field_type?: boolean
    display_config?: boolean
    company_id?: boolean
    created_by?: boolean
    updated_by?: boolean
    deleted_by?: boolean
    created_at?: boolean
    updated_at?: boolean
    deleted_at?: boolean
  }

  export type ConfigurationsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    category?: boolean | CategoriesDefaultArgs<ExtArgs>
    created_configurations?: boolean | Configurations$created_configurationsArgs<ExtArgs>
    updated_configurations?: boolean | Configurations$updated_configurationsArgs<ExtArgs>
    deleted_configurations?: boolean | Configurations$deleted_configurationsArgs<ExtArgs>
  }

  export type $ConfigurationsPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "Configurations"
    objects: {
      category: Prisma.$CategoriesPayload<ExtArgs>
      created_configurations: Prisma.$UserPayload<ExtArgs> | null
      updated_configurations: Prisma.$UserPayload<ExtArgs> | null
      deleted_configurations: Prisma.$UserPayload<ExtArgs> | null
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      order_no: Prisma.Decimal
      config_key: string
      category_id: string
      config_value: string | null
      config_file_value: string | null
      config_value_type: string
      config_field_type: string
      display_config: boolean
      company_id: number
      created_by: number | null
      updated_by: number | null
      deleted_by: number | null
      created_at: Date
      updated_at: Date | null
      deleted_at: Date | null
    }, ExtArgs["result"]["configurations"]>
    composites: {}
  }

  type ConfigurationsGetPayload<S extends boolean | null | undefined | ConfigurationsDefaultArgs> = $Result.GetResult<Prisma.$ConfigurationsPayload, S>

  type ConfigurationsCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<ConfigurationsFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: ConfigurationsCountAggregateInputType | true
    }

  export interface ConfigurationsDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Configurations'], meta: { name: 'Configurations' } }
    /**
     * Find zero or one Configurations that matches the filter.
     * @param {ConfigurationsFindUniqueArgs} args - Arguments to find a Configurations
     * @example
     * // Get one Configurations
     * const configurations = await prisma.configurations.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ConfigurationsFindUniqueArgs>(args: SelectSubset<T, ConfigurationsFindUniqueArgs<ExtArgs>>): Prisma__ConfigurationsClient<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one Configurations that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {ConfigurationsFindUniqueOrThrowArgs} args - Arguments to find a Configurations
     * @example
     * // Get one Configurations
     * const configurations = await prisma.configurations.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ConfigurationsFindUniqueOrThrowArgs>(args: SelectSubset<T, ConfigurationsFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ConfigurationsClient<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first Configurations 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 {ConfigurationsFindFirstArgs} args - Arguments to find a Configurations
     * @example
     * // Get one Configurations
     * const configurations = await prisma.configurations.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ConfigurationsFindFirstArgs>(args?: SelectSubset<T, ConfigurationsFindFirstArgs<ExtArgs>>): Prisma__ConfigurationsClient<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first Configurations 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 {ConfigurationsFindFirstOrThrowArgs} args - Arguments to find a Configurations
     * @example
     * // Get one Configurations
     * const configurations = await prisma.configurations.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ConfigurationsFindFirstOrThrowArgs>(args?: SelectSubset<T, ConfigurationsFindFirstOrThrowArgs<ExtArgs>>): Prisma__ConfigurationsClient<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more Configurations 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 {ConfigurationsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Configurations
     * const configurations = await prisma.configurations.findMany()
     * 
     * // Get first 10 Configurations
     * const configurations = await prisma.configurations.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const configurationsWithIdOnly = await prisma.configurations.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends ConfigurationsFindManyArgs>(args?: SelectSubset<T, ConfigurationsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a Configurations.
     * @param {ConfigurationsCreateArgs} args - Arguments to create a Configurations.
     * @example
     * // Create one Configurations
     * const Configurations = await prisma.configurations.create({
     *   data: {
     *     // ... data to create a Configurations
     *   }
     * })
     * 
     */
    create<T extends ConfigurationsCreateArgs>(args: SelectSubset<T, ConfigurationsCreateArgs<ExtArgs>>): Prisma__ConfigurationsClient<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many Configurations.
     * @param {ConfigurationsCreateManyArgs} args - Arguments to create many Configurations.
     * @example
     * // Create many Configurations
     * const configurations = await prisma.configurations.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends ConfigurationsCreateManyArgs>(args?: SelectSubset<T, ConfigurationsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a Configurations.
     * @param {ConfigurationsDeleteArgs} args - Arguments to delete one Configurations.
     * @example
     * // Delete one Configurations
     * const Configurations = await prisma.configurations.delete({
     *   where: {
     *     // ... filter to delete one Configurations
     *   }
     * })
     * 
     */
    delete<T extends ConfigurationsDeleteArgs>(args: SelectSubset<T, ConfigurationsDeleteArgs<ExtArgs>>): Prisma__ConfigurationsClient<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one Configurations.
     * @param {ConfigurationsUpdateArgs} args - Arguments to update one Configurations.
     * @example
     * // Update one Configurations
     * const configurations = await prisma.configurations.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends ConfigurationsUpdateArgs>(args: SelectSubset<T, ConfigurationsUpdateArgs<ExtArgs>>): Prisma__ConfigurationsClient<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more Configurations.
     * @param {ConfigurationsDeleteManyArgs} args - Arguments to filter Configurations to delete.
     * @example
     * // Delete a few Configurations
     * const { count } = await prisma.configurations.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends ConfigurationsDeleteManyArgs>(args?: SelectSubset<T, ConfigurationsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more Configurations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ConfigurationsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Configurations
     * const configurations = await prisma.configurations.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends ConfigurationsUpdateManyArgs>(args: SelectSubset<T, ConfigurationsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one Configurations.
     * @param {ConfigurationsUpsertArgs} args - Arguments to update or create a Configurations.
     * @example
     * // Update or create a Configurations
     * const configurations = await prisma.configurations.upsert({
     *   create: {
     *     // ... data to create a Configurations
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Configurations we want to update
     *   }
     * })
     */
    upsert<T extends ConfigurationsUpsertArgs>(args: SelectSubset<T, ConfigurationsUpsertArgs<ExtArgs>>): Prisma__ConfigurationsClient<$Result.GetResult<Prisma.$ConfigurationsPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of Configurations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ConfigurationsCountArgs} args - Arguments to filter Configurations to count.
     * @example
     * // Count the number of Configurations
     * const count = await prisma.configurations.count({
     *   where: {
     *     // ... the filter for the Configurations we want to count
     *   }
     * })
    **/
    count<T extends ConfigurationsCountArgs>(
      args?: Subset<T, ConfigurationsCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], ConfigurationsCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a Configurations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ConfigurationsAggregateArgs} 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<T extends ConfigurationsAggregateArgs>(args: Subset<T, ConfigurationsAggregateArgs>): Prisma.PrismaPromise<GetConfigurationsAggregateType<T>>

    /**
     * Group by Configurations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ConfigurationsGroupByArgs} 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 ConfigurationsGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: ConfigurationsGroupByArgs['orderBy'] }
        : { orderBy?: ConfigurationsGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, ConfigurationsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetConfigurationsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the Configurations model
   */
  readonly fields: ConfigurationsFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for Configurations.
   * 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__ConfigurationsClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    category<T extends CategoriesDefaultArgs<ExtArgs> = {}>(args?: Subset<T, CategoriesDefaultArgs<ExtArgs>>): Prisma__CategoriesClient<$Result.GetResult<Prisma.$CategoriesPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created_configurations<T extends Configurations$created_configurationsArgs<ExtArgs> = {}>(args?: Subset<T, Configurations$created_configurationsArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    updated_configurations<T extends Configurations$updated_configurationsArgs<ExtArgs> = {}>(args?: Subset<T, Configurations$updated_configurationsArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted_configurations<T extends Configurations$deleted_configurationsArgs<ExtArgs> = {}>(args?: Subset<T, Configurations$deleted_configurationsArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the Configurations model
   */ 
  interface ConfigurationsFieldRefs {
    readonly id: FieldRef<"Configurations", 'Int'>
    readonly uuid: FieldRef<"Configurations", 'String'>
    readonly order_no: FieldRef<"Configurations", 'Decimal'>
    readonly config_key: FieldRef<"Configurations", 'String'>
    readonly category_id: FieldRef<"Configurations", 'String'>
    readonly config_value: FieldRef<"Configurations", 'String'>
    readonly config_file_value: FieldRef<"Configurations", 'String'>
    readonly config_value_type: FieldRef<"Configurations", 'String'>
    readonly config_field_type: FieldRef<"Configurations", 'String'>
    readonly display_config: FieldRef<"Configurations", 'Boolean'>
    readonly company_id: FieldRef<"Configurations", 'Int'>
    readonly created_by: FieldRef<"Configurations", 'Int'>
    readonly updated_by: FieldRef<"Configurations", 'Int'>
    readonly deleted_by: FieldRef<"Configurations", 'Int'>
    readonly created_at: FieldRef<"Configurations", 'DateTime'>
    readonly updated_at: FieldRef<"Configurations", 'DateTime'>
    readonly deleted_at: FieldRef<"Configurations", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * Configurations findUnique
   */
  export type ConfigurationsFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    /**
     * Filter, which Configurations to fetch.
     */
    where: ConfigurationsWhereUniqueInput
  }

  /**
   * Configurations findUniqueOrThrow
   */
  export type ConfigurationsFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    /**
     * Filter, which Configurations to fetch.
     */
    where: ConfigurationsWhereUniqueInput
  }

  /**
   * Configurations findFirst
   */
  export type ConfigurationsFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    /**
     * Filter, which Configurations to fetch.
     */
    where?: ConfigurationsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Configurations to fetch.
     */
    orderBy?: ConfigurationsOrderByWithRelationInput | ConfigurationsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Configurations.
     */
    cursor?: ConfigurationsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Configurations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Configurations.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Configurations.
     */
    distinct?: ConfigurationsScalarFieldEnum | ConfigurationsScalarFieldEnum[]
  }

  /**
   * Configurations findFirstOrThrow
   */
  export type ConfigurationsFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    /**
     * Filter, which Configurations to fetch.
     */
    where?: ConfigurationsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Configurations to fetch.
     */
    orderBy?: ConfigurationsOrderByWithRelationInput | ConfigurationsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for Configurations.
     */
    cursor?: ConfigurationsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Configurations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Configurations.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of Configurations.
     */
    distinct?: ConfigurationsScalarFieldEnum | ConfigurationsScalarFieldEnum[]
  }

  /**
   * Configurations findMany
   */
  export type ConfigurationsFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    /**
     * Filter, which Configurations to fetch.
     */
    where?: ConfigurationsWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of Configurations to fetch.
     */
    orderBy?: ConfigurationsOrderByWithRelationInput | ConfigurationsOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing Configurations.
     */
    cursor?: ConfigurationsWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` Configurations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` Configurations.
     */
    skip?: number
    distinct?: ConfigurationsScalarFieldEnum | ConfigurationsScalarFieldEnum[]
  }

  /**
   * Configurations create
   */
  export type ConfigurationsCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    /**
     * The data needed to create a Configurations.
     */
    data: XOR<ConfigurationsCreateInput, ConfigurationsUncheckedCreateInput>
  }

  /**
   * Configurations createMany
   */
  export type ConfigurationsCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many Configurations.
     */
    data: ConfigurationsCreateManyInput | ConfigurationsCreateManyInput[]
  }

  /**
   * Configurations update
   */
  export type ConfigurationsUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    /**
     * The data needed to update a Configurations.
     */
    data: XOR<ConfigurationsUpdateInput, ConfigurationsUncheckedUpdateInput>
    /**
     * Choose, which Configurations to update.
     */
    where: ConfigurationsWhereUniqueInput
  }

  /**
   * Configurations updateMany
   */
  export type ConfigurationsUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update Configurations.
     */
    data: XOR<ConfigurationsUpdateManyMutationInput, ConfigurationsUncheckedUpdateManyInput>
    /**
     * Filter which Configurations to update
     */
    where?: ConfigurationsWhereInput
  }

  /**
   * Configurations upsert
   */
  export type ConfigurationsUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    /**
     * The filter to search for the Configurations to update in case it exists.
     */
    where: ConfigurationsWhereUniqueInput
    /**
     * In case the Configurations found by the `where` argument doesn't exist, create a new Configurations with this data.
     */
    create: XOR<ConfigurationsCreateInput, ConfigurationsUncheckedCreateInput>
    /**
     * In case the Configurations was found with the provided `where` argument, update it with this data.
     */
    update: XOR<ConfigurationsUpdateInput, ConfigurationsUncheckedUpdateInput>
  }

  /**
   * Configurations delete
   */
  export type ConfigurationsDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
    /**
     * Filter which Configurations to delete.
     */
    where: ConfigurationsWhereUniqueInput
  }

  /**
   * Configurations deleteMany
   */
  export type ConfigurationsDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which Configurations to delete
     */
    where?: ConfigurationsWhereInput
  }

  /**
   * Configurations.created_configurations
   */
  export type Configurations$created_configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Configurations.updated_configurations
   */
  export type Configurations$updated_configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Configurations.deleted_configurations
   */
  export type Configurations$deleted_configurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * Configurations without action
   */
  export type ConfigurationsDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the Configurations
     */
    select?: ConfigurationsSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: ConfigurationsInclude<ExtArgs> | null
  }


  /**
   * Model FileUploadLog
   */

  export type AggregateFileUploadLog = {
    _count: FileUploadLogCountAggregateOutputType | null
    _avg: FileUploadLogAvgAggregateOutputType | null
    _sum: FileUploadLogSumAggregateOutputType | null
    _min: FileUploadLogMinAggregateOutputType | null
    _max: FileUploadLogMaxAggregateOutputType | null
  }

  export type FileUploadLogAvgAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type FileUploadLogSumAggregateOutputType = {
    id: number | null
    status_id: number | null
    company_id: number | null
  }

  export type FileUploadLogMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    doc_name: string | null
    org_name: string | null
    extension: string | null
    description: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type FileUploadLogMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    doc_name: string | null
    org_name: string | null
    extension: string | null
    description: string | null
    status_id: number | null
    company_id: number | null
    created_at: Date | null
  }

  export type FileUploadLogCountAggregateOutputType = {
    id: number
    uuid: number
    doc_name: number
    org_name: number
    extension: number
    description: number
    status_id: number
    company_id: number
    created_at: number
    _all: number
  }


  export type FileUploadLogAvgAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type FileUploadLogSumAggregateInputType = {
    id?: true
    status_id?: true
    company_id?: true
  }

  export type FileUploadLogMinAggregateInputType = {
    id?: true
    uuid?: true
    doc_name?: true
    org_name?: true
    extension?: true
    description?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type FileUploadLogMaxAggregateInputType = {
    id?: true
    uuid?: true
    doc_name?: true
    org_name?: true
    extension?: true
    description?: true
    status_id?: true
    company_id?: true
    created_at?: true
  }

  export type FileUploadLogCountAggregateInputType = {
    id?: true
    uuid?: true
    doc_name?: true
    org_name?: true
    extension?: true
    description?: true
    status_id?: true
    company_id?: true
    created_at?: true
    _all?: true
  }

  export type FileUploadLogAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which FileUploadLog to aggregate.
     */
    where?: FileUploadLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FileUploadLogs to fetch.
     */
    orderBy?: FileUploadLogOrderByWithRelationInput | FileUploadLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: FileUploadLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FileUploadLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FileUploadLogs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned FileUploadLogs
    **/
    _count?: true | FileUploadLogCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: FileUploadLogAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: FileUploadLogSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: FileUploadLogMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: FileUploadLogMaxAggregateInputType
  }

  export type GetFileUploadLogAggregateType<T extends FileUploadLogAggregateArgs> = {
        [P in keyof T & keyof AggregateFileUploadLog]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateFileUploadLog[P]>
      : GetScalarType<T[P], AggregateFileUploadLog[P]>
  }




  export type FileUploadLogGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: FileUploadLogWhereInput
    orderBy?: FileUploadLogOrderByWithAggregationInput | FileUploadLogOrderByWithAggregationInput[]
    by: FileUploadLogScalarFieldEnum[] | FileUploadLogScalarFieldEnum
    having?: FileUploadLogScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: FileUploadLogCountAggregateInputType | true
    _avg?: FileUploadLogAvgAggregateInputType
    _sum?: FileUploadLogSumAggregateInputType
    _min?: FileUploadLogMinAggregateInputType
    _max?: FileUploadLogMaxAggregateInputType
  }

  export type FileUploadLogGroupByOutputType = {
    id: number
    uuid: string
    doc_name: string | null
    org_name: string | null
    extension: string | null
    description: string | null
    status_id: number
    company_id: number
    created_at: Date
    _count: FileUploadLogCountAggregateOutputType | null
    _avg: FileUploadLogAvgAggregateOutputType | null
    _sum: FileUploadLogSumAggregateOutputType | null
    _min: FileUploadLogMinAggregateOutputType | null
    _max: FileUploadLogMaxAggregateOutputType | null
  }

  type GetFileUploadLogGroupByPayload<T extends FileUploadLogGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<FileUploadLogGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof FileUploadLogGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], FileUploadLogGroupByOutputType[P]>
            : GetScalarType<T[P], FileUploadLogGroupByOutputType[P]>
        }
      >
    >


  export type FileUploadLogSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    doc_name?: boolean
    org_name?: boolean
    extension?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["fileUploadLog"]>


  export type FileUploadLogSelectScalar = {
    id?: boolean
    uuid?: boolean
    doc_name?: boolean
    org_name?: boolean
    extension?: boolean
    description?: boolean
    status_id?: boolean
    company_id?: boolean
    created_at?: boolean
  }

  export type FileUploadLogInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
  }

  export type $FileUploadLogPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "FileUploadLog"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      doc_name: string | null
      org_name: string | null
      extension: string | null
      description: string | null
      status_id: number
      company_id: number
      created_at: Date
    }, ExtArgs["result"]["fileUploadLog"]>
    composites: {}
  }

  type FileUploadLogGetPayload<S extends boolean | null | undefined | FileUploadLogDefaultArgs> = $Result.GetResult<Prisma.$FileUploadLogPayload, S>

  type FileUploadLogCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<FileUploadLogFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: FileUploadLogCountAggregateInputType | true
    }

  export interface FileUploadLogDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FileUploadLog'], meta: { name: 'FileUploadLog' } }
    /**
     * Find zero or one FileUploadLog that matches the filter.
     * @param {FileUploadLogFindUniqueArgs} args - Arguments to find a FileUploadLog
     * @example
     * // Get one FileUploadLog
     * const fileUploadLog = await prisma.fileUploadLog.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends FileUploadLogFindUniqueArgs>(args: SelectSubset<T, FileUploadLogFindUniqueArgs<ExtArgs>>): Prisma__FileUploadLogClient<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one FileUploadLog that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {FileUploadLogFindUniqueOrThrowArgs} args - Arguments to find a FileUploadLog
     * @example
     * // Get one FileUploadLog
     * const fileUploadLog = await prisma.fileUploadLog.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends FileUploadLogFindUniqueOrThrowArgs>(args: SelectSubset<T, FileUploadLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma__FileUploadLogClient<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first FileUploadLog 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 {FileUploadLogFindFirstArgs} args - Arguments to find a FileUploadLog
     * @example
     * // Get one FileUploadLog
     * const fileUploadLog = await prisma.fileUploadLog.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends FileUploadLogFindFirstArgs>(args?: SelectSubset<T, FileUploadLogFindFirstArgs<ExtArgs>>): Prisma__FileUploadLogClient<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first FileUploadLog 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 {FileUploadLogFindFirstOrThrowArgs} args - Arguments to find a FileUploadLog
     * @example
     * // Get one FileUploadLog
     * const fileUploadLog = await prisma.fileUploadLog.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends FileUploadLogFindFirstOrThrowArgs>(args?: SelectSubset<T, FileUploadLogFindFirstOrThrowArgs<ExtArgs>>): Prisma__FileUploadLogClient<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more FileUploadLogs 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 {FileUploadLogFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all FileUploadLogs
     * const fileUploadLogs = await prisma.fileUploadLog.findMany()
     * 
     * // Get first 10 FileUploadLogs
     * const fileUploadLogs = await prisma.fileUploadLog.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const fileUploadLogWithIdOnly = await prisma.fileUploadLog.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends FileUploadLogFindManyArgs>(args?: SelectSubset<T, FileUploadLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a FileUploadLog.
     * @param {FileUploadLogCreateArgs} args - Arguments to create a FileUploadLog.
     * @example
     * // Create one FileUploadLog
     * const FileUploadLog = await prisma.fileUploadLog.create({
     *   data: {
     *     // ... data to create a FileUploadLog
     *   }
     * })
     * 
     */
    create<T extends FileUploadLogCreateArgs>(args: SelectSubset<T, FileUploadLogCreateArgs<ExtArgs>>): Prisma__FileUploadLogClient<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many FileUploadLogs.
     * @param {FileUploadLogCreateManyArgs} args - Arguments to create many FileUploadLogs.
     * @example
     * // Create many FileUploadLogs
     * const fileUploadLog = await prisma.fileUploadLog.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends FileUploadLogCreateManyArgs>(args?: SelectSubset<T, FileUploadLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a FileUploadLog.
     * @param {FileUploadLogDeleteArgs} args - Arguments to delete one FileUploadLog.
     * @example
     * // Delete one FileUploadLog
     * const FileUploadLog = await prisma.fileUploadLog.delete({
     *   where: {
     *     // ... filter to delete one FileUploadLog
     *   }
     * })
     * 
     */
    delete<T extends FileUploadLogDeleteArgs>(args: SelectSubset<T, FileUploadLogDeleteArgs<ExtArgs>>): Prisma__FileUploadLogClient<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one FileUploadLog.
     * @param {FileUploadLogUpdateArgs} args - Arguments to update one FileUploadLog.
     * @example
     * // Update one FileUploadLog
     * const fileUploadLog = await prisma.fileUploadLog.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends FileUploadLogUpdateArgs>(args: SelectSubset<T, FileUploadLogUpdateArgs<ExtArgs>>): Prisma__FileUploadLogClient<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more FileUploadLogs.
     * @param {FileUploadLogDeleteManyArgs} args - Arguments to filter FileUploadLogs to delete.
     * @example
     * // Delete a few FileUploadLogs
     * const { count } = await prisma.fileUploadLog.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends FileUploadLogDeleteManyArgs>(args?: SelectSubset<T, FileUploadLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more FileUploadLogs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FileUploadLogUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many FileUploadLogs
     * const fileUploadLog = await prisma.fileUploadLog.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends FileUploadLogUpdateManyArgs>(args: SelectSubset<T, FileUploadLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one FileUploadLog.
     * @param {FileUploadLogUpsertArgs} args - Arguments to update or create a FileUploadLog.
     * @example
     * // Update or create a FileUploadLog
     * const fileUploadLog = await prisma.fileUploadLog.upsert({
     *   create: {
     *     // ... data to create a FileUploadLog
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the FileUploadLog we want to update
     *   }
     * })
     */
    upsert<T extends FileUploadLogUpsertArgs>(args: SelectSubset<T, FileUploadLogUpsertArgs<ExtArgs>>): Prisma__FileUploadLogClient<$Result.GetResult<Prisma.$FileUploadLogPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of FileUploadLogs.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FileUploadLogCountArgs} args - Arguments to filter FileUploadLogs to count.
     * @example
     * // Count the number of FileUploadLogs
     * const count = await prisma.fileUploadLog.count({
     *   where: {
     *     // ... the filter for the FileUploadLogs we want to count
     *   }
     * })
    **/
    count<T extends FileUploadLogCountArgs>(
      args?: Subset<T, FileUploadLogCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], FileUploadLogCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a FileUploadLog.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FileUploadLogAggregateArgs} 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<T extends FileUploadLogAggregateArgs>(args: Subset<T, FileUploadLogAggregateArgs>): Prisma.PrismaPromise<GetFileUploadLogAggregateType<T>>

    /**
     * Group by FileUploadLog.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {FileUploadLogGroupByArgs} 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 FileUploadLogGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: FileUploadLogGroupByArgs['orderBy'] }
        : { orderBy?: FileUploadLogGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, FileUploadLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFileUploadLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the FileUploadLog model
   */
  readonly fields: FileUploadLogFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for FileUploadLog.
   * 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__FileUploadLogClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the FileUploadLog model
   */ 
  interface FileUploadLogFieldRefs {
    readonly id: FieldRef<"FileUploadLog", 'Int'>
    readonly uuid: FieldRef<"FileUploadLog", 'String'>
    readonly doc_name: FieldRef<"FileUploadLog", 'String'>
    readonly org_name: FieldRef<"FileUploadLog", 'String'>
    readonly extension: FieldRef<"FileUploadLog", 'String'>
    readonly description: FieldRef<"FileUploadLog", 'String'>
    readonly status_id: FieldRef<"FileUploadLog", 'Int'>
    readonly company_id: FieldRef<"FileUploadLog", 'Int'>
    readonly created_at: FieldRef<"FileUploadLog", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * FileUploadLog findUnique
   */
  export type FileUploadLogFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    /**
     * Filter, which FileUploadLog to fetch.
     */
    where: FileUploadLogWhereUniqueInput
  }

  /**
   * FileUploadLog findUniqueOrThrow
   */
  export type FileUploadLogFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    /**
     * Filter, which FileUploadLog to fetch.
     */
    where: FileUploadLogWhereUniqueInput
  }

  /**
   * FileUploadLog findFirst
   */
  export type FileUploadLogFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    /**
     * Filter, which FileUploadLog to fetch.
     */
    where?: FileUploadLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FileUploadLogs to fetch.
     */
    orderBy?: FileUploadLogOrderByWithRelationInput | FileUploadLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for FileUploadLogs.
     */
    cursor?: FileUploadLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FileUploadLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FileUploadLogs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of FileUploadLogs.
     */
    distinct?: FileUploadLogScalarFieldEnum | FileUploadLogScalarFieldEnum[]
  }

  /**
   * FileUploadLog findFirstOrThrow
   */
  export type FileUploadLogFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    /**
     * Filter, which FileUploadLog to fetch.
     */
    where?: FileUploadLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FileUploadLogs to fetch.
     */
    orderBy?: FileUploadLogOrderByWithRelationInput | FileUploadLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for FileUploadLogs.
     */
    cursor?: FileUploadLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FileUploadLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FileUploadLogs.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of FileUploadLogs.
     */
    distinct?: FileUploadLogScalarFieldEnum | FileUploadLogScalarFieldEnum[]
  }

  /**
   * FileUploadLog findMany
   */
  export type FileUploadLogFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    /**
     * Filter, which FileUploadLogs to fetch.
     */
    where?: FileUploadLogWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of FileUploadLogs to fetch.
     */
    orderBy?: FileUploadLogOrderByWithRelationInput | FileUploadLogOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing FileUploadLogs.
     */
    cursor?: FileUploadLogWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` FileUploadLogs from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` FileUploadLogs.
     */
    skip?: number
    distinct?: FileUploadLogScalarFieldEnum | FileUploadLogScalarFieldEnum[]
  }

  /**
   * FileUploadLog create
   */
  export type FileUploadLogCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    /**
     * The data needed to create a FileUploadLog.
     */
    data: XOR<FileUploadLogCreateInput, FileUploadLogUncheckedCreateInput>
  }

  /**
   * FileUploadLog createMany
   */
  export type FileUploadLogCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many FileUploadLogs.
     */
    data: FileUploadLogCreateManyInput | FileUploadLogCreateManyInput[]
  }

  /**
   * FileUploadLog update
   */
  export type FileUploadLogUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    /**
     * The data needed to update a FileUploadLog.
     */
    data: XOR<FileUploadLogUpdateInput, FileUploadLogUncheckedUpdateInput>
    /**
     * Choose, which FileUploadLog to update.
     */
    where: FileUploadLogWhereUniqueInput
  }

  /**
   * FileUploadLog updateMany
   */
  export type FileUploadLogUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update FileUploadLogs.
     */
    data: XOR<FileUploadLogUpdateManyMutationInput, FileUploadLogUncheckedUpdateManyInput>
    /**
     * Filter which FileUploadLogs to update
     */
    where?: FileUploadLogWhereInput
  }

  /**
   * FileUploadLog upsert
   */
  export type FileUploadLogUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    /**
     * The filter to search for the FileUploadLog to update in case it exists.
     */
    where: FileUploadLogWhereUniqueInput
    /**
     * In case the FileUploadLog found by the `where` argument doesn't exist, create a new FileUploadLog with this data.
     */
    create: XOR<FileUploadLogCreateInput, FileUploadLogUncheckedCreateInput>
    /**
     * In case the FileUploadLog was found with the provided `where` argument, update it with this data.
     */
    update: XOR<FileUploadLogUpdateInput, FileUploadLogUncheckedUpdateInput>
  }

  /**
   * FileUploadLog delete
   */
  export type FileUploadLogDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
    /**
     * Filter which FileUploadLog to delete.
     */
    where: FileUploadLogWhereUniqueInput
  }

  /**
   * FileUploadLog deleteMany
   */
  export type FileUploadLogDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which FileUploadLogs to delete
     */
    where?: FileUploadLogWhereInput
  }

  /**
   * FileUploadLog without action
   */
  export type FileUploadLogDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the FileUploadLog
     */
    select?: FileUploadLogSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: FileUploadLogInclude<ExtArgs> | null
  }


  /**
   * Model DataTransferQueries
   */

  export type AggregateDataTransferQueries = {
    _count: DataTransferQueriesCountAggregateOutputType | null
    _avg: DataTransferQueriesAvgAggregateOutputType | null
    _sum: DataTransferQueriesSumAggregateOutputType | null
    _min: DataTransferQueriesMinAggregateOutputType | null
    _max: DataTransferQueriesMaxAggregateOutputType | null
  }

  export type DataTransferQueriesAvgAggregateOutputType = {
    id: number | null
    execution_order: number | null
    status_id: number | null
    created_by: number | null
    company_id: number | null
  }

  export type DataTransferQueriesSumAggregateOutputType = {
    id: number | null
    execution_order: number | null
    status_id: number | null
    created_by: number | null
    company_id: number | null
  }

  export type DataTransferQueriesMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    select_query: string | null
    insert_query: string | null
    transfer_type: string | null
    job_name: string | null
    destination_table: string | null
    clear_destination_table: boolean | null
    execution_order: number | null
    command_type: string | null
    status_id: number | null
    created_by: number | null
    created_at: Date | null
    company_id: number | null
  }

  export type DataTransferQueriesMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    select_query: string | null
    insert_query: string | null
    transfer_type: string | null
    job_name: string | null
    destination_table: string | null
    clear_destination_table: boolean | null
    execution_order: number | null
    command_type: string | null
    status_id: number | null
    created_by: number | null
    created_at: Date | null
    company_id: number | null
  }

  export type DataTransferQueriesCountAggregateOutputType = {
    id: number
    uuid: number
    select_query: number
    insert_query: number
    transfer_type: number
    job_name: number
    destination_table: number
    clear_destination_table: number
    execution_order: number
    command_type: number
    status_id: number
    created_by: number
    created_at: number
    company_id: number
    _all: number
  }


  export type DataTransferQueriesAvgAggregateInputType = {
    id?: true
    execution_order?: true
    status_id?: true
    created_by?: true
    company_id?: true
  }

  export type DataTransferQueriesSumAggregateInputType = {
    id?: true
    execution_order?: true
    status_id?: true
    created_by?: true
    company_id?: true
  }

  export type DataTransferQueriesMinAggregateInputType = {
    id?: true
    uuid?: true
    select_query?: true
    insert_query?: true
    transfer_type?: true
    job_name?: true
    destination_table?: true
    clear_destination_table?: true
    execution_order?: true
    command_type?: true
    status_id?: true
    created_by?: true
    created_at?: true
    company_id?: true
  }

  export type DataTransferQueriesMaxAggregateInputType = {
    id?: true
    uuid?: true
    select_query?: true
    insert_query?: true
    transfer_type?: true
    job_name?: true
    destination_table?: true
    clear_destination_table?: true
    execution_order?: true
    command_type?: true
    status_id?: true
    created_by?: true
    created_at?: true
    company_id?: true
  }

  export type DataTransferQueriesCountAggregateInputType = {
    id?: true
    uuid?: true
    select_query?: true
    insert_query?: true
    transfer_type?: true
    job_name?: true
    destination_table?: true
    clear_destination_table?: true
    execution_order?: true
    command_type?: true
    status_id?: true
    created_by?: true
    created_at?: true
    company_id?: true
    _all?: true
  }

  export type DataTransferQueriesAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which DataTransferQueries to aggregate.
     */
    where?: DataTransferQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DataTransferQueries to fetch.
     */
    orderBy?: DataTransferQueriesOrderByWithRelationInput | DataTransferQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: DataTransferQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DataTransferQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DataTransferQueries.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned DataTransferQueries
    **/
    _count?: true | DataTransferQueriesCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: DataTransferQueriesAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: DataTransferQueriesSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: DataTransferQueriesMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: DataTransferQueriesMaxAggregateInputType
  }

  export type GetDataTransferQueriesAggregateType<T extends DataTransferQueriesAggregateArgs> = {
        [P in keyof T & keyof AggregateDataTransferQueries]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateDataTransferQueries[P]>
      : GetScalarType<T[P], AggregateDataTransferQueries[P]>
  }




  export type DataTransferQueriesGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DataTransferQueriesWhereInput
    orderBy?: DataTransferQueriesOrderByWithAggregationInput | DataTransferQueriesOrderByWithAggregationInput[]
    by: DataTransferQueriesScalarFieldEnum[] | DataTransferQueriesScalarFieldEnum
    having?: DataTransferQueriesScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: DataTransferQueriesCountAggregateInputType | true
    _avg?: DataTransferQueriesAvgAggregateInputType
    _sum?: DataTransferQueriesSumAggregateInputType
    _min?: DataTransferQueriesMinAggregateInputType
    _max?: DataTransferQueriesMaxAggregateInputType
  }

  export type DataTransferQueriesGroupByOutputType = {
    id: number
    uuid: string
    select_query: string
    insert_query: string
    transfer_type: string
    job_name: string
    destination_table: string
    clear_destination_table: boolean
    execution_order: number
    command_type: string
    status_id: number
    created_by: number | null
    created_at: Date | null
    company_id: number
    _count: DataTransferQueriesCountAggregateOutputType | null
    _avg: DataTransferQueriesAvgAggregateOutputType | null
    _sum: DataTransferQueriesSumAggregateOutputType | null
    _min: DataTransferQueriesMinAggregateOutputType | null
    _max: DataTransferQueriesMaxAggregateOutputType | null
  }

  type GetDataTransferQueriesGroupByPayload<T extends DataTransferQueriesGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<DataTransferQueriesGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof DataTransferQueriesGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], DataTransferQueriesGroupByOutputType[P]>
            : GetScalarType<T[P], DataTransferQueriesGroupByOutputType[P]>
        }
      >
    >


  export type DataTransferQueriesSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    select_query?: boolean
    insert_query?: boolean
    transfer_type?: boolean
    job_name?: boolean
    destination_table?: boolean
    clear_destination_table?: boolean
    execution_order?: boolean
    command_type?: boolean
    status_id?: boolean
    created_by?: boolean
    created_at?: boolean
    company_id?: boolean
  }, ExtArgs["result"]["dataTransferQueries"]>


  export type DataTransferQueriesSelectScalar = {
    id?: boolean
    uuid?: boolean
    select_query?: boolean
    insert_query?: boolean
    transfer_type?: boolean
    job_name?: boolean
    destination_table?: boolean
    clear_destination_table?: boolean
    execution_order?: boolean
    command_type?: boolean
    status_id?: boolean
    created_by?: boolean
    created_at?: boolean
    company_id?: boolean
  }


  export type $DataTransferQueriesPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "DataTransferQueries"
    objects: {}
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      select_query: string
      insert_query: string
      transfer_type: string
      job_name: string
      destination_table: string
      clear_destination_table: boolean
      execution_order: number
      command_type: string
      status_id: number
      created_by: number | null
      created_at: Date | null
      company_id: number
    }, ExtArgs["result"]["dataTransferQueries"]>
    composites: {}
  }

  type DataTransferQueriesGetPayload<S extends boolean | null | undefined | DataTransferQueriesDefaultArgs> = $Result.GetResult<Prisma.$DataTransferQueriesPayload, S>

  type DataTransferQueriesCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<DataTransferQueriesFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: DataTransferQueriesCountAggregateInputType | true
    }

  export interface DataTransferQueriesDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DataTransferQueries'], meta: { name: 'DataTransferQueries' } }
    /**
     * Find zero or one DataTransferQueries that matches the filter.
     * @param {DataTransferQueriesFindUniqueArgs} args - Arguments to find a DataTransferQueries
     * @example
     * // Get one DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends DataTransferQueriesFindUniqueArgs>(args: SelectSubset<T, DataTransferQueriesFindUniqueArgs<ExtArgs>>): Prisma__DataTransferQueriesClient<$Result.GetResult<Prisma.$DataTransferQueriesPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one DataTransferQueries that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {DataTransferQueriesFindUniqueOrThrowArgs} args - Arguments to find a DataTransferQueries
     * @example
     * // Get one DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends DataTransferQueriesFindUniqueOrThrowArgs>(args: SelectSubset<T, DataTransferQueriesFindUniqueOrThrowArgs<ExtArgs>>): Prisma__DataTransferQueriesClient<$Result.GetResult<Prisma.$DataTransferQueriesPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first DataTransferQueries 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 {DataTransferQueriesFindFirstArgs} args - Arguments to find a DataTransferQueries
     * @example
     * // Get one DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends DataTransferQueriesFindFirstArgs>(args?: SelectSubset<T, DataTransferQueriesFindFirstArgs<ExtArgs>>): Prisma__DataTransferQueriesClient<$Result.GetResult<Prisma.$DataTransferQueriesPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first DataTransferQueries 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 {DataTransferQueriesFindFirstOrThrowArgs} args - Arguments to find a DataTransferQueries
     * @example
     * // Get one DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends DataTransferQueriesFindFirstOrThrowArgs>(args?: SelectSubset<T, DataTransferQueriesFindFirstOrThrowArgs<ExtArgs>>): Prisma__DataTransferQueriesClient<$Result.GetResult<Prisma.$DataTransferQueriesPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more DataTransferQueries 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 {DataTransferQueriesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.findMany()
     * 
     * // Get first 10 DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const dataTransferQueriesWithIdOnly = await prisma.dataTransferQueries.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends DataTransferQueriesFindManyArgs>(args?: SelectSubset<T, DataTransferQueriesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DataTransferQueriesPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a DataTransferQueries.
     * @param {DataTransferQueriesCreateArgs} args - Arguments to create a DataTransferQueries.
     * @example
     * // Create one DataTransferQueries
     * const DataTransferQueries = await prisma.dataTransferQueries.create({
     *   data: {
     *     // ... data to create a DataTransferQueries
     *   }
     * })
     * 
     */
    create<T extends DataTransferQueriesCreateArgs>(args: SelectSubset<T, DataTransferQueriesCreateArgs<ExtArgs>>): Prisma__DataTransferQueriesClient<$Result.GetResult<Prisma.$DataTransferQueriesPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many DataTransferQueries.
     * @param {DataTransferQueriesCreateManyArgs} args - Arguments to create many DataTransferQueries.
     * @example
     * // Create many DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends DataTransferQueriesCreateManyArgs>(args?: SelectSubset<T, DataTransferQueriesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a DataTransferQueries.
     * @param {DataTransferQueriesDeleteArgs} args - Arguments to delete one DataTransferQueries.
     * @example
     * // Delete one DataTransferQueries
     * const DataTransferQueries = await prisma.dataTransferQueries.delete({
     *   where: {
     *     // ... filter to delete one DataTransferQueries
     *   }
     * })
     * 
     */
    delete<T extends DataTransferQueriesDeleteArgs>(args: SelectSubset<T, DataTransferQueriesDeleteArgs<ExtArgs>>): Prisma__DataTransferQueriesClient<$Result.GetResult<Prisma.$DataTransferQueriesPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one DataTransferQueries.
     * @param {DataTransferQueriesUpdateArgs} args - Arguments to update one DataTransferQueries.
     * @example
     * // Update one DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends DataTransferQueriesUpdateArgs>(args: SelectSubset<T, DataTransferQueriesUpdateArgs<ExtArgs>>): Prisma__DataTransferQueriesClient<$Result.GetResult<Prisma.$DataTransferQueriesPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more DataTransferQueries.
     * @param {DataTransferQueriesDeleteManyArgs} args - Arguments to filter DataTransferQueries to delete.
     * @example
     * // Delete a few DataTransferQueries
     * const { count } = await prisma.dataTransferQueries.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends DataTransferQueriesDeleteManyArgs>(args?: SelectSubset<T, DataTransferQueriesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more DataTransferQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DataTransferQueriesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends DataTransferQueriesUpdateManyArgs>(args: SelectSubset<T, DataTransferQueriesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one DataTransferQueries.
     * @param {DataTransferQueriesUpsertArgs} args - Arguments to update or create a DataTransferQueries.
     * @example
     * // Update or create a DataTransferQueries
     * const dataTransferQueries = await prisma.dataTransferQueries.upsert({
     *   create: {
     *     // ... data to create a DataTransferQueries
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the DataTransferQueries we want to update
     *   }
     * })
     */
    upsert<T extends DataTransferQueriesUpsertArgs>(args: SelectSubset<T, DataTransferQueriesUpsertArgs<ExtArgs>>): Prisma__DataTransferQueriesClient<$Result.GetResult<Prisma.$DataTransferQueriesPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of DataTransferQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DataTransferQueriesCountArgs} args - Arguments to filter DataTransferQueries to count.
     * @example
     * // Count the number of DataTransferQueries
     * const count = await prisma.dataTransferQueries.count({
     *   where: {
     *     // ... the filter for the DataTransferQueries we want to count
     *   }
     * })
    **/
    count<T extends DataTransferQueriesCountArgs>(
      args?: Subset<T, DataTransferQueriesCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], DataTransferQueriesCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a DataTransferQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DataTransferQueriesAggregateArgs} 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<T extends DataTransferQueriesAggregateArgs>(args: Subset<T, DataTransferQueriesAggregateArgs>): Prisma.PrismaPromise<GetDataTransferQueriesAggregateType<T>>

    /**
     * Group by DataTransferQueries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DataTransferQueriesGroupByArgs} 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 DataTransferQueriesGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: DataTransferQueriesGroupByArgs['orderBy'] }
        : { orderBy?: DataTransferQueriesGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, DataTransferQueriesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDataTransferQueriesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the DataTransferQueries model
   */
  readonly fields: DataTransferQueriesFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for DataTransferQueries.
   * 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__DataTransferQueriesClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the DataTransferQueries model
   */ 
  interface DataTransferQueriesFieldRefs {
    readonly id: FieldRef<"DataTransferQueries", 'Int'>
    readonly uuid: FieldRef<"DataTransferQueries", 'String'>
    readonly select_query: FieldRef<"DataTransferQueries", 'String'>
    readonly insert_query: FieldRef<"DataTransferQueries", 'String'>
    readonly transfer_type: FieldRef<"DataTransferQueries", 'String'>
    readonly job_name: FieldRef<"DataTransferQueries", 'String'>
    readonly destination_table: FieldRef<"DataTransferQueries", 'String'>
    readonly clear_destination_table: FieldRef<"DataTransferQueries", 'Boolean'>
    readonly execution_order: FieldRef<"DataTransferQueries", 'Int'>
    readonly command_type: FieldRef<"DataTransferQueries", 'String'>
    readonly status_id: FieldRef<"DataTransferQueries", 'Int'>
    readonly created_by: FieldRef<"DataTransferQueries", 'Int'>
    readonly created_at: FieldRef<"DataTransferQueries", 'DateTime'>
    readonly company_id: FieldRef<"DataTransferQueries", 'Int'>
  }
    

  // Custom InputTypes
  /**
   * DataTransferQueries findUnique
   */
  export type DataTransferQueriesFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
    /**
     * Filter, which DataTransferQueries to fetch.
     */
    where: DataTransferQueriesWhereUniqueInput
  }

  /**
   * DataTransferQueries findUniqueOrThrow
   */
  export type DataTransferQueriesFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
    /**
     * Filter, which DataTransferQueries to fetch.
     */
    where: DataTransferQueriesWhereUniqueInput
  }

  /**
   * DataTransferQueries findFirst
   */
  export type DataTransferQueriesFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
    /**
     * Filter, which DataTransferQueries to fetch.
     */
    where?: DataTransferQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DataTransferQueries to fetch.
     */
    orderBy?: DataTransferQueriesOrderByWithRelationInput | DataTransferQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for DataTransferQueries.
     */
    cursor?: DataTransferQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DataTransferQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DataTransferQueries.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of DataTransferQueries.
     */
    distinct?: DataTransferQueriesScalarFieldEnum | DataTransferQueriesScalarFieldEnum[]
  }

  /**
   * DataTransferQueries findFirstOrThrow
   */
  export type DataTransferQueriesFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
    /**
     * Filter, which DataTransferQueries to fetch.
     */
    where?: DataTransferQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DataTransferQueries to fetch.
     */
    orderBy?: DataTransferQueriesOrderByWithRelationInput | DataTransferQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for DataTransferQueries.
     */
    cursor?: DataTransferQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DataTransferQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DataTransferQueries.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of DataTransferQueries.
     */
    distinct?: DataTransferQueriesScalarFieldEnum | DataTransferQueriesScalarFieldEnum[]
  }

  /**
   * DataTransferQueries findMany
   */
  export type DataTransferQueriesFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
    /**
     * Filter, which DataTransferQueries to fetch.
     */
    where?: DataTransferQueriesWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DataTransferQueries to fetch.
     */
    orderBy?: DataTransferQueriesOrderByWithRelationInput | DataTransferQueriesOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing DataTransferQueries.
     */
    cursor?: DataTransferQueriesWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DataTransferQueries from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DataTransferQueries.
     */
    skip?: number
    distinct?: DataTransferQueriesScalarFieldEnum | DataTransferQueriesScalarFieldEnum[]
  }

  /**
   * DataTransferQueries create
   */
  export type DataTransferQueriesCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
    /**
     * The data needed to create a DataTransferQueries.
     */
    data: XOR<DataTransferQueriesCreateInput, DataTransferQueriesUncheckedCreateInput>
  }

  /**
   * DataTransferQueries createMany
   */
  export type DataTransferQueriesCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many DataTransferQueries.
     */
    data: DataTransferQueriesCreateManyInput | DataTransferQueriesCreateManyInput[]
  }

  /**
   * DataTransferQueries update
   */
  export type DataTransferQueriesUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
    /**
     * The data needed to update a DataTransferQueries.
     */
    data: XOR<DataTransferQueriesUpdateInput, DataTransferQueriesUncheckedUpdateInput>
    /**
     * Choose, which DataTransferQueries to update.
     */
    where: DataTransferQueriesWhereUniqueInput
  }

  /**
   * DataTransferQueries updateMany
   */
  export type DataTransferQueriesUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update DataTransferQueries.
     */
    data: XOR<DataTransferQueriesUpdateManyMutationInput, DataTransferQueriesUncheckedUpdateManyInput>
    /**
     * Filter which DataTransferQueries to update
     */
    where?: DataTransferQueriesWhereInput
  }

  /**
   * DataTransferQueries upsert
   */
  export type DataTransferQueriesUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
    /**
     * The filter to search for the DataTransferQueries to update in case it exists.
     */
    where: DataTransferQueriesWhereUniqueInput
    /**
     * In case the DataTransferQueries found by the `where` argument doesn't exist, create a new DataTransferQueries with this data.
     */
    create: XOR<DataTransferQueriesCreateInput, DataTransferQueriesUncheckedCreateInput>
    /**
     * In case the DataTransferQueries was found with the provided `where` argument, update it with this data.
     */
    update: XOR<DataTransferQueriesUpdateInput, DataTransferQueriesUncheckedUpdateInput>
  }

  /**
   * DataTransferQueries delete
   */
  export type DataTransferQueriesDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
    /**
     * Filter which DataTransferQueries to delete.
     */
    where: DataTransferQueriesWhereUniqueInput
  }

  /**
   * DataTransferQueries deleteMany
   */
  export type DataTransferQueriesDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which DataTransferQueries to delete
     */
    where?: DataTransferQueriesWhereInput
  }

  /**
   * DataTransferQueries without action
   */
  export type DataTransferQueriesDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DataTransferQueries
     */
    select?: DataTransferQueriesSelect<ExtArgs> | null
  }


  /**
   * Model DeviceRegistration
   */

  export type AggregateDeviceRegistration = {
    _count: DeviceRegistrationCountAggregateOutputType | null
    _avg: DeviceRegistrationAvgAggregateOutputType | null
    _sum: DeviceRegistrationSumAggregateOutputType | null
    _min: DeviceRegistrationMinAggregateOutputType | null
    _max: DeviceRegistrationMaxAggregateOutputType | null
  }

  export type DeviceRegistrationAvgAggregateOutputType = {
    id: number | null
    company_id: number | null
    user_id: number | null
    status_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type DeviceRegistrationSumAggregateOutputType = {
    id: number | null
    company_id: number | null
    user_id: number | null
    status_id: number | null
    created_by: number | null
    updated_by: number | null
    deleted_by: number | null
  }

  export type DeviceRegistrationMinAggregateOutputType = {
    id: number | null
    uuid: string | null
    company_id: number | null
    device_name: string | null
    device_unique_id: string | null
    user_id: number | null
    status_id: number | null
    created_by: number | null
    created_at: Date | null
    updated_by: number | null
    updated_at: Date | null
    deleted_by: number | null
    deleted_at: Date | null
  }

  export type DeviceRegistrationMaxAggregateOutputType = {
    id: number | null
    uuid: string | null
    company_id: number | null
    device_name: string | null
    device_unique_id: string | null
    user_id: number | null
    status_id: number | null
    created_by: number | null
    created_at: Date | null
    updated_by: number | null
    updated_at: Date | null
    deleted_by: number | null
    deleted_at: Date | null
  }

  export type DeviceRegistrationCountAggregateOutputType = {
    id: number
    uuid: number
    company_id: number
    device_name: number
    device_unique_id: number
    user_id: number
    status_id: number
    created_by: number
    created_at: number
    updated_by: number
    updated_at: number
    deleted_by: number
    deleted_at: number
    _all: number
  }


  export type DeviceRegistrationAvgAggregateInputType = {
    id?: true
    company_id?: true
    user_id?: true
    status_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type DeviceRegistrationSumAggregateInputType = {
    id?: true
    company_id?: true
    user_id?: true
    status_id?: true
    created_by?: true
    updated_by?: true
    deleted_by?: true
  }

  export type DeviceRegistrationMinAggregateInputType = {
    id?: true
    uuid?: true
    company_id?: true
    device_name?: true
    device_unique_id?: true
    user_id?: true
    status_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
  }

  export type DeviceRegistrationMaxAggregateInputType = {
    id?: true
    uuid?: true
    company_id?: true
    device_name?: true
    device_unique_id?: true
    user_id?: true
    status_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
  }

  export type DeviceRegistrationCountAggregateInputType = {
    id?: true
    uuid?: true
    company_id?: true
    device_name?: true
    device_unique_id?: true
    user_id?: true
    status_id?: true
    created_by?: true
    created_at?: true
    updated_by?: true
    updated_at?: true
    deleted_by?: true
    deleted_at?: true
    _all?: true
  }

  export type DeviceRegistrationAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which DeviceRegistration to aggregate.
     */
    where?: DeviceRegistrationWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DeviceRegistrations to fetch.
     */
    orderBy?: DeviceRegistrationOrderByWithRelationInput | DeviceRegistrationOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the start position
     */
    cursor?: DeviceRegistrationWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DeviceRegistrations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DeviceRegistrations.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Count returned DeviceRegistrations
    **/
    _count?: true | DeviceRegistrationCountAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to average
    **/
    _avg?: DeviceRegistrationAvgAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to sum
    **/
    _sum?: DeviceRegistrationSumAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the minimum value
    **/
    _min?: DeviceRegistrationMinAggregateInputType
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     * 
     * Select which fields to find the maximum value
    **/
    _max?: DeviceRegistrationMaxAggregateInputType
  }

  export type GetDeviceRegistrationAggregateType<T extends DeviceRegistrationAggregateArgs> = {
        [P in keyof T & keyof AggregateDeviceRegistration]: P extends '_count' | 'count'
      ? T[P] extends true
        ? number
        : GetScalarType<T[P], AggregateDeviceRegistration[P]>
      : GetScalarType<T[P], AggregateDeviceRegistration[P]>
  }




  export type DeviceRegistrationGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    where?: DeviceRegistrationWhereInput
    orderBy?: DeviceRegistrationOrderByWithAggregationInput | DeviceRegistrationOrderByWithAggregationInput[]
    by: DeviceRegistrationScalarFieldEnum[] | DeviceRegistrationScalarFieldEnum
    having?: DeviceRegistrationScalarWhereWithAggregatesInput
    take?: number
    skip?: number
    _count?: DeviceRegistrationCountAggregateInputType | true
    _avg?: DeviceRegistrationAvgAggregateInputType
    _sum?: DeviceRegistrationSumAggregateInputType
    _min?: DeviceRegistrationMinAggregateInputType
    _max?: DeviceRegistrationMaxAggregateInputType
  }

  export type DeviceRegistrationGroupByOutputType = {
    id: number
    uuid: string
    company_id: number
    device_name: string
    device_unique_id: string
    user_id: number
    status_id: number
    created_by: number
    created_at: Date
    updated_by: number | null
    updated_at: Date
    deleted_by: number | null
    deleted_at: Date | null
    _count: DeviceRegistrationCountAggregateOutputType | null
    _avg: DeviceRegistrationAvgAggregateOutputType | null
    _sum: DeviceRegistrationSumAggregateOutputType | null
    _min: DeviceRegistrationMinAggregateOutputType | null
    _max: DeviceRegistrationMaxAggregateOutputType | null
  }

  type GetDeviceRegistrationGroupByPayload<T extends DeviceRegistrationGroupByArgs> = Prisma.PrismaPromise<
    Array<
      PickEnumerable<DeviceRegistrationGroupByOutputType, T['by']> &
        {
          [P in ((keyof T) & (keyof DeviceRegistrationGroupByOutputType))]: P extends '_count'
            ? T[P] extends boolean
              ? number
              : GetScalarType<T[P], DeviceRegistrationGroupByOutputType[P]>
            : GetScalarType<T[P], DeviceRegistrationGroupByOutputType[P]>
        }
      >
    >


  export type DeviceRegistrationSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
    id?: boolean
    uuid?: boolean
    company_id?: boolean
    device_name?: boolean
    device_unique_id?: boolean
    user_id?: boolean
    status_id?: boolean
    created_by?: boolean
    created_at?: boolean
    updated_by?: boolean
    updated_at?: boolean
    deleted_by?: boolean
    deleted_at?: boolean
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created_device_registration?: boolean | UserDefaultArgs<ExtArgs>
    updated_device_registration?: boolean | DeviceRegistration$updated_device_registrationArgs<ExtArgs>
    deleted_device_registration?: boolean | DeviceRegistration$deleted_device_registrationArgs<ExtArgs>
    user?: boolean | UserDefaultArgs<ExtArgs>
  }, ExtArgs["result"]["deviceRegistration"]>


  export type DeviceRegistrationSelectScalar = {
    id?: boolean
    uuid?: boolean
    company_id?: boolean
    device_name?: boolean
    device_unique_id?: boolean
    user_id?: boolean
    status_id?: boolean
    created_by?: boolean
    created_at?: boolean
    updated_by?: boolean
    updated_at?: boolean
    deleted_by?: boolean
    deleted_at?: boolean
  }

  export type DeviceRegistrationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    status?: boolean | StatusDefaultArgs<ExtArgs>
    created_device_registration?: boolean | UserDefaultArgs<ExtArgs>
    updated_device_registration?: boolean | DeviceRegistration$updated_device_registrationArgs<ExtArgs>
    deleted_device_registration?: boolean | DeviceRegistration$deleted_device_registrationArgs<ExtArgs>
    user?: boolean | UserDefaultArgs<ExtArgs>
  }

  export type $DeviceRegistrationPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    name: "DeviceRegistration"
    objects: {
      status: Prisma.$StatusPayload<ExtArgs>
      created_device_registration: Prisma.$UserPayload<ExtArgs>
      updated_device_registration: Prisma.$UserPayload<ExtArgs> | null
      deleted_device_registration: Prisma.$UserPayload<ExtArgs> | null
      user: Prisma.$UserPayload<ExtArgs>
    }
    scalars: $Extensions.GetPayloadResult<{
      id: number
      uuid: string
      company_id: number
      device_name: string
      device_unique_id: string
      user_id: number
      status_id: number
      created_by: number
      created_at: Date
      updated_by: number | null
      updated_at: Date
      deleted_by: number | null
      deleted_at: Date | null
    }, ExtArgs["result"]["deviceRegistration"]>
    composites: {}
  }

  type DeviceRegistrationGetPayload<S extends boolean | null | undefined | DeviceRegistrationDefaultArgs> = $Result.GetResult<Prisma.$DeviceRegistrationPayload, S>

  type DeviceRegistrationCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = 
    Omit<DeviceRegistrationFindManyArgs, 'select' | 'include' | 'distinct'> & {
      select?: DeviceRegistrationCountAggregateInputType | true
    }

  export interface DeviceRegistrationDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
    [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['DeviceRegistration'], meta: { name: 'DeviceRegistration' } }
    /**
     * Find zero or one DeviceRegistration that matches the filter.
     * @param {DeviceRegistrationFindUniqueArgs} args - Arguments to find a DeviceRegistration
     * @example
     * // Get one DeviceRegistration
     * const deviceRegistration = await prisma.deviceRegistration.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends DeviceRegistrationFindUniqueArgs>(args: SelectSubset<T, DeviceRegistrationFindUniqueArgs<ExtArgs>>): Prisma__DeviceRegistrationClient<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>

    /**
     * Find one DeviceRegistration that matches the filter or throw an error with `error.code='P2025'` 
     * if no matches were found.
     * @param {DeviceRegistrationFindUniqueOrThrowArgs} args - Arguments to find a DeviceRegistration
     * @example
     * // Get one DeviceRegistration
     * const deviceRegistration = await prisma.deviceRegistration.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends DeviceRegistrationFindUniqueOrThrowArgs>(args: SelectSubset<T, DeviceRegistrationFindUniqueOrThrowArgs<ExtArgs>>): Prisma__DeviceRegistrationClient<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>

    /**
     * Find the first DeviceRegistration 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 {DeviceRegistrationFindFirstArgs} args - Arguments to find a DeviceRegistration
     * @example
     * // Get one DeviceRegistration
     * const deviceRegistration = await prisma.deviceRegistration.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends DeviceRegistrationFindFirstArgs>(args?: SelectSubset<T, DeviceRegistrationFindFirstArgs<ExtArgs>>): Prisma__DeviceRegistrationClient<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>

    /**
     * Find the first DeviceRegistration 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 {DeviceRegistrationFindFirstOrThrowArgs} args - Arguments to find a DeviceRegistration
     * @example
     * // Get one DeviceRegistration
     * const deviceRegistration = await prisma.deviceRegistration.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends DeviceRegistrationFindFirstOrThrowArgs>(args?: SelectSubset<T, DeviceRegistrationFindFirstOrThrowArgs<ExtArgs>>): Prisma__DeviceRegistrationClient<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>

    /**
     * Find zero or more DeviceRegistrations 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 {DeviceRegistrationFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all DeviceRegistrations
     * const deviceRegistrations = await prisma.deviceRegistration.findMany()
     * 
     * // Get first 10 DeviceRegistrations
     * const deviceRegistrations = await prisma.deviceRegistration.findMany({ take: 10 })
     * 
     * // Only select the `id`
     * const deviceRegistrationWithIdOnly = await prisma.deviceRegistration.findMany({ select: { id: true } })
     * 
     */
    findMany<T extends DeviceRegistrationFindManyArgs>(args?: SelectSubset<T, DeviceRegistrationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "findMany">>

    /**
     * Create a DeviceRegistration.
     * @param {DeviceRegistrationCreateArgs} args - Arguments to create a DeviceRegistration.
     * @example
     * // Create one DeviceRegistration
     * const DeviceRegistration = await prisma.deviceRegistration.create({
     *   data: {
     *     // ... data to create a DeviceRegistration
     *   }
     * })
     * 
     */
    create<T extends DeviceRegistrationCreateArgs>(args: SelectSubset<T, DeviceRegistrationCreateArgs<ExtArgs>>): Prisma__DeviceRegistrationClient<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "create">, never, ExtArgs>

    /**
     * Create many DeviceRegistrations.
     * @param {DeviceRegistrationCreateManyArgs} args - Arguments to create many DeviceRegistrations.
     * @example
     * // Create many DeviceRegistrations
     * const deviceRegistration = await prisma.deviceRegistration.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *     
     */
    createMany<T extends DeviceRegistrationCreateManyArgs>(args?: SelectSubset<T, DeviceRegistrationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Delete a DeviceRegistration.
     * @param {DeviceRegistrationDeleteArgs} args - Arguments to delete one DeviceRegistration.
     * @example
     * // Delete one DeviceRegistration
     * const DeviceRegistration = await prisma.deviceRegistration.delete({
     *   where: {
     *     // ... filter to delete one DeviceRegistration
     *   }
     * })
     * 
     */
    delete<T extends DeviceRegistrationDeleteArgs>(args: SelectSubset<T, DeviceRegistrationDeleteArgs<ExtArgs>>): Prisma__DeviceRegistrationClient<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "delete">, never, ExtArgs>

    /**
     * Update one DeviceRegistration.
     * @param {DeviceRegistrationUpdateArgs} args - Arguments to update one DeviceRegistration.
     * @example
     * // Update one DeviceRegistration
     * const deviceRegistration = await prisma.deviceRegistration.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    update<T extends DeviceRegistrationUpdateArgs>(args: SelectSubset<T, DeviceRegistrationUpdateArgs<ExtArgs>>): Prisma__DeviceRegistrationClient<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "update">, never, ExtArgs>

    /**
     * Delete zero or more DeviceRegistrations.
     * @param {DeviceRegistrationDeleteManyArgs} args - Arguments to filter DeviceRegistrations to delete.
     * @example
     * // Delete a few DeviceRegistrations
     * const { count } = await prisma.deviceRegistration.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     * 
     */
    deleteMany<T extends DeviceRegistrationDeleteManyArgs>(args?: SelectSubset<T, DeviceRegistrationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Update zero or more DeviceRegistrations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DeviceRegistrationUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many DeviceRegistrations
     * const deviceRegistration = await prisma.deviceRegistration.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     * 
     */
    updateMany<T extends DeviceRegistrationUpdateManyArgs>(args: SelectSubset<T, DeviceRegistrationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>

    /**
     * Create or update one DeviceRegistration.
     * @param {DeviceRegistrationUpsertArgs} args - Arguments to update or create a DeviceRegistration.
     * @example
     * // Update or create a DeviceRegistration
     * const deviceRegistration = await prisma.deviceRegistration.upsert({
     *   create: {
     *     // ... data to create a DeviceRegistration
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the DeviceRegistration we want to update
     *   }
     * })
     */
    upsert<T extends DeviceRegistrationUpsertArgs>(args: SelectSubset<T, DeviceRegistrationUpsertArgs<ExtArgs>>): Prisma__DeviceRegistrationClient<$Result.GetResult<Prisma.$DeviceRegistrationPayload<ExtArgs>, T, "upsert">, never, ExtArgs>


    /**
     * Count the number of DeviceRegistrations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DeviceRegistrationCountArgs} args - Arguments to filter DeviceRegistrations to count.
     * @example
     * // Count the number of DeviceRegistrations
     * const count = await prisma.deviceRegistration.count({
     *   where: {
     *     // ... the filter for the DeviceRegistrations we want to count
     *   }
     * })
    **/
    count<T extends DeviceRegistrationCountArgs>(
      args?: Subset<T, DeviceRegistrationCountArgs>,
    ): Prisma.PrismaPromise<
      T extends $Utils.Record<'select', any>
        ? T['select'] extends true
          ? number
          : GetScalarType<T['select'], DeviceRegistrationCountAggregateOutputType>
        : number
    >

    /**
     * Allows you to perform aggregations operations on a DeviceRegistration.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DeviceRegistrationAggregateArgs} 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<T extends DeviceRegistrationAggregateArgs>(args: Subset<T, DeviceRegistrationAggregateArgs>): Prisma.PrismaPromise<GetDeviceRegistrationAggregateType<T>>

    /**
     * Group by DeviceRegistration.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {DeviceRegistrationGroupByArgs} 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 DeviceRegistrationGroupByArgs,
      HasSelectOrTake extends Or<
        Extends<'skip', Keys<T>>,
        Extends<'take', Keys<T>>
      >,
      OrderByArg extends True extends HasSelectOrTake
        ? { orderBy: DeviceRegistrationGroupByArgs['orderBy'] }
        : { orderBy?: DeviceRegistrationGroupByArgs['orderBy'] },
      OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
      ByFields extends MaybeTupleToUnion<T['by']>,
      ByValid extends Has<ByFields, OrderFields>,
      HavingFields extends GetHavingFields<T['having']>,
      HavingValid extends Has<ByFields, HavingFields>,
      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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T>
      ? 'orderBy' extends Keys<T>
        ? 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<T, DeviceRegistrationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDeviceRegistrationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  /**
   * Fields of the DeviceRegistration model
   */
  readonly fields: DeviceRegistrationFieldRefs;
  }

  /**
   * The delegate class that acts as a "Promise-like" for DeviceRegistration.
   * 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__DeviceRegistrationClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise"
    status<T extends StatusDefaultArgs<ExtArgs> = {}>(args?: Subset<T, StatusDefaultArgs<ExtArgs>>): Prisma__StatusClient<$Result.GetResult<Prisma.$StatusPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    created_device_registration<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    updated_device_registration<T extends DeviceRegistration$updated_device_registrationArgs<ExtArgs> = {}>(args?: Subset<T, DeviceRegistration$updated_device_registrationArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    deleted_device_registration<T extends DeviceRegistration$deleted_device_registrationArgs<ExtArgs> = {}>(args?: Subset<T, DeviceRegistration$deleted_device_registrationArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
    user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
    /**
     * 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
    /**
     * 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<T>
  }




  /**
   * Fields of the DeviceRegistration model
   */ 
  interface DeviceRegistrationFieldRefs {
    readonly id: FieldRef<"DeviceRegistration", 'Int'>
    readonly uuid: FieldRef<"DeviceRegistration", 'String'>
    readonly company_id: FieldRef<"DeviceRegistration", 'Int'>
    readonly device_name: FieldRef<"DeviceRegistration", 'String'>
    readonly device_unique_id: FieldRef<"DeviceRegistration", 'String'>
    readonly user_id: FieldRef<"DeviceRegistration", 'Int'>
    readonly status_id: FieldRef<"DeviceRegistration", 'Int'>
    readonly created_by: FieldRef<"DeviceRegistration", 'Int'>
    readonly created_at: FieldRef<"DeviceRegistration", 'DateTime'>
    readonly updated_by: FieldRef<"DeviceRegistration", 'Int'>
    readonly updated_at: FieldRef<"DeviceRegistration", 'DateTime'>
    readonly deleted_by: FieldRef<"DeviceRegistration", 'Int'>
    readonly deleted_at: FieldRef<"DeviceRegistration", 'DateTime'>
  }
    

  // Custom InputTypes
  /**
   * DeviceRegistration findUnique
   */
  export type DeviceRegistrationFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    /**
     * Filter, which DeviceRegistration to fetch.
     */
    where: DeviceRegistrationWhereUniqueInput
  }

  /**
   * DeviceRegistration findUniqueOrThrow
   */
  export type DeviceRegistrationFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    /**
     * Filter, which DeviceRegistration to fetch.
     */
    where: DeviceRegistrationWhereUniqueInput
  }

  /**
   * DeviceRegistration findFirst
   */
  export type DeviceRegistrationFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    /**
     * Filter, which DeviceRegistration to fetch.
     */
    where?: DeviceRegistrationWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DeviceRegistrations to fetch.
     */
    orderBy?: DeviceRegistrationOrderByWithRelationInput | DeviceRegistrationOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for DeviceRegistrations.
     */
    cursor?: DeviceRegistrationWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DeviceRegistrations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DeviceRegistrations.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of DeviceRegistrations.
     */
    distinct?: DeviceRegistrationScalarFieldEnum | DeviceRegistrationScalarFieldEnum[]
  }

  /**
   * DeviceRegistration findFirstOrThrow
   */
  export type DeviceRegistrationFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    /**
     * Filter, which DeviceRegistration to fetch.
     */
    where?: DeviceRegistrationWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DeviceRegistrations to fetch.
     */
    orderBy?: DeviceRegistrationOrderByWithRelationInput | DeviceRegistrationOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for searching for DeviceRegistrations.
     */
    cursor?: DeviceRegistrationWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DeviceRegistrations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DeviceRegistrations.
     */
    skip?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     * 
     * Filter by unique combinations of DeviceRegistrations.
     */
    distinct?: DeviceRegistrationScalarFieldEnum | DeviceRegistrationScalarFieldEnum[]
  }

  /**
   * DeviceRegistration findMany
   */
  export type DeviceRegistrationFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    /**
     * Filter, which DeviceRegistrations to fetch.
     */
    where?: DeviceRegistrationWhereInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     * 
     * Determine the order of DeviceRegistrations to fetch.
     */
    orderBy?: DeviceRegistrationOrderByWithRelationInput | DeviceRegistrationOrderByWithRelationInput[]
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     * 
     * Sets the position for listing DeviceRegistrations.
     */
    cursor?: DeviceRegistrationWhereUniqueInput
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Take `±n` DeviceRegistrations from the position of the cursor.
     */
    take?: number
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     * 
     * Skip the first `n` DeviceRegistrations.
     */
    skip?: number
    distinct?: DeviceRegistrationScalarFieldEnum | DeviceRegistrationScalarFieldEnum[]
  }

  /**
   * DeviceRegistration create
   */
  export type DeviceRegistrationCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    /**
     * The data needed to create a DeviceRegistration.
     */
    data: XOR<DeviceRegistrationCreateInput, DeviceRegistrationUncheckedCreateInput>
  }

  /**
   * DeviceRegistration createMany
   */
  export type DeviceRegistrationCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to create many DeviceRegistrations.
     */
    data: DeviceRegistrationCreateManyInput | DeviceRegistrationCreateManyInput[]
  }

  /**
   * DeviceRegistration update
   */
  export type DeviceRegistrationUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    /**
     * The data needed to update a DeviceRegistration.
     */
    data: XOR<DeviceRegistrationUpdateInput, DeviceRegistrationUncheckedUpdateInput>
    /**
     * Choose, which DeviceRegistration to update.
     */
    where: DeviceRegistrationWhereUniqueInput
  }

  /**
   * DeviceRegistration updateMany
   */
  export type DeviceRegistrationUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * The data used to update DeviceRegistrations.
     */
    data: XOR<DeviceRegistrationUpdateManyMutationInput, DeviceRegistrationUncheckedUpdateManyInput>
    /**
     * Filter which DeviceRegistrations to update
     */
    where?: DeviceRegistrationWhereInput
  }

  /**
   * DeviceRegistration upsert
   */
  export type DeviceRegistrationUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    /**
     * The filter to search for the DeviceRegistration to update in case it exists.
     */
    where: DeviceRegistrationWhereUniqueInput
    /**
     * In case the DeviceRegistration found by the `where` argument doesn't exist, create a new DeviceRegistration with this data.
     */
    create: XOR<DeviceRegistrationCreateInput, DeviceRegistrationUncheckedCreateInput>
    /**
     * In case the DeviceRegistration was found with the provided `where` argument, update it with this data.
     */
    update: XOR<DeviceRegistrationUpdateInput, DeviceRegistrationUncheckedUpdateInput>
  }

  /**
   * DeviceRegistration delete
   */
  export type DeviceRegistrationDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
    /**
     * Filter which DeviceRegistration to delete.
     */
    where: DeviceRegistrationWhereUniqueInput
  }

  /**
   * DeviceRegistration deleteMany
   */
  export type DeviceRegistrationDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Filter which DeviceRegistrations to delete
     */
    where?: DeviceRegistrationWhereInput
  }

  /**
   * DeviceRegistration.updated_device_registration
   */
  export type DeviceRegistration$updated_device_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * DeviceRegistration.deleted_device_registration
   */
  export type DeviceRegistration$deleted_device_registrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the User
     */
    select?: UserSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: UserInclude<ExtArgs> | null
    where?: UserWhereInput
  }

  /**
   * DeviceRegistration without action
   */
  export type DeviceRegistrationDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the DeviceRegistration
     */
    select?: DeviceRegistrationSelect<ExtArgs> | null
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: DeviceRegistrationInclude<ExtArgs> | null
  }


  /**
   * Enums
   */

  export const TransactionIsolationLevel: {
    ReadUncommitted: 'ReadUncommitted',
    ReadCommitted: 'ReadCommitted',
    RepeatableRead: 'RepeatableRead',
    Serializable: 'Serializable',
    Snapshot: 'Snapshot'
  };

  export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]


  export const UserScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    username: 'username',
    email: 'email',
    email_verified: 'email_verified',
    password: 'password',
    status_id: 'status_id',
    role: 'role',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at',
    last_login: 'last_login',
    last_login_device: 'last_login_device'
  };

  export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]


  export const UserDetailScalarFieldEnum: {
    id: 'id',
    user_id: 'user_id',
    code: 'code',
    first_name: 'first_name',
    last_name: 'last_name',
    designation_id: 'designation_id',
    department_id: 'department_id',
    profile_pic: 'profile_pic',
    dob: 'dob',
    country_code: 'country_code',
    phone_number: 'phone_number',
    gender: 'gender',
    user_time_zone: 'user_time_zone',
    address: 'address',
    culture: 'culture',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type UserDetailScalarFieldEnum = (typeof UserDetailScalarFieldEnum)[keyof typeof UserDetailScalarFieldEnum]


  export const DesignationScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    code: 'code',
    name: 'name',
    description: 'description',
    status_id: 'status_id',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type DesignationScalarFieldEnum = (typeof DesignationScalarFieldEnum)[keyof typeof DesignationScalarFieldEnum]


  export const DepartmentScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    code: 'code',
    name: 'name',
    description: 'description',
    status_id: 'status_id',
    department_head_id: 'department_head_id',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type DepartmentScalarFieldEnum = (typeof DepartmentScalarFieldEnum)[keyof typeof DepartmentScalarFieldEnum]


  export const RequestLogScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    user_id: 'user_id',
    req_method: 'req_method',
    req_url: 'req_url',
    req_body: 'req_body',
    res_status: 'res_status',
    res_code: 'res_code',
    res_message: 'res_message',
    req_response: 'req_response',
    req_headers: 'req_headers',
    req_ip: 'req_ip',
    req_device: 'req_device',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type RequestLogScalarFieldEnum = (typeof RequestLogScalarFieldEnum)[keyof typeof RequestLogScalarFieldEnum]


  export const FinancialYearScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    code: 'code',
    is_freezed: 'is_freezed',
    start_date: 'start_date',
    end_date: 'end_date',
    status_id: 'status_id',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type FinancialYearScalarFieldEnum = (typeof FinancialYearScalarFieldEnum)[keyof typeof FinancialYearScalarFieldEnum]


  export const DocumentSequenceScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    module_name: 'module_name',
    financial_year_id: 'financial_year_id',
    current_sequence_no: 'current_sequence_no',
    start_sequence_no: 'start_sequence_no',
    end_sequence_no: 'end_sequence_no',
    sequence_length: 'sequence_length',
    status_id: 'status_id',
    code_format: 'code_format',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type DocumentSequenceScalarFieldEnum = (typeof DocumentSequenceScalarFieldEnum)[keyof typeof DocumentSequenceScalarFieldEnum]


  export const AuditLogScalarFieldEnum: {
    id: 'id',
    operation_type: 'operation_type',
    table_name: 'table_name',
    field_name: 'field_name',
    old_value: 'old_value',
    new_value: 'new_value',
    entity_id: 'entity_id',
    user_id: 'user_id',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type AuditLogScalarFieldEnum = (typeof AuditLogScalarFieldEnum)[keyof typeof AuditLogScalarFieldEnum]


  export const PermissionsScalarFieldEnum: {
    id: 'id',
    name: 'name',
    slug: 'slug',
    entity_id: 'entity_id',
    order_no: 'order_no',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type PermissionsScalarFieldEnum = (typeof PermissionsScalarFieldEnum)[keyof typeof PermissionsScalarFieldEnum]


  export const RoleScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    description: 'description',
    status_id: 'status_id',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum]


  export const RolePermissionsScalarFieldEnum: {
    role_id: 'role_id',
    permission_id: 'permission_id',
    company_id: 'company_id'
  };

  export type RolePermissionsScalarFieldEnum = (typeof RolePermissionsScalarFieldEnum)[keyof typeof RolePermissionsScalarFieldEnum]


  export const UserRolesScalarFieldEnum: {
    user_id: 'user_id',
    role_id: 'role_id',
    company_id: 'company_id'
  };

  export type UserRolesScalarFieldEnum = (typeof UserRolesScalarFieldEnum)[keyof typeof UserRolesScalarFieldEnum]


  export const UserPermissionsScalarFieldEnum: {
    user_id: 'user_id',
    permission_id: 'permission_id',
    company_id: 'company_id'
  };

  export type UserPermissionsScalarFieldEnum = (typeof UserPermissionsScalarFieldEnum)[keyof typeof UserPermissionsScalarFieldEnum]


  export const OtpScalarFieldEnum: {
    id: 'id',
    user_id: 'user_id',
    otp: 'otp',
    purpose: 'purpose',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type OtpScalarFieldEnum = (typeof OtpScalarFieldEnum)[keyof typeof OtpScalarFieldEnum]


  export const LanguageScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    name_in_english: 'name_in_english',
    flag: 'flag',
    code: 'code',
    rtl: 'rtl',
    description: 'description',
    status_id: 'status_id',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type LanguageScalarFieldEnum = (typeof LanguageScalarFieldEnum)[keyof typeof LanguageScalarFieldEnum]


  export const LanguageContentScalarFieldEnum: {
    id: 'id',
    language_id: 'language_id',
    key_content: 'key_content',
    values: 'values',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type LanguageContentScalarFieldEnum = (typeof LanguageContentScalarFieldEnum)[keyof typeof LanguageContentScalarFieldEnum]


  export const MenusScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    slug: 'slug',
    description: 'description',
    menu_type: 'menu_type',
    status_id: 'status_id',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type MenusScalarFieldEnum = (typeof MenusScalarFieldEnum)[keyof typeof MenusScalarFieldEnum]


  export const MenuItemsScalarFieldEnum: {
    id: 'id',
    menu_id: 'menu_id',
    name: 'name',
    target: 'target',
    parent_id: 'parent_id',
    permission_id: 'permission_id',
    entity_id: 'entity_id',
    link_type: 'link_type',
    order_no: 'order_no',
    menu_img: 'menu_img',
    short_cut_keys: 'short_cut_keys',
    status_id: 'status_id',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type MenuItemsScalarFieldEnum = (typeof MenuItemsScalarFieldEnum)[keyof typeof MenuItemsScalarFieldEnum]


  export const ActionTypeScalarFieldEnum: {
    id: 'id',
    name: 'name',
    description: 'description',
    company_id: 'company_id'
  };

  export type ActionTypeScalarFieldEnum = (typeof ActionTypeScalarFieldEnum)[keyof typeof ActionTypeScalarFieldEnum]


  export const EntityTypeScalarFieldEnum: {
    id: 'id',
    name: 'name',
    slug: 'slug',
    description: 'description',
    company_id: 'company_id'
  };

  export type EntityTypeScalarFieldEnum = (typeof EntityTypeScalarFieldEnum)[keyof typeof EntityTypeScalarFieldEnum]


  export const WizardGroupScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    slug: 'slug',
    description: 'description',
    status_id: 'status_id',
    created_at: 'created_at',
    company_id: 'company_id'
  };

  export type WizardGroupScalarFieldEnum = (typeof WizardGroupScalarFieldEnum)[keyof typeof WizardGroupScalarFieldEnum]


  export const WizardTypeScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    description: 'description',
    company_id: 'company_id'
  };

  export type WizardTypeScalarFieldEnum = (typeof WizardTypeScalarFieldEnum)[keyof typeof WizardTypeScalarFieldEnum]


  export const MasterEntityScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    entity_name: 'entity_name',
    entity_type: 'entity_type',
    primary_table: 'primary_table',
    is_admin_module: 'is_admin_module',
    associated_tables: 'associated_tables',
    query_information: 'query_information',
    form_information: 'form_information',
    add_query_information: 'add_query_information',
    edit_query_information: 'edit_query_information',
    preset_query_information: 'preset_query_information',
    static_page_content: 'static_page_content',
    export_template_id: 'export_template_id',
    dashboard_wizard_group_id: 'dashboard_wizard_group_id',
    dashboard_wizard_type: 'dashboard_wizard_type',
    dashboard_wizard_rows: 'dashboard_wizard_rows',
    dashboard_wizard_columns: 'dashboard_wizard_columns',
    dashboard_wizard_order_no: 'dashboard_wizard_order_no',
    dashboard_wizard_options: 'dashboard_wizard_options',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at',
    deleted_at: 'deleted_at'
  };

  export type MasterEntityScalarFieldEnum = (typeof MasterEntityScalarFieldEnum)[keyof typeof MasterEntityScalarFieldEnum]


  export const MasterEntityLineItemScalarFieldEnum: {
    id: 'id',
    master_grid_id: 'master_grid_id',
    field_name: 'field_name',
    display_name: 'display_name',
    order_no: 'order_no',
    is_grid_column: 'is_grid_column',
    is_searchable: 'is_searchable',
    clause_type: 'clause_type',
    is_sortable: 'is_sortable',
    field_type_id: 'field_type_id',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type MasterEntityLineItemScalarFieldEnum = (typeof MasterEntityLineItemScalarFieldEnum)[keyof typeof MasterEntityLineItemScalarFieldEnum]


  export const FieldTypeScalarFieldEnum: {
    id: 'id',
    field_type: 'field_type',
    company_id: 'company_id',
    status_id: 'status_id',
    created_at: 'created_at'
  };

  export type FieldTypeScalarFieldEnum = (typeof FieldTypeScalarFieldEnum)[keyof typeof FieldTypeScalarFieldEnum]


  export const MenuTypeScalarFieldEnum: {
    id: 'id',
    name: 'name',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type MenuTypeScalarFieldEnum = (typeof MenuTypeScalarFieldEnum)[keyof typeof MenuTypeScalarFieldEnum]


  export const EmailTemplateProcessScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    slug: 'slug',
    query_information: 'query_information',
    status_id: 'status_id',
    company_id: 'company_id'
  };

  export type EmailTemplateProcessScalarFieldEnum = (typeof EmailTemplateProcessScalarFieldEnum)[keyof typeof EmailTemplateProcessScalarFieldEnum]


  export const EmailTemplateTagScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    slug: 'slug',
    name: 'name',
    description: 'description',
    status_id: 'status_id',
    company_id: 'company_id'
  };

  export type EmailTemplateTagScalarFieldEnum = (typeof EmailTemplateTagScalarFieldEnum)[keyof typeof EmailTemplateTagScalarFieldEnum]


  export const EmailTemplateRecipientTagScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    slug: 'slug',
    name: 'name',
    description: 'description',
    query_information: 'query_information',
    status_id: 'status_id',
    company_id: 'company_id'
  };

  export type EmailTemplateRecipientTagScalarFieldEnum = (typeof EmailTemplateRecipientTagScalarFieldEnum)[keyof typeof EmailTemplateRecipientTagScalarFieldEnum]


  export const EmailTemplateProcessTagsMappingScalarFieldEnum: {
    email_template_process_id: 'email_template_process_id',
    email_template_tag_id: 'email_template_tag_id',
    company_id: 'company_id'
  };

  export type EmailTemplateProcessTagsMappingScalarFieldEnum = (typeof EmailTemplateProcessTagsMappingScalarFieldEnum)[keyof typeof EmailTemplateProcessTagsMappingScalarFieldEnum]


  export const EmailTemplateScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    slug: 'slug',
    name: 'name',
    subject: 'subject',
    template_body: 'template_body',
    email_template_process_id: 'email_template_process_id',
    status_id: 'status_id',
    created_at: 'created_at',
    created_by: 'created_by',
    updated_at: 'updated_at',
    updated_by: 'updated_by',
    deleted_at: 'deleted_at',
    deleted_by: 'deleted_by',
    company_id: 'company_id'
  };

  export type EmailTemplateScalarFieldEnum = (typeof EmailTemplateScalarFieldEnum)[keyof typeof EmailTemplateScalarFieldEnum]


  export const EmailTemplateAssignmentScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    email_template_process_id: 'email_template_process_id',
    template_id: 'template_id',
    recipient_type: 'recipient_type',
    email_to: 'email_to',
    mail_cc: 'mail_cc',
    mail_bcc: 'mail_bcc',
    company_id: 'company_id',
    created_at: 'created_at',
    created_by: 'created_by'
  };

  export type EmailTemplateAssignmentScalarFieldEnum = (typeof EmailTemplateAssignmentScalarFieldEnum)[keyof typeof EmailTemplateAssignmentScalarFieldEnum]


  export const EmailProcessJobScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    email_template_process_slug: 'email_template_process_slug',
    unique_id: 'unique_id',
    user_id: 'user_id',
    prefill_data: 'prefill_data',
    company_id: 'company_id',
    status_id: 'status_id',
    created_at: 'created_at',
    created_by: 'created_by'
  };

  export type EmailProcessJobScalarFieldEnum = (typeof EmailProcessJobScalarFieldEnum)[keyof typeof EmailProcessJobScalarFieldEnum]


  export const NotificationJobScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    process_slug: 'process_slug',
    notification_to: 'notification_to',
    notification_subject: 'notification_subject',
    notification_content: 'notification_content',
    notification_cc: 'notification_cc',
    notification_bcc: 'notification_bcc',
    notification_type_id: 'notification_type_id',
    notification_status_id: 'notification_status_id',
    company_id: 'company_id',
    status_id: 'status_id',
    created_at: 'created_at',
    created_by: 'created_by',
    sent_at: 'sent_at',
    read_at: 'read_at'
  };

  export type NotificationJobScalarFieldEnum = (typeof NotificationJobScalarFieldEnum)[keyof typeof NotificationJobScalarFieldEnum]


  export const ImportTemplateScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    slug: 'slug',
    description: 'description',
    max_row_count: 'max_row_count',
    header_row: 'header_row',
    data_start_row: 'data_start_row',
    data_end_row: 'data_end_row',
    ignore_error_rows: 'ignore_error_rows',
    is_admin_module: 'is_admin_module',
    job_type: 'job_type',
    batch_process_count: 'batch_process_count',
    status_id: 'status_id',
    company_id: 'company_id',
    created_by: 'created_by',
    created_at: 'created_at',
    updated_by: 'updated_by',
    updated_at: 'updated_at',
    deleted_by: 'deleted_by',
    deleted_at: 'deleted_at'
  };

  export type ImportTemplateScalarFieldEnum = (typeof ImportTemplateScalarFieldEnum)[keyof typeof ImportTemplateScalarFieldEnum]


  export const ImportTemplateLineItemScalarFieldEnum: {
    id: 'id',
    import_template_id: 'import_template_id',
    field_name: 'field_name',
    display_name: 'display_name',
    field_table: 'field_table',
    order_no: 'order_no',
    width: 'width',
    default_value: 'default_value',
    check_reg_exp: 'check_reg_exp',
    is_nullable: 'is_nullable',
    is_unique: 'is_unique',
    is_foreign: 'is_foreign',
    unique_query: 'unique_query',
    foreign_query: 'foreign_query',
    is_enum: 'is_enum',
    is_multiple: 'is_multiple',
    enum_values: 'enum_values',
    foreign_table: 'foreign_table',
    foreign_column: 'foreign_column',
    foreign_can_create: 'foreign_can_create',
    is_individual: 'is_individual',
    individual_column: 'individual_column',
    field_type_id: 'field_type_id',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type ImportTemplateLineItemScalarFieldEnum = (typeof ImportTemplateLineItemScalarFieldEnum)[keyof typeof ImportTemplateLineItemScalarFieldEnum]


  export const ImportTemplateQueriesScalarFieldEnum: {
    id: 'id',
    import_template_id: 'import_template_id',
    query_string: 'query_string',
    query_name: 'query_name',
    allow_multiple: 'allow_multiple',
    is_individual: 'is_individual',
    before_lineitems: 'before_lineitems',
    order_no: 'order_no',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type ImportTemplateQueriesScalarFieldEnum = (typeof ImportTemplateQueriesScalarFieldEnum)[keyof typeof ImportTemplateQueriesScalarFieldEnum]


  export const ImportJobScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    description: 'description',
    sequence_number: 'sequence_number',
    header_details: 'header_details',
    table_config: 'table_config',
    total_rows: 'total_rows',
    completed_rows: 'completed_rows',
    error_rows: 'error_rows',
    batch_process_count: 'batch_process_count',
    job_status: 'job_status',
    last_processed_row_id: 'last_processed_row_id',
    status_id: 'status_id',
    company_id: 'company_id',
    created_by: 'created_by',
    created_at: 'created_at',
    updated_by: 'updated_by',
    updated_at: 'updated_at',
    deleted_by: 'deleted_by',
    deleted_at: 'deleted_at'
  };

  export type ImportJobScalarFieldEnum = (typeof ImportJobScalarFieldEnum)[keyof typeof ImportJobScalarFieldEnum]


  export const ImportJobLineItemScalarFieldEnum: {
    id: 'id',
    import_job_id: 'import_job_id',
    row_object: 'row_object',
    job_status: 'job_status',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type ImportJobLineItemScalarFieldEnum = (typeof ImportJobLineItemScalarFieldEnum)[keyof typeof ImportJobLineItemScalarFieldEnum]


  export const ExportTemplateScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    name: 'name',
    slug: 'slug',
    description: 'description',
    max_row_count: 'max_row_count',
    header_row: 'header_row',
    data_start_row: 'data_start_row',
    data_end_row: 'data_end_row',
    data_filepath: 'data_filepath',
    status_id: 'status_id',
    company_id: 'company_id',
    created_by: 'created_by',
    created_at: 'created_at',
    updated_by: 'updated_by',
    updated_at: 'updated_at',
    deleted_by: 'deleted_by',
    deleted_at: 'deleted_at'
  };

  export type ExportTemplateScalarFieldEnum = (typeof ExportTemplateScalarFieldEnum)[keyof typeof ExportTemplateScalarFieldEnum]


  export const ExportTemplateLineItemScalarFieldEnum: {
    id: 'id',
    export_template_id: 'export_template_id',
    field_name: 'field_name',
    display_name: 'display_name',
    field_table: 'field_table',
    order_no: 'order_no',
    default_value: 'default_value',
    column_name: 'column_name',
    is_individual: 'is_individual',
    individual_column: 'individual_column',
    field_type_id: 'field_type_id',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type ExportTemplateLineItemScalarFieldEnum = (typeof ExportTemplateLineItemScalarFieldEnum)[keyof typeof ExportTemplateLineItemScalarFieldEnum]


  export const ExportTemplateQueriesScalarFieldEnum: {
    id: 'id',
    export_template_id: 'export_template_id',
    query_string: 'query_string',
    query_name: 'query_name',
    query_procedure: 'query_procedure',
    is_individual: 'is_individual',
    order_no: 'order_no',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type ExportTemplateQueriesScalarFieldEnum = (typeof ExportTemplateQueriesScalarFieldEnum)[keyof typeof ExportTemplateQueriesScalarFieldEnum]


  export const StatusScalarFieldEnum: {
    id: 'id',
    name: 'name',
    slug: 'slug',
    description: 'description',
    status_id: 'status_id'
  };

  export type StatusScalarFieldEnum = (typeof StatusScalarFieldEnum)[keyof typeof StatusScalarFieldEnum]


  export const CategoryTypesScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    category_type_id: 'category_type_id',
    name: 'name',
    description: 'description',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type CategoryTypesScalarFieldEnum = (typeof CategoryTypesScalarFieldEnum)[keyof typeof CategoryTypesScalarFieldEnum]


  export const CategoriesScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    category_type_id: 'category_type_id',
    category_id: 'category_id',
    parent_id: 'parent_id',
    name: 'name',
    description: 'description',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type CategoriesScalarFieldEnum = (typeof CategoriesScalarFieldEnum)[keyof typeof CategoriesScalarFieldEnum]


  export const ConfigurationsScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    order_no: 'order_no',
    config_key: 'config_key',
    category_id: 'category_id',
    config_value: 'config_value',
    config_file_value: 'config_file_value',
    config_value_type: 'config_value_type',
    config_field_type: 'config_field_type',
    display_config: 'display_config',
    company_id: 'company_id',
    created_by: 'created_by',
    updated_by: 'updated_by',
    deleted_by: 'deleted_by',
    created_at: 'created_at',
    updated_at: 'updated_at',
    deleted_at: 'deleted_at'
  };

  export type ConfigurationsScalarFieldEnum = (typeof ConfigurationsScalarFieldEnum)[keyof typeof ConfigurationsScalarFieldEnum]


  export const FileUploadLogScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    doc_name: 'doc_name',
    org_name: 'org_name',
    extension: 'extension',
    description: 'description',
    status_id: 'status_id',
    company_id: 'company_id',
    created_at: 'created_at'
  };

  export type FileUploadLogScalarFieldEnum = (typeof FileUploadLogScalarFieldEnum)[keyof typeof FileUploadLogScalarFieldEnum]


  export const DataTransferQueriesScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    select_query: 'select_query',
    insert_query: 'insert_query',
    transfer_type: 'transfer_type',
    job_name: 'job_name',
    destination_table: 'destination_table',
    clear_destination_table: 'clear_destination_table',
    execution_order: 'execution_order',
    command_type: 'command_type',
    status_id: 'status_id',
    created_by: 'created_by',
    created_at: 'created_at',
    company_id: 'company_id'
  };

  export type DataTransferQueriesScalarFieldEnum = (typeof DataTransferQueriesScalarFieldEnum)[keyof typeof DataTransferQueriesScalarFieldEnum]


  export const DeviceRegistrationScalarFieldEnum: {
    id: 'id',
    uuid: 'uuid',
    company_id: 'company_id',
    device_name: 'device_name',
    device_unique_id: 'device_unique_id',
    user_id: 'user_id',
    status_id: 'status_id',
    created_by: 'created_by',
    created_at: 'created_at',
    updated_by: 'updated_by',
    updated_at: 'updated_at',
    deleted_by: 'deleted_by',
    deleted_at: 'deleted_at'
  };

  export type DeviceRegistrationScalarFieldEnum = (typeof DeviceRegistrationScalarFieldEnum)[keyof typeof DeviceRegistrationScalarFieldEnum]


  export const SortOrder: {
    asc: 'asc',
    desc: 'desc'
  };

  export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]


  export const NullsOrder: {
    first: 'first',
    last: 'last'
  };

  export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]


  /**
   * Field references 
   */


  /**
   * Reference to a field of type 'Int'
   */
  export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
    


  /**
   * Reference to a field of type 'String'
   */
  export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
    


  /**
   * Reference to a field of type 'Boolean'
   */
  export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
    


  /**
   * Reference to a field of type 'DateTime'
   */
  export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
    


  /**
   * Reference to a field of type 'BigInt'
   */
  export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
    


  /**
   * Reference to a field of type 'Decimal'
   */
  export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Decimal'>
    


  /**
   * Reference to a field of type 'Float'
   */
  export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
    
  /**
   * Deep Input Types
   */


  export type UserWhereInput = {
    AND?: UserWhereInput | UserWhereInput[]
    OR?: UserWhereInput[]
    NOT?: UserWhereInput | UserWhereInput[]
    id?: IntFilter<"User"> | number
    uuid?: StringFilter<"User"> | string
    username?: StringFilter<"User"> | string
    email?: StringFilter<"User"> | string
    email_verified?: BoolFilter<"User"> | boolean
    password?: StringNullableFilter<"User"> | string | null
    status_id?: IntFilter<"User"> | number
    role?: StringFilter<"User"> | string
    company_id?: IntFilter<"User"> | number
    created_by?: IntNullableFilter<"User"> | number | null
    updated_by?: IntNullableFilter<"User"> | number | null
    deleted_by?: IntNullableFilter<"User"> | number | null
    created_at?: DateTimeFilter<"User"> | Date | string
    updated_at?: DateTimeFilter<"User"> | Date | string
    deleted_at?: DateTimeNullableFilter<"User"> | Date | string | null
    last_login?: DateTimeNullableFilter<"User"> | Date | string | null
    last_login_device?: StringNullableFilter<"User"> | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    user_detail?: XOR<UserDetailNullableRelationFilter, UserDetailWhereInput> | null
    request_logs?: RequestLogListRelationFilter
    roles?: UserRolesListRelationFilter
    permissions?: UserPermissionsListRelationFilter
    otps?: OtpListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    created_users?: UserListRelationFilter
    updated_users?: UserListRelationFilter
    deleted_users?: UserListRelationFilter
    created_user_details?: UserDetailListRelationFilter
    updated_user_details?: UserDetailListRelationFilter
    deleted_user_details?: UserDetailListRelationFilter
    created_roles?: RoleListRelationFilter
    updated_roles?: RoleListRelationFilter
    deleted_roles?: RoleListRelationFilter
    created_languages?: LanguageListRelationFilter
    updated_languages?: LanguageListRelationFilter
    deleted_languages?: LanguageListRelationFilter
    created_menus?: MenusListRelationFilter
    updated_menus?: MenusListRelationFilter
    deleted_menus?: MenusListRelationFilter
    created_menu_items?: MenuItemsListRelationFilter
    updated_menu_items?: MenuItemsListRelationFilter
    deleted_menu_items?: MenuItemsListRelationFilter
    created_email_templates?: EmailTemplateListRelationFilter
    updated_email_templates?: EmailTemplateListRelationFilter
    deleted_email_templates?: EmailTemplateListRelationFilter
    created_email_template_assignments?: EmailTemplateAssignmentListRelationFilter
    created_email_process_jobs?: EmailProcessJobListRelationFilter
    created_notification_job?: NotificationJobListRelationFilter
    created_import_templates?: ImportTemplateListRelationFilter
    updated_import_templates?: ImportTemplateListRelationFilter
    deleted_import_templates?: ImportTemplateListRelationFilter
    created_export_templates?: ExportTemplateListRelationFilter
    updated_export_templates?: ExportTemplateListRelationFilter
    deleted_export_templates?: ExportTemplateListRelationFilter
    created_departments?: DepartmentListRelationFilter
    head_departments?: DepartmentListRelationFilter
    updated_departments?: DepartmentListRelationFilter
    deleted_departments?: DepartmentListRelationFilter
    created_designations?: DesignationListRelationFilter
    updated_designations?: DesignationListRelationFilter
    deleted_designations?: DesignationListRelationFilter
    audit_logs?: AuditLogListRelationFilter
    created_category_types?: CategoryTypesListRelationFilter
    updated_category_types?: CategoryTypesListRelationFilter
    deleted_category_types?: CategoryTypesListRelationFilter
    created_categories?: CategoriesListRelationFilter
    updated_categories?: CategoriesListRelationFilter
    deleted_categories?: CategoriesListRelationFilter
    created_configurations?: ConfigurationsListRelationFilter
    updated_configurations?: ConfigurationsListRelationFilter
    deleted_configurations?: ConfigurationsListRelationFilter
    created_fin_years?: FinancialYearListRelationFilter
    updated_fin_years?: FinancialYearListRelationFilter
    deleted_fin_years?: FinancialYearListRelationFilter
    created_doc_sequences?: DocumentSequenceListRelationFilter
    updated_doc_sequences?: DocumentSequenceListRelationFilter
    deleted_doc_sequences?: DocumentSequenceListRelationFilter
    created_device_registration?: DeviceRegistrationListRelationFilter
    updated_device_registration?: DeviceRegistrationListRelationFilter
    deleted_device_registration?: DeviceRegistrationListRelationFilter
    DeviceRegistration?: DeviceRegistrationListRelationFilter
    created_import_job?: ImportJobListRelationFilter
    updated_import_job?: ImportJobListRelationFilter
    deleted_import_job?: ImportJobListRelationFilter
  }

  export type UserOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    username?: SortOrder
    email?: SortOrder
    email_verified?: SortOrder
    password?: SortOrderInput | SortOrder
    status_id?: SortOrder
    role?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    last_login?: SortOrderInput | SortOrder
    last_login_device?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    user_detail?: UserDetailOrderByWithRelationInput
    request_logs?: RequestLogOrderByRelationAggregateInput
    roles?: UserRolesOrderByRelationAggregateInput
    permissions?: UserPermissionsOrderByRelationAggregateInput
    otps?: OtpOrderByRelationAggregateInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
    created_users?: UserOrderByRelationAggregateInput
    updated_users?: UserOrderByRelationAggregateInput
    deleted_users?: UserOrderByRelationAggregateInput
    created_user_details?: UserDetailOrderByRelationAggregateInput
    updated_user_details?: UserDetailOrderByRelationAggregateInput
    deleted_user_details?: UserDetailOrderByRelationAggregateInput
    created_roles?: RoleOrderByRelationAggregateInput
    updated_roles?: RoleOrderByRelationAggregateInput
    deleted_roles?: RoleOrderByRelationAggregateInput
    created_languages?: LanguageOrderByRelationAggregateInput
    updated_languages?: LanguageOrderByRelationAggregateInput
    deleted_languages?: LanguageOrderByRelationAggregateInput
    created_menus?: MenusOrderByRelationAggregateInput
    updated_menus?: MenusOrderByRelationAggregateInput
    deleted_menus?: MenusOrderByRelationAggregateInput
    created_menu_items?: MenuItemsOrderByRelationAggregateInput
    updated_menu_items?: MenuItemsOrderByRelationAggregateInput
    deleted_menu_items?: MenuItemsOrderByRelationAggregateInput
    created_email_templates?: EmailTemplateOrderByRelationAggregateInput
    updated_email_templates?: EmailTemplateOrderByRelationAggregateInput
    deleted_email_templates?: EmailTemplateOrderByRelationAggregateInput
    created_email_template_assignments?: EmailTemplateAssignmentOrderByRelationAggregateInput
    created_email_process_jobs?: EmailProcessJobOrderByRelationAggregateInput
    created_notification_job?: NotificationJobOrderByRelationAggregateInput
    created_import_templates?: ImportTemplateOrderByRelationAggregateInput
    updated_import_templates?: ImportTemplateOrderByRelationAggregateInput
    deleted_import_templates?: ImportTemplateOrderByRelationAggregateInput
    created_export_templates?: ExportTemplateOrderByRelationAggregateInput
    updated_export_templates?: ExportTemplateOrderByRelationAggregateInput
    deleted_export_templates?: ExportTemplateOrderByRelationAggregateInput
    created_departments?: DepartmentOrderByRelationAggregateInput
    head_departments?: DepartmentOrderByRelationAggregateInput
    updated_departments?: DepartmentOrderByRelationAggregateInput
    deleted_departments?: DepartmentOrderByRelationAggregateInput
    created_designations?: DesignationOrderByRelationAggregateInput
    updated_designations?: DesignationOrderByRelationAggregateInput
    deleted_designations?: DesignationOrderByRelationAggregateInput
    audit_logs?: AuditLogOrderByRelationAggregateInput
    created_category_types?: CategoryTypesOrderByRelationAggregateInput
    updated_category_types?: CategoryTypesOrderByRelationAggregateInput
    deleted_category_types?: CategoryTypesOrderByRelationAggregateInput
    created_categories?: CategoriesOrderByRelationAggregateInput
    updated_categories?: CategoriesOrderByRelationAggregateInput
    deleted_categories?: CategoriesOrderByRelationAggregateInput
    created_configurations?: ConfigurationsOrderByRelationAggregateInput
    updated_configurations?: ConfigurationsOrderByRelationAggregateInput
    deleted_configurations?: ConfigurationsOrderByRelationAggregateInput
    created_fin_years?: FinancialYearOrderByRelationAggregateInput
    updated_fin_years?: FinancialYearOrderByRelationAggregateInput
    deleted_fin_years?: FinancialYearOrderByRelationAggregateInput
    created_doc_sequences?: DocumentSequenceOrderByRelationAggregateInput
    updated_doc_sequences?: DocumentSequenceOrderByRelationAggregateInput
    deleted_doc_sequences?: DocumentSequenceOrderByRelationAggregateInput
    created_device_registration?: DeviceRegistrationOrderByRelationAggregateInput
    updated_device_registration?: DeviceRegistrationOrderByRelationAggregateInput
    deleted_device_registration?: DeviceRegistrationOrderByRelationAggregateInput
    DeviceRegistration?: DeviceRegistrationOrderByRelationAggregateInput
    created_import_job?: ImportJobOrderByRelationAggregateInput
    updated_import_job?: ImportJobOrderByRelationAggregateInput
    deleted_import_job?: ImportJobOrderByRelationAggregateInput
  }

  export type UserWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_uuid?: UserCompany_idUuidCompoundUniqueInput
    company_id_email_role?: UserCompany_idEmailRoleCompoundUniqueInput
    company_id_username?: UserCompany_idUsernameCompoundUniqueInput
    company_id_id?: UserCompany_idIdCompoundUniqueInput
    AND?: UserWhereInput | UserWhereInput[]
    OR?: UserWhereInput[]
    NOT?: UserWhereInput | UserWhereInput[]
    uuid?: StringFilter<"User"> | string
    username?: StringFilter<"User"> | string
    email?: StringFilter<"User"> | string
    email_verified?: BoolFilter<"User"> | boolean
    password?: StringNullableFilter<"User"> | string | null
    status_id?: IntFilter<"User"> | number
    role?: StringFilter<"User"> | string
    company_id?: IntFilter<"User"> | number
    created_by?: IntNullableFilter<"User"> | number | null
    updated_by?: IntNullableFilter<"User"> | number | null
    deleted_by?: IntNullableFilter<"User"> | number | null
    created_at?: DateTimeFilter<"User"> | Date | string
    updated_at?: DateTimeFilter<"User"> | Date | string
    deleted_at?: DateTimeNullableFilter<"User"> | Date | string | null
    last_login?: DateTimeNullableFilter<"User"> | Date | string | null
    last_login_device?: StringNullableFilter<"User"> | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    user_detail?: XOR<UserDetailNullableRelationFilter, UserDetailWhereInput> | null
    request_logs?: RequestLogListRelationFilter
    roles?: UserRolesListRelationFilter
    permissions?: UserPermissionsListRelationFilter
    otps?: OtpListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    created_users?: UserListRelationFilter
    updated_users?: UserListRelationFilter
    deleted_users?: UserListRelationFilter
    created_user_details?: UserDetailListRelationFilter
    updated_user_details?: UserDetailListRelationFilter
    deleted_user_details?: UserDetailListRelationFilter
    created_roles?: RoleListRelationFilter
    updated_roles?: RoleListRelationFilter
    deleted_roles?: RoleListRelationFilter
    created_languages?: LanguageListRelationFilter
    updated_languages?: LanguageListRelationFilter
    deleted_languages?: LanguageListRelationFilter
    created_menus?: MenusListRelationFilter
    updated_menus?: MenusListRelationFilter
    deleted_menus?: MenusListRelationFilter
    created_menu_items?: MenuItemsListRelationFilter
    updated_menu_items?: MenuItemsListRelationFilter
    deleted_menu_items?: MenuItemsListRelationFilter
    created_email_templates?: EmailTemplateListRelationFilter
    updated_email_templates?: EmailTemplateListRelationFilter
    deleted_email_templates?: EmailTemplateListRelationFilter
    created_email_template_assignments?: EmailTemplateAssignmentListRelationFilter
    created_email_process_jobs?: EmailProcessJobListRelationFilter
    created_notification_job?: NotificationJobListRelationFilter
    created_import_templates?: ImportTemplateListRelationFilter
    updated_import_templates?: ImportTemplateListRelationFilter
    deleted_import_templates?: ImportTemplateListRelationFilter
    created_export_templates?: ExportTemplateListRelationFilter
    updated_export_templates?: ExportTemplateListRelationFilter
    deleted_export_templates?: ExportTemplateListRelationFilter
    created_departments?: DepartmentListRelationFilter
    head_departments?: DepartmentListRelationFilter
    updated_departments?: DepartmentListRelationFilter
    deleted_departments?: DepartmentListRelationFilter
    created_designations?: DesignationListRelationFilter
    updated_designations?: DesignationListRelationFilter
    deleted_designations?: DesignationListRelationFilter
    audit_logs?: AuditLogListRelationFilter
    created_category_types?: CategoryTypesListRelationFilter
    updated_category_types?: CategoryTypesListRelationFilter
    deleted_category_types?: CategoryTypesListRelationFilter
    created_categories?: CategoriesListRelationFilter
    updated_categories?: CategoriesListRelationFilter
    deleted_categories?: CategoriesListRelationFilter
    created_configurations?: ConfigurationsListRelationFilter
    updated_configurations?: ConfigurationsListRelationFilter
    deleted_configurations?: ConfigurationsListRelationFilter
    created_fin_years?: FinancialYearListRelationFilter
    updated_fin_years?: FinancialYearListRelationFilter
    deleted_fin_years?: FinancialYearListRelationFilter
    created_doc_sequences?: DocumentSequenceListRelationFilter
    updated_doc_sequences?: DocumentSequenceListRelationFilter
    deleted_doc_sequences?: DocumentSequenceListRelationFilter
    created_device_registration?: DeviceRegistrationListRelationFilter
    updated_device_registration?: DeviceRegistrationListRelationFilter
    deleted_device_registration?: DeviceRegistrationListRelationFilter
    DeviceRegistration?: DeviceRegistrationListRelationFilter
    created_import_job?: ImportJobListRelationFilter
    updated_import_job?: ImportJobListRelationFilter
    deleted_import_job?: ImportJobListRelationFilter
  }, "id" | "company_id_uuid" | "company_id_email_role" | "company_id_username" | "company_id_id">

  export type UserOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    username?: SortOrder
    email?: SortOrder
    email_verified?: SortOrder
    password?: SortOrderInput | SortOrder
    status_id?: SortOrder
    role?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    last_login?: SortOrderInput | SortOrder
    last_login_device?: SortOrderInput | 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
    uuid?: StringWithAggregatesFilter<"User"> | string
    username?: StringWithAggregatesFilter<"User"> | string
    email?: StringWithAggregatesFilter<"User"> | string
    email_verified?: BoolWithAggregatesFilter<"User"> | boolean
    password?: StringNullableWithAggregatesFilter<"User"> | string | null
    status_id?: IntWithAggregatesFilter<"User"> | number
    role?: StringWithAggregatesFilter<"User"> | string
    company_id?: IntWithAggregatesFilter<"User"> | number
    created_by?: IntNullableWithAggregatesFilter<"User"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"User"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"User"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"User"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"User"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
    last_login?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
    last_login_device?: StringNullableWithAggregatesFilter<"User"> | string | null
  }

  export type UserDetailWhereInput = {
    AND?: UserDetailWhereInput | UserDetailWhereInput[]
    OR?: UserDetailWhereInput[]
    NOT?: UserDetailWhereInput | UserDetailWhereInput[]
    id?: IntFilter<"UserDetail"> | number
    user_id?: IntFilter<"UserDetail"> | number
    code?: StringFilter<"UserDetail"> | string
    first_name?: StringFilter<"UserDetail"> | string
    last_name?: StringNullableFilter<"UserDetail"> | string | null
    designation_id?: IntNullableFilter<"UserDetail"> | number | null
    department_id?: IntNullableFilter<"UserDetail"> | number | null
    profile_pic?: StringNullableFilter<"UserDetail"> | string | null
    dob?: DateTimeNullableFilter<"UserDetail"> | Date | string | null
    country_code?: StringNullableFilter<"UserDetail"> | string | null
    phone_number?: StringNullableFilter<"UserDetail"> | string | null
    gender?: StringFilter<"UserDetail"> | string
    user_time_zone?: StringNullableFilter<"UserDetail"> | string | null
    address?: StringNullableFilter<"UserDetail"> | string | null
    culture?: StringNullableFilter<"UserDetail"> | string | null
    company_id?: IntFilter<"UserDetail"> | number
    created_by?: IntNullableFilter<"UserDetail"> | number | null
    updated_by?: IntNullableFilter<"UserDetail"> | number | null
    deleted_by?: IntNullableFilter<"UserDetail"> | number | null
    created_at?: DateTimeFilter<"UserDetail"> | Date | string
    updated_at?: DateTimeFilter<"UserDetail"> | Date | string
    deleted_at?: DateTimeNullableFilter<"UserDetail"> | Date | string | null
    designation?: XOR<DesignationNullableRelationFilter, DesignationWhereInput> | null
    department?: XOR<DepartmentNullableRelationFilter, DepartmentWhereInput> | null
    user?: XOR<UserRelationFilter, UserWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type UserDetailOrderByWithRelationInput = {
    id?: SortOrder
    user_id?: SortOrder
    code?: SortOrder
    first_name?: SortOrder
    last_name?: SortOrderInput | SortOrder
    designation_id?: SortOrderInput | SortOrder
    department_id?: SortOrderInput | SortOrder
    profile_pic?: SortOrderInput | SortOrder
    dob?: SortOrderInput | SortOrder
    country_code?: SortOrderInput | SortOrder
    phone_number?: SortOrderInput | SortOrder
    gender?: SortOrder
    user_time_zone?: SortOrderInput | SortOrder
    address?: SortOrderInput | SortOrder
    culture?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    designation?: DesignationOrderByWithRelationInput
    department?: DepartmentOrderByWithRelationInput
    user?: UserOrderByWithRelationInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type UserDetailWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_user_id?: UserDetailCompany_idUser_idCompoundUniqueInput
    company_id_code?: UserDetailCompany_idCodeCompoundUniqueInput
    AND?: UserDetailWhereInput | UserDetailWhereInput[]
    OR?: UserDetailWhereInput[]
    NOT?: UserDetailWhereInput | UserDetailWhereInput[]
    user_id?: IntFilter<"UserDetail"> | number
    code?: StringFilter<"UserDetail"> | string
    first_name?: StringFilter<"UserDetail"> | string
    last_name?: StringNullableFilter<"UserDetail"> | string | null
    designation_id?: IntNullableFilter<"UserDetail"> | number | null
    department_id?: IntNullableFilter<"UserDetail"> | number | null
    profile_pic?: StringNullableFilter<"UserDetail"> | string | null
    dob?: DateTimeNullableFilter<"UserDetail"> | Date | string | null
    country_code?: StringNullableFilter<"UserDetail"> | string | null
    phone_number?: StringNullableFilter<"UserDetail"> | string | null
    gender?: StringFilter<"UserDetail"> | string
    user_time_zone?: StringNullableFilter<"UserDetail"> | string | null
    address?: StringNullableFilter<"UserDetail"> | string | null
    culture?: StringNullableFilter<"UserDetail"> | string | null
    company_id?: IntFilter<"UserDetail"> | number
    created_by?: IntNullableFilter<"UserDetail"> | number | null
    updated_by?: IntNullableFilter<"UserDetail"> | number | null
    deleted_by?: IntNullableFilter<"UserDetail"> | number | null
    created_at?: DateTimeFilter<"UserDetail"> | Date | string
    updated_at?: DateTimeFilter<"UserDetail"> | Date | string
    deleted_at?: DateTimeNullableFilter<"UserDetail"> | Date | string | null
    designation?: XOR<DesignationNullableRelationFilter, DesignationWhereInput> | null
    department?: XOR<DepartmentNullableRelationFilter, DepartmentWhereInput> | null
    user?: XOR<UserRelationFilter, UserWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_user_id" | "company_id_code">

  export type UserDetailOrderByWithAggregationInput = {
    id?: SortOrder
    user_id?: SortOrder
    code?: SortOrder
    first_name?: SortOrder
    last_name?: SortOrderInput | SortOrder
    designation_id?: SortOrderInput | SortOrder
    department_id?: SortOrderInput | SortOrder
    profile_pic?: SortOrderInput | SortOrder
    dob?: SortOrderInput | SortOrder
    country_code?: SortOrderInput | SortOrder
    phone_number?: SortOrderInput | SortOrder
    gender?: SortOrder
    user_time_zone?: SortOrderInput | SortOrder
    address?: SortOrderInput | SortOrder
    culture?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: UserDetailCountOrderByAggregateInput
    _avg?: UserDetailAvgOrderByAggregateInput
    _max?: UserDetailMaxOrderByAggregateInput
    _min?: UserDetailMinOrderByAggregateInput
    _sum?: UserDetailSumOrderByAggregateInput
  }

  export type UserDetailScalarWhereWithAggregatesInput = {
    AND?: UserDetailScalarWhereWithAggregatesInput | UserDetailScalarWhereWithAggregatesInput[]
    OR?: UserDetailScalarWhereWithAggregatesInput[]
    NOT?: UserDetailScalarWhereWithAggregatesInput | UserDetailScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"UserDetail"> | number
    user_id?: IntWithAggregatesFilter<"UserDetail"> | number
    code?: StringWithAggregatesFilter<"UserDetail"> | string
    first_name?: StringWithAggregatesFilter<"UserDetail"> | string
    last_name?: StringNullableWithAggregatesFilter<"UserDetail"> | string | null
    designation_id?: IntNullableWithAggregatesFilter<"UserDetail"> | number | null
    department_id?: IntNullableWithAggregatesFilter<"UserDetail"> | number | null
    profile_pic?: StringNullableWithAggregatesFilter<"UserDetail"> | string | null
    dob?: DateTimeNullableWithAggregatesFilter<"UserDetail"> | Date | string | null
    country_code?: StringNullableWithAggregatesFilter<"UserDetail"> | string | null
    phone_number?: StringNullableWithAggregatesFilter<"UserDetail"> | string | null
    gender?: StringWithAggregatesFilter<"UserDetail"> | string
    user_time_zone?: StringNullableWithAggregatesFilter<"UserDetail"> | string | null
    address?: StringNullableWithAggregatesFilter<"UserDetail"> | string | null
    culture?: StringNullableWithAggregatesFilter<"UserDetail"> | string | null
    company_id?: IntWithAggregatesFilter<"UserDetail"> | number
    created_by?: IntNullableWithAggregatesFilter<"UserDetail"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"UserDetail"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"UserDetail"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"UserDetail"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"UserDetail"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"UserDetail"> | Date | string | null
  }

  export type DesignationWhereInput = {
    AND?: DesignationWhereInput | DesignationWhereInput[]
    OR?: DesignationWhereInput[]
    NOT?: DesignationWhereInput | DesignationWhereInput[]
    id?: IntFilter<"Designation"> | number
    uuid?: StringFilter<"Designation"> | string
    code?: StringFilter<"Designation"> | string
    name?: StringFilter<"Designation"> | string
    description?: StringNullableFilter<"Designation"> | string | null
    status_id?: IntFilter<"Designation"> | number
    company_id?: IntFilter<"Designation"> | number
    created_by?: IntNullableFilter<"Designation"> | number | null
    updated_by?: IntNullableFilter<"Designation"> | number | null
    deleted_by?: IntNullableFilter<"Designation"> | number | null
    created_at?: DateTimeFilter<"Designation"> | Date | string
    updated_at?: DateTimeFilter<"Designation"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Designation"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    users?: UserDetailListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type DesignationOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    users?: UserDetailOrderByRelationAggregateInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type DesignationWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: DesignationCompany_idIdCompoundUniqueInput
    company_id_uuid?: DesignationCompany_idUuidCompoundUniqueInput
    company_id_code?: DesignationCompany_idCodeCompoundUniqueInput
    AND?: DesignationWhereInput | DesignationWhereInput[]
    OR?: DesignationWhereInput[]
    NOT?: DesignationWhereInput | DesignationWhereInput[]
    uuid?: StringFilter<"Designation"> | string
    code?: StringFilter<"Designation"> | string
    name?: StringFilter<"Designation"> | string
    description?: StringNullableFilter<"Designation"> | string | null
    status_id?: IntFilter<"Designation"> | number
    company_id?: IntFilter<"Designation"> | number
    created_by?: IntNullableFilter<"Designation"> | number | null
    updated_by?: IntNullableFilter<"Designation"> | number | null
    deleted_by?: IntNullableFilter<"Designation"> | number | null
    created_at?: DateTimeFilter<"Designation"> | Date | string
    updated_at?: DateTimeFilter<"Designation"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Designation"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    users?: UserDetailListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_uuid" | "company_id_code">

  export type DesignationOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: DesignationCountOrderByAggregateInput
    _avg?: DesignationAvgOrderByAggregateInput
    _max?: DesignationMaxOrderByAggregateInput
    _min?: DesignationMinOrderByAggregateInput
    _sum?: DesignationSumOrderByAggregateInput
  }

  export type DesignationScalarWhereWithAggregatesInput = {
    AND?: DesignationScalarWhereWithAggregatesInput | DesignationScalarWhereWithAggregatesInput[]
    OR?: DesignationScalarWhereWithAggregatesInput[]
    NOT?: DesignationScalarWhereWithAggregatesInput | DesignationScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Designation"> | number
    uuid?: StringWithAggregatesFilter<"Designation"> | string
    code?: StringWithAggregatesFilter<"Designation"> | string
    name?: StringWithAggregatesFilter<"Designation"> | string
    description?: StringNullableWithAggregatesFilter<"Designation"> | string | null
    status_id?: IntWithAggregatesFilter<"Designation"> | number
    company_id?: IntWithAggregatesFilter<"Designation"> | number
    created_by?: IntNullableWithAggregatesFilter<"Designation"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"Designation"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"Designation"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"Designation"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"Designation"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"Designation"> | Date | string | null
  }

  export type DepartmentWhereInput = {
    AND?: DepartmentWhereInput | DepartmentWhereInput[]
    OR?: DepartmentWhereInput[]
    NOT?: DepartmentWhereInput | DepartmentWhereInput[]
    id?: IntFilter<"Department"> | number
    uuid?: StringFilter<"Department"> | string
    code?: StringFilter<"Department"> | string
    name?: StringFilter<"Department"> | string
    description?: StringNullableFilter<"Department"> | string | null
    status_id?: IntFilter<"Department"> | number
    department_head_id?: IntNullableFilter<"Department"> | number | null
    company_id?: IntFilter<"Department"> | number
    created_by?: IntNullableFilter<"Department"> | number | null
    updated_by?: IntNullableFilter<"Department"> | number | null
    deleted_by?: IntNullableFilter<"Department"> | number | null
    created_at?: DateTimeFilter<"Department"> | Date | string
    updated_at?: DateTimeFilter<"Department"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Department"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    users?: UserDetailListRelationFilter
    department_head?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type DepartmentOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    department_head_id?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    users?: UserDetailOrderByRelationAggregateInput
    department_head?: UserOrderByWithRelationInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type DepartmentWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: DepartmentCompany_idIdCompoundUniqueInput
    company_id_uuid?: DepartmentCompany_idUuidCompoundUniqueInput
    company_id_code?: DepartmentCompany_idCodeCompoundUniqueInput
    AND?: DepartmentWhereInput | DepartmentWhereInput[]
    OR?: DepartmentWhereInput[]
    NOT?: DepartmentWhereInput | DepartmentWhereInput[]
    uuid?: StringFilter<"Department"> | string
    code?: StringFilter<"Department"> | string
    name?: StringFilter<"Department"> | string
    description?: StringNullableFilter<"Department"> | string | null
    status_id?: IntFilter<"Department"> | number
    department_head_id?: IntNullableFilter<"Department"> | number | null
    company_id?: IntFilter<"Department"> | number
    created_by?: IntNullableFilter<"Department"> | number | null
    updated_by?: IntNullableFilter<"Department"> | number | null
    deleted_by?: IntNullableFilter<"Department"> | number | null
    created_at?: DateTimeFilter<"Department"> | Date | string
    updated_at?: DateTimeFilter<"Department"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Department"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    users?: UserDetailListRelationFilter
    department_head?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_uuid" | "company_id_code">

  export type DepartmentOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    department_head_id?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: DepartmentCountOrderByAggregateInput
    _avg?: DepartmentAvgOrderByAggregateInput
    _max?: DepartmentMaxOrderByAggregateInput
    _min?: DepartmentMinOrderByAggregateInput
    _sum?: DepartmentSumOrderByAggregateInput
  }

  export type DepartmentScalarWhereWithAggregatesInput = {
    AND?: DepartmentScalarWhereWithAggregatesInput | DepartmentScalarWhereWithAggregatesInput[]
    OR?: DepartmentScalarWhereWithAggregatesInput[]
    NOT?: DepartmentScalarWhereWithAggregatesInput | DepartmentScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Department"> | number
    uuid?: StringWithAggregatesFilter<"Department"> | string
    code?: StringWithAggregatesFilter<"Department"> | string
    name?: StringWithAggregatesFilter<"Department"> | string
    description?: StringNullableWithAggregatesFilter<"Department"> | string | null
    status_id?: IntWithAggregatesFilter<"Department"> | number
    department_head_id?: IntNullableWithAggregatesFilter<"Department"> | number | null
    company_id?: IntWithAggregatesFilter<"Department"> | number
    created_by?: IntNullableWithAggregatesFilter<"Department"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"Department"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"Department"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"Department"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"Department"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"Department"> | Date | string | null
  }

  export type RequestLogWhereInput = {
    AND?: RequestLogWhereInput | RequestLogWhereInput[]
    OR?: RequestLogWhereInput[]
    NOT?: RequestLogWhereInput | RequestLogWhereInput[]
    id?: BigIntFilter<"RequestLog"> | bigint | number
    uuid?: StringFilter<"RequestLog"> | string
    user_id?: IntNullableFilter<"RequestLog"> | number | null
    req_method?: StringNullableFilter<"RequestLog"> | string | null
    req_url?: StringNullableFilter<"RequestLog"> | string | null
    req_body?: StringNullableFilter<"RequestLog"> | string | null
    res_status?: BoolFilter<"RequestLog"> | boolean
    res_code?: IntFilter<"RequestLog"> | number
    res_message?: StringNullableFilter<"RequestLog"> | string | null
    req_response?: StringNullableFilter<"RequestLog"> | string | null
    req_headers?: StringNullableFilter<"RequestLog"> | string | null
    req_ip?: StringNullableFilter<"RequestLog"> | string | null
    req_device?: StringNullableFilter<"RequestLog"> | string | null
    status_id?: IntFilter<"RequestLog"> | number
    company_id?: IntFilter<"RequestLog"> | number
    created_at?: DateTimeFilter<"RequestLog"> | Date | string
    updated_at?: DateTimeFilter<"RequestLog"> | Date | string
    deleted_at?: DateTimeNullableFilter<"RequestLog"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type RequestLogOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    user_id?: SortOrderInput | SortOrder
    req_method?: SortOrderInput | SortOrder
    req_url?: SortOrderInput | SortOrder
    req_body?: SortOrderInput | SortOrder
    res_status?: SortOrder
    res_code?: SortOrder
    res_message?: SortOrderInput | SortOrder
    req_response?: SortOrderInput | SortOrder
    req_headers?: SortOrderInput | SortOrder
    req_ip?: SortOrderInput | SortOrder
    req_device?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    user?: UserOrderByWithRelationInput
  }

  export type RequestLogWhereUniqueInput = Prisma.AtLeast<{
    id?: bigint | number
    AND?: RequestLogWhereInput | RequestLogWhereInput[]
    OR?: RequestLogWhereInput[]
    NOT?: RequestLogWhereInput | RequestLogWhereInput[]
    uuid?: StringFilter<"RequestLog"> | string
    user_id?: IntNullableFilter<"RequestLog"> | number | null
    req_method?: StringNullableFilter<"RequestLog"> | string | null
    req_url?: StringNullableFilter<"RequestLog"> | string | null
    req_body?: StringNullableFilter<"RequestLog"> | string | null
    res_status?: BoolFilter<"RequestLog"> | boolean
    res_code?: IntFilter<"RequestLog"> | number
    res_message?: StringNullableFilter<"RequestLog"> | string | null
    req_response?: StringNullableFilter<"RequestLog"> | string | null
    req_headers?: StringNullableFilter<"RequestLog"> | string | null
    req_ip?: StringNullableFilter<"RequestLog"> | string | null
    req_device?: StringNullableFilter<"RequestLog"> | string | null
    status_id?: IntFilter<"RequestLog"> | number
    company_id?: IntFilter<"RequestLog"> | number
    created_at?: DateTimeFilter<"RequestLog"> | Date | string
    updated_at?: DateTimeFilter<"RequestLog"> | Date | string
    deleted_at?: DateTimeNullableFilter<"RequestLog"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id">

  export type RequestLogOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    user_id?: SortOrderInput | SortOrder
    req_method?: SortOrderInput | SortOrder
    req_url?: SortOrderInput | SortOrder
    req_body?: SortOrderInput | SortOrder
    res_status?: SortOrder
    res_code?: SortOrder
    res_message?: SortOrderInput | SortOrder
    req_response?: SortOrderInput | SortOrder
    req_headers?: SortOrderInput | SortOrder
    req_ip?: SortOrderInput | SortOrder
    req_device?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: RequestLogCountOrderByAggregateInput
    _avg?: RequestLogAvgOrderByAggregateInput
    _max?: RequestLogMaxOrderByAggregateInput
    _min?: RequestLogMinOrderByAggregateInput
    _sum?: RequestLogSumOrderByAggregateInput
  }

  export type RequestLogScalarWhereWithAggregatesInput = {
    AND?: RequestLogScalarWhereWithAggregatesInput | RequestLogScalarWhereWithAggregatesInput[]
    OR?: RequestLogScalarWhereWithAggregatesInput[]
    NOT?: RequestLogScalarWhereWithAggregatesInput | RequestLogScalarWhereWithAggregatesInput[]
    id?: BigIntWithAggregatesFilter<"RequestLog"> | bigint | number
    uuid?: StringWithAggregatesFilter<"RequestLog"> | string
    user_id?: IntNullableWithAggregatesFilter<"RequestLog"> | number | null
    req_method?: StringNullableWithAggregatesFilter<"RequestLog"> | string | null
    req_url?: StringNullableWithAggregatesFilter<"RequestLog"> | string | null
    req_body?: StringNullableWithAggregatesFilter<"RequestLog"> | string | null
    res_status?: BoolWithAggregatesFilter<"RequestLog"> | boolean
    res_code?: IntWithAggregatesFilter<"RequestLog"> | number
    res_message?: StringNullableWithAggregatesFilter<"RequestLog"> | string | null
    req_response?: StringNullableWithAggregatesFilter<"RequestLog"> | string | null
    req_headers?: StringNullableWithAggregatesFilter<"RequestLog"> | string | null
    req_ip?: StringNullableWithAggregatesFilter<"RequestLog"> | string | null
    req_device?: StringNullableWithAggregatesFilter<"RequestLog"> | string | null
    status_id?: IntWithAggregatesFilter<"RequestLog"> | number
    company_id?: IntWithAggregatesFilter<"RequestLog"> | number
    created_at?: DateTimeWithAggregatesFilter<"RequestLog"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"RequestLog"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"RequestLog"> | Date | string | null
  }

  export type FinancialYearWhereInput = {
    AND?: FinancialYearWhereInput | FinancialYearWhereInput[]
    OR?: FinancialYearWhereInput[]
    NOT?: FinancialYearWhereInput | FinancialYearWhereInput[]
    id?: IntFilter<"FinancialYear"> | number
    uuid?: StringFilter<"FinancialYear"> | string
    name?: StringFilter<"FinancialYear"> | string
    code?: StringFilter<"FinancialYear"> | string
    is_freezed?: BoolFilter<"FinancialYear"> | boolean
    start_date?: DateTimeFilter<"FinancialYear"> | Date | string
    end_date?: DateTimeFilter<"FinancialYear"> | Date | string
    status_id?: IntFilter<"FinancialYear"> | number
    company_id?: IntFilter<"FinancialYear"> | number
    created_by?: IntNullableFilter<"FinancialYear"> | number | null
    updated_by?: IntNullableFilter<"FinancialYear"> | number | null
    deleted_by?: IntNullableFilter<"FinancialYear"> | number | null
    created_at?: DateTimeFilter<"FinancialYear"> | Date | string
    updated_at?: DateTimeFilter<"FinancialYear"> | Date | string
    deleted_at?: DateTimeNullableFilter<"FinancialYear"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    document_sequence?: DocumentSequenceListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type FinancialYearOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    code?: SortOrder
    is_freezed?: SortOrder
    start_date?: SortOrder
    end_date?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    document_sequence?: DocumentSequenceOrderByRelationAggregateInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type FinancialYearWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: FinancialYearCompany_idIdCompoundUniqueInput
    company_id_uuid?: FinancialYearCompany_idUuidCompoundUniqueInput
    company_id_code?: FinancialYearCompany_idCodeCompoundUniqueInput
    AND?: FinancialYearWhereInput | FinancialYearWhereInput[]
    OR?: FinancialYearWhereInput[]
    NOT?: FinancialYearWhereInput | FinancialYearWhereInput[]
    uuid?: StringFilter<"FinancialYear"> | string
    name?: StringFilter<"FinancialYear"> | string
    code?: StringFilter<"FinancialYear"> | string
    is_freezed?: BoolFilter<"FinancialYear"> | boolean
    start_date?: DateTimeFilter<"FinancialYear"> | Date | string
    end_date?: DateTimeFilter<"FinancialYear"> | Date | string
    status_id?: IntFilter<"FinancialYear"> | number
    company_id?: IntFilter<"FinancialYear"> | number
    created_by?: IntNullableFilter<"FinancialYear"> | number | null
    updated_by?: IntNullableFilter<"FinancialYear"> | number | null
    deleted_by?: IntNullableFilter<"FinancialYear"> | number | null
    created_at?: DateTimeFilter<"FinancialYear"> | Date | string
    updated_at?: DateTimeFilter<"FinancialYear"> | Date | string
    deleted_at?: DateTimeNullableFilter<"FinancialYear"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    document_sequence?: DocumentSequenceListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_uuid" | "company_id_code">

  export type FinancialYearOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    code?: SortOrder
    is_freezed?: SortOrder
    start_date?: SortOrder
    end_date?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: FinancialYearCountOrderByAggregateInput
    _avg?: FinancialYearAvgOrderByAggregateInput
    _max?: FinancialYearMaxOrderByAggregateInput
    _min?: FinancialYearMinOrderByAggregateInput
    _sum?: FinancialYearSumOrderByAggregateInput
  }

  export type FinancialYearScalarWhereWithAggregatesInput = {
    AND?: FinancialYearScalarWhereWithAggregatesInput | FinancialYearScalarWhereWithAggregatesInput[]
    OR?: FinancialYearScalarWhereWithAggregatesInput[]
    NOT?: FinancialYearScalarWhereWithAggregatesInput | FinancialYearScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"FinancialYear"> | number
    uuid?: StringWithAggregatesFilter<"FinancialYear"> | string
    name?: StringWithAggregatesFilter<"FinancialYear"> | string
    code?: StringWithAggregatesFilter<"FinancialYear"> | string
    is_freezed?: BoolWithAggregatesFilter<"FinancialYear"> | boolean
    start_date?: DateTimeWithAggregatesFilter<"FinancialYear"> | Date | string
    end_date?: DateTimeWithAggregatesFilter<"FinancialYear"> | Date | string
    status_id?: IntWithAggregatesFilter<"FinancialYear"> | number
    company_id?: IntWithAggregatesFilter<"FinancialYear"> | number
    created_by?: IntNullableWithAggregatesFilter<"FinancialYear"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"FinancialYear"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"FinancialYear"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"FinancialYear"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"FinancialYear"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"FinancialYear"> | Date | string | null
  }

  export type DocumentSequenceWhereInput = {
    AND?: DocumentSequenceWhereInput | DocumentSequenceWhereInput[]
    OR?: DocumentSequenceWhereInput[]
    NOT?: DocumentSequenceWhereInput | DocumentSequenceWhereInput[]
    id?: IntFilter<"DocumentSequence"> | number
    uuid?: StringFilter<"DocumentSequence"> | string
    module_name?: StringFilter<"DocumentSequence"> | string
    financial_year_id?: IntNullableFilter<"DocumentSequence"> | number | null
    current_sequence_no?: IntFilter<"DocumentSequence"> | number
    start_sequence_no?: IntFilter<"DocumentSequence"> | number
    end_sequence_no?: IntFilter<"DocumentSequence"> | number
    sequence_length?: IntFilter<"DocumentSequence"> | number
    status_id?: IntFilter<"DocumentSequence"> | number
    code_format?: StringNullableFilter<"DocumentSequence"> | string | null
    company_id?: IntFilter<"DocumentSequence"> | number
    created_by?: IntNullableFilter<"DocumentSequence"> | number | null
    updated_by?: IntNullableFilter<"DocumentSequence"> | number | null
    deleted_by?: IntNullableFilter<"DocumentSequence"> | number | null
    created_at?: DateTimeFilter<"DocumentSequence"> | Date | string
    updated_at?: DateTimeFilter<"DocumentSequence"> | Date | string
    deleted_at?: DateTimeNullableFilter<"DocumentSequence"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    finanicial_year?: XOR<FinancialYearNullableRelationFilter, FinancialYearWhereInput> | null
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type DocumentSequenceOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    module_name?: SortOrder
    financial_year_id?: SortOrderInput | SortOrder
    current_sequence_no?: SortOrder
    start_sequence_no?: SortOrder
    end_sequence_no?: SortOrder
    sequence_length?: SortOrder
    status_id?: SortOrder
    code_format?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    finanicial_year?: FinancialYearOrderByWithRelationInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type DocumentSequenceWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: DocumentSequenceCompany_idIdCompoundUniqueInput
    company_id_uuid?: DocumentSequenceCompany_idUuidCompoundUniqueInput
    company_id_financial_year_id_module_name?: DocumentSequenceCompany_idFinancial_year_idModule_nameCompoundUniqueInput
    AND?: DocumentSequenceWhereInput | DocumentSequenceWhereInput[]
    OR?: DocumentSequenceWhereInput[]
    NOT?: DocumentSequenceWhereInput | DocumentSequenceWhereInput[]
    uuid?: StringFilter<"DocumentSequence"> | string
    module_name?: StringFilter<"DocumentSequence"> | string
    financial_year_id?: IntNullableFilter<"DocumentSequence"> | number | null
    current_sequence_no?: IntFilter<"DocumentSequence"> | number
    start_sequence_no?: IntFilter<"DocumentSequence"> | number
    end_sequence_no?: IntFilter<"DocumentSequence"> | number
    sequence_length?: IntFilter<"DocumentSequence"> | number
    status_id?: IntFilter<"DocumentSequence"> | number
    code_format?: StringNullableFilter<"DocumentSequence"> | string | null
    company_id?: IntFilter<"DocumentSequence"> | number
    created_by?: IntNullableFilter<"DocumentSequence"> | number | null
    updated_by?: IntNullableFilter<"DocumentSequence"> | number | null
    deleted_by?: IntNullableFilter<"DocumentSequence"> | number | null
    created_at?: DateTimeFilter<"DocumentSequence"> | Date | string
    updated_at?: DateTimeFilter<"DocumentSequence"> | Date | string
    deleted_at?: DateTimeNullableFilter<"DocumentSequence"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    finanicial_year?: XOR<FinancialYearNullableRelationFilter, FinancialYearWhereInput> | null
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_uuid" | "company_id_financial_year_id_module_name">

  export type DocumentSequenceOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    module_name?: SortOrder
    financial_year_id?: SortOrderInput | SortOrder
    current_sequence_no?: SortOrder
    start_sequence_no?: SortOrder
    end_sequence_no?: SortOrder
    sequence_length?: SortOrder
    status_id?: SortOrder
    code_format?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: DocumentSequenceCountOrderByAggregateInput
    _avg?: DocumentSequenceAvgOrderByAggregateInput
    _max?: DocumentSequenceMaxOrderByAggregateInput
    _min?: DocumentSequenceMinOrderByAggregateInput
    _sum?: DocumentSequenceSumOrderByAggregateInput
  }

  export type DocumentSequenceScalarWhereWithAggregatesInput = {
    AND?: DocumentSequenceScalarWhereWithAggregatesInput | DocumentSequenceScalarWhereWithAggregatesInput[]
    OR?: DocumentSequenceScalarWhereWithAggregatesInput[]
    NOT?: DocumentSequenceScalarWhereWithAggregatesInput | DocumentSequenceScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"DocumentSequence"> | number
    uuid?: StringWithAggregatesFilter<"DocumentSequence"> | string
    module_name?: StringWithAggregatesFilter<"DocumentSequence"> | string
    financial_year_id?: IntNullableWithAggregatesFilter<"DocumentSequence"> | number | null
    current_sequence_no?: IntWithAggregatesFilter<"DocumentSequence"> | number
    start_sequence_no?: IntWithAggregatesFilter<"DocumentSequence"> | number
    end_sequence_no?: IntWithAggregatesFilter<"DocumentSequence"> | number
    sequence_length?: IntWithAggregatesFilter<"DocumentSequence"> | number
    status_id?: IntWithAggregatesFilter<"DocumentSequence"> | number
    code_format?: StringNullableWithAggregatesFilter<"DocumentSequence"> | string | null
    company_id?: IntWithAggregatesFilter<"DocumentSequence"> | number
    created_by?: IntNullableWithAggregatesFilter<"DocumentSequence"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"DocumentSequence"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"DocumentSequence"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"DocumentSequence"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"DocumentSequence"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"DocumentSequence"> | Date | string | null
  }

  export type AuditLogWhereInput = {
    AND?: AuditLogWhereInput | AuditLogWhereInput[]
    OR?: AuditLogWhereInput[]
    NOT?: AuditLogWhereInput | AuditLogWhereInput[]
    id?: IntFilter<"AuditLog"> | number
    operation_type?: StringFilter<"AuditLog"> | string
    table_name?: StringFilter<"AuditLog"> | string
    field_name?: StringFilter<"AuditLog"> | string
    old_value?: StringNullableFilter<"AuditLog"> | string | null
    new_value?: StringNullableFilter<"AuditLog"> | string | null
    entity_id?: IntFilter<"AuditLog"> | number
    user_id?: IntNullableFilter<"AuditLog"> | number | null
    status_id?: IntFilter<"AuditLog"> | number
    company_id?: IntNullableFilter<"AuditLog"> | number | null
    created_at?: DateTimeFilter<"AuditLog"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type AuditLogOrderByWithRelationInput = {
    id?: SortOrder
    operation_type?: SortOrder
    table_name?: SortOrder
    field_name?: SortOrder
    old_value?: SortOrderInput | SortOrder
    new_value?: SortOrderInput | SortOrder
    entity_id?: SortOrder
    user_id?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrderInput | SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    user?: UserOrderByWithRelationInput
  }

  export type AuditLogWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: AuditLogCompany_idIdCompoundUniqueInput
    AND?: AuditLogWhereInput | AuditLogWhereInput[]
    OR?: AuditLogWhereInput[]
    NOT?: AuditLogWhereInput | AuditLogWhereInput[]
    operation_type?: StringFilter<"AuditLog"> | string
    table_name?: StringFilter<"AuditLog"> | string
    field_name?: StringFilter<"AuditLog"> | string
    old_value?: StringNullableFilter<"AuditLog"> | string | null
    new_value?: StringNullableFilter<"AuditLog"> | string | null
    entity_id?: IntFilter<"AuditLog"> | number
    user_id?: IntNullableFilter<"AuditLog"> | number | null
    status_id?: IntFilter<"AuditLog"> | number
    company_id?: IntNullableFilter<"AuditLog"> | number | null
    created_at?: DateTimeFilter<"AuditLog"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    user?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id">

  export type AuditLogOrderByWithAggregationInput = {
    id?: SortOrder
    operation_type?: SortOrder
    table_name?: SortOrder
    field_name?: SortOrder
    old_value?: SortOrderInput | SortOrder
    new_value?: SortOrderInput | SortOrder
    entity_id?: SortOrder
    user_id?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrderInput | SortOrder
    created_at?: SortOrder
    _count?: AuditLogCountOrderByAggregateInput
    _avg?: AuditLogAvgOrderByAggregateInput
    _max?: AuditLogMaxOrderByAggregateInput
    _min?: AuditLogMinOrderByAggregateInput
    _sum?: AuditLogSumOrderByAggregateInput
  }

  export type AuditLogScalarWhereWithAggregatesInput = {
    AND?: AuditLogScalarWhereWithAggregatesInput | AuditLogScalarWhereWithAggregatesInput[]
    OR?: AuditLogScalarWhereWithAggregatesInput[]
    NOT?: AuditLogScalarWhereWithAggregatesInput | AuditLogScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"AuditLog"> | number
    operation_type?: StringWithAggregatesFilter<"AuditLog"> | string
    table_name?: StringWithAggregatesFilter<"AuditLog"> | string
    field_name?: StringWithAggregatesFilter<"AuditLog"> | string
    old_value?: StringNullableWithAggregatesFilter<"AuditLog"> | string | null
    new_value?: StringNullableWithAggregatesFilter<"AuditLog"> | string | null
    entity_id?: IntWithAggregatesFilter<"AuditLog"> | number
    user_id?: IntNullableWithAggregatesFilter<"AuditLog"> | number | null
    status_id?: IntWithAggregatesFilter<"AuditLog"> | number
    company_id?: IntNullableWithAggregatesFilter<"AuditLog"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"AuditLog"> | Date | string
  }

  export type PermissionsWhereInput = {
    AND?: PermissionsWhereInput | PermissionsWhereInput[]
    OR?: PermissionsWhereInput[]
    NOT?: PermissionsWhereInput | PermissionsWhereInput[]
    id?: IntFilter<"Permissions"> | number
    name?: StringFilter<"Permissions"> | string
    slug?: StringFilter<"Permissions"> | string
    entity_id?: IntNullableFilter<"Permissions"> | number | null
    order_no?: DecimalFilter<"Permissions"> | Decimal | DecimalJsLike | number | string
    status_id?: IntFilter<"Permissions"> | number
    company_id?: IntFilter<"Permissions"> | number
    created_at?: DateTimeFilter<"Permissions"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    entity?: XOR<MasterEntityNullableRelationFilter, MasterEntityWhereInput> | null
    roles?: RolePermissionsListRelationFilter
    users?: UserPermissionsListRelationFilter
    menus?: MenuItemsListRelationFilter
  }

  export type PermissionsOrderByWithRelationInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    entity_id?: SortOrderInput | SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    entity?: MasterEntityOrderByWithRelationInput
    roles?: RolePermissionsOrderByRelationAggregateInput
    users?: UserPermissionsOrderByRelationAggregateInput
    menus?: MenuItemsOrderByRelationAggregateInput
  }

  export type PermissionsWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_slug?: PermissionsCompany_idSlugCompoundUniqueInput
    company_id_id?: PermissionsCompany_idIdCompoundUniqueInput
    AND?: PermissionsWhereInput | PermissionsWhereInput[]
    OR?: PermissionsWhereInput[]
    NOT?: PermissionsWhereInput | PermissionsWhereInput[]
    name?: StringFilter<"Permissions"> | string
    slug?: StringFilter<"Permissions"> | string
    entity_id?: IntNullableFilter<"Permissions"> | number | null
    order_no?: DecimalFilter<"Permissions"> | Decimal | DecimalJsLike | number | string
    status_id?: IntFilter<"Permissions"> | number
    company_id?: IntFilter<"Permissions"> | number
    created_at?: DateTimeFilter<"Permissions"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    entity?: XOR<MasterEntityNullableRelationFilter, MasterEntityWhereInput> | null
    roles?: RolePermissionsListRelationFilter
    users?: UserPermissionsListRelationFilter
    menus?: MenuItemsListRelationFilter
  }, "id" | "company_id_slug" | "company_id_id">

  export type PermissionsOrderByWithAggregationInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    entity_id?: SortOrderInput | SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: PermissionsCountOrderByAggregateInput
    _avg?: PermissionsAvgOrderByAggregateInput
    _max?: PermissionsMaxOrderByAggregateInput
    _min?: PermissionsMinOrderByAggregateInput
    _sum?: PermissionsSumOrderByAggregateInput
  }

  export type PermissionsScalarWhereWithAggregatesInput = {
    AND?: PermissionsScalarWhereWithAggregatesInput | PermissionsScalarWhereWithAggregatesInput[]
    OR?: PermissionsScalarWhereWithAggregatesInput[]
    NOT?: PermissionsScalarWhereWithAggregatesInput | PermissionsScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Permissions"> | number
    name?: StringWithAggregatesFilter<"Permissions"> | string
    slug?: StringWithAggregatesFilter<"Permissions"> | string
    entity_id?: IntNullableWithAggregatesFilter<"Permissions"> | number | null
    order_no?: DecimalWithAggregatesFilter<"Permissions"> | Decimal | DecimalJsLike | number | string
    status_id?: IntWithAggregatesFilter<"Permissions"> | number
    company_id?: IntWithAggregatesFilter<"Permissions"> | number
    created_at?: DateTimeWithAggregatesFilter<"Permissions"> | Date | string
  }

  export type RoleWhereInput = {
    AND?: RoleWhereInput | RoleWhereInput[]
    OR?: RoleWhereInput[]
    NOT?: RoleWhereInput | RoleWhereInput[]
    id?: IntFilter<"Role"> | number
    uuid?: StringFilter<"Role"> | string
    name?: StringFilter<"Role"> | string
    description?: StringNullableFilter<"Role"> | string | null
    status_id?: IntFilter<"Role"> | number
    company_id?: IntFilter<"Role"> | number
    created_by?: IntNullableFilter<"Role"> | number | null
    updated_by?: IntNullableFilter<"Role"> | number | null
    deleted_by?: IntNullableFilter<"Role"> | number | null
    created_at?: DateTimeFilter<"Role"> | Date | string
    updated_at?: DateTimeFilter<"Role"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Role"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    permissions?: RolePermissionsListRelationFilter
    users?: UserRolesListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type RoleOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    permissions?: RolePermissionsOrderByRelationAggregateInput
    users?: UserRolesOrderByRelationAggregateInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type RoleWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: RoleCompany_idIdCompoundUniqueInput
    company_id_uuid?: RoleCompany_idUuidCompoundUniqueInput
    company_id_name?: RoleCompany_idNameCompoundUniqueInput
    AND?: RoleWhereInput | RoleWhereInput[]
    OR?: RoleWhereInput[]
    NOT?: RoleWhereInput | RoleWhereInput[]
    uuid?: StringFilter<"Role"> | string
    name?: StringFilter<"Role"> | string
    description?: StringNullableFilter<"Role"> | string | null
    status_id?: IntFilter<"Role"> | number
    company_id?: IntFilter<"Role"> | number
    created_by?: IntNullableFilter<"Role"> | number | null
    updated_by?: IntNullableFilter<"Role"> | number | null
    deleted_by?: IntNullableFilter<"Role"> | number | null
    created_at?: DateTimeFilter<"Role"> | Date | string
    updated_at?: DateTimeFilter<"Role"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Role"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    permissions?: RolePermissionsListRelationFilter
    users?: UserRolesListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_uuid" | "company_id_name">

  export type RoleOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: RoleCountOrderByAggregateInput
    _avg?: RoleAvgOrderByAggregateInput
    _max?: RoleMaxOrderByAggregateInput
    _min?: RoleMinOrderByAggregateInput
    _sum?: RoleSumOrderByAggregateInput
  }

  export type RoleScalarWhereWithAggregatesInput = {
    AND?: RoleScalarWhereWithAggregatesInput | RoleScalarWhereWithAggregatesInput[]
    OR?: RoleScalarWhereWithAggregatesInput[]
    NOT?: RoleScalarWhereWithAggregatesInput | RoleScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Role"> | number
    uuid?: StringWithAggregatesFilter<"Role"> | string
    name?: StringWithAggregatesFilter<"Role"> | string
    description?: StringNullableWithAggregatesFilter<"Role"> | string | null
    status_id?: IntWithAggregatesFilter<"Role"> | number
    company_id?: IntWithAggregatesFilter<"Role"> | number
    created_by?: IntNullableWithAggregatesFilter<"Role"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"Role"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"Role"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"Role"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"Role"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"Role"> | Date | string | null
  }

  export type RolePermissionsWhereInput = {
    AND?: RolePermissionsWhereInput | RolePermissionsWhereInput[]
    OR?: RolePermissionsWhereInput[]
    NOT?: RolePermissionsWhereInput | RolePermissionsWhereInput[]
    role_id?: IntFilter<"RolePermissions"> | number
    permission_id?: IntFilter<"RolePermissions"> | number
    company_id?: IntFilter<"RolePermissions"> | number
    role?: XOR<RoleRelationFilter, RoleWhereInput>
    permission?: XOR<PermissionsRelationFilter, PermissionsWhereInput>
  }

  export type RolePermissionsOrderByWithRelationInput = {
    role_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
    role?: RoleOrderByWithRelationInput
    permission?: PermissionsOrderByWithRelationInput
  }

  export type RolePermissionsWhereUniqueInput = Prisma.AtLeast<{
    company_id_role_id_permission_id?: RolePermissionsCompany_idRole_idPermission_idCompoundUniqueInput
    AND?: RolePermissionsWhereInput | RolePermissionsWhereInput[]
    OR?: RolePermissionsWhereInput[]
    NOT?: RolePermissionsWhereInput | RolePermissionsWhereInput[]
    role_id?: IntFilter<"RolePermissions"> | number
    permission_id?: IntFilter<"RolePermissions"> | number
    company_id?: IntFilter<"RolePermissions"> | number
    role?: XOR<RoleRelationFilter, RoleWhereInput>
    permission?: XOR<PermissionsRelationFilter, PermissionsWhereInput>
  }, "company_id_role_id_permission_id">

  export type RolePermissionsOrderByWithAggregationInput = {
    role_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
    _count?: RolePermissionsCountOrderByAggregateInput
    _avg?: RolePermissionsAvgOrderByAggregateInput
    _max?: RolePermissionsMaxOrderByAggregateInput
    _min?: RolePermissionsMinOrderByAggregateInput
    _sum?: RolePermissionsSumOrderByAggregateInput
  }

  export type RolePermissionsScalarWhereWithAggregatesInput = {
    AND?: RolePermissionsScalarWhereWithAggregatesInput | RolePermissionsScalarWhereWithAggregatesInput[]
    OR?: RolePermissionsScalarWhereWithAggregatesInput[]
    NOT?: RolePermissionsScalarWhereWithAggregatesInput | RolePermissionsScalarWhereWithAggregatesInput[]
    role_id?: IntWithAggregatesFilter<"RolePermissions"> | number
    permission_id?: IntWithAggregatesFilter<"RolePermissions"> | number
    company_id?: IntWithAggregatesFilter<"RolePermissions"> | number
  }

  export type UserRolesWhereInput = {
    AND?: UserRolesWhereInput | UserRolesWhereInput[]
    OR?: UserRolesWhereInput[]
    NOT?: UserRolesWhereInput | UserRolesWhereInput[]
    user_id?: IntFilter<"UserRoles"> | number
    role_id?: IntFilter<"UserRoles"> | number
    company_id?: IntFilter<"UserRoles"> | number
    user?: XOR<UserRelationFilter, UserWhereInput>
    role?: XOR<RoleRelationFilter, RoleWhereInput>
  }

  export type UserRolesOrderByWithRelationInput = {
    user_id?: SortOrder
    role_id?: SortOrder
    company_id?: SortOrder
    user?: UserOrderByWithRelationInput
    role?: RoleOrderByWithRelationInput
  }

  export type UserRolesWhereUniqueInput = Prisma.AtLeast<{
    company_id_user_id_role_id?: UserRolesCompany_idUser_idRole_idCompoundUniqueInput
    AND?: UserRolesWhereInput | UserRolesWhereInput[]
    OR?: UserRolesWhereInput[]
    NOT?: UserRolesWhereInput | UserRolesWhereInput[]
    user_id?: IntFilter<"UserRoles"> | number
    role_id?: IntFilter<"UserRoles"> | number
    company_id?: IntFilter<"UserRoles"> | number
    user?: XOR<UserRelationFilter, UserWhereInput>
    role?: XOR<RoleRelationFilter, RoleWhereInput>
  }, "company_id_user_id_role_id">

  export type UserRolesOrderByWithAggregationInput = {
    user_id?: SortOrder
    role_id?: SortOrder
    company_id?: SortOrder
    _count?: UserRolesCountOrderByAggregateInput
    _avg?: UserRolesAvgOrderByAggregateInput
    _max?: UserRolesMaxOrderByAggregateInput
    _min?: UserRolesMinOrderByAggregateInput
    _sum?: UserRolesSumOrderByAggregateInput
  }

  export type UserRolesScalarWhereWithAggregatesInput = {
    AND?: UserRolesScalarWhereWithAggregatesInput | UserRolesScalarWhereWithAggregatesInput[]
    OR?: UserRolesScalarWhereWithAggregatesInput[]
    NOT?: UserRolesScalarWhereWithAggregatesInput | UserRolesScalarWhereWithAggregatesInput[]
    user_id?: IntWithAggregatesFilter<"UserRoles"> | number
    role_id?: IntWithAggregatesFilter<"UserRoles"> | number
    company_id?: IntWithAggregatesFilter<"UserRoles"> | number
  }

  export type UserPermissionsWhereInput = {
    AND?: UserPermissionsWhereInput | UserPermissionsWhereInput[]
    OR?: UserPermissionsWhereInput[]
    NOT?: UserPermissionsWhereInput | UserPermissionsWhereInput[]
    user_id?: IntFilter<"UserPermissions"> | number
    permission_id?: IntFilter<"UserPermissions"> | number
    company_id?: IntFilter<"UserPermissions"> | number
    user?: XOR<UserRelationFilter, UserWhereInput>
    permission?: XOR<PermissionsRelationFilter, PermissionsWhereInput>
  }

  export type UserPermissionsOrderByWithRelationInput = {
    user_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
    user?: UserOrderByWithRelationInput
    permission?: PermissionsOrderByWithRelationInput
  }

  export type UserPermissionsWhereUniqueInput = Prisma.AtLeast<{
    company_id_user_id_permission_id?: UserPermissionsCompany_idUser_idPermission_idCompoundUniqueInput
    AND?: UserPermissionsWhereInput | UserPermissionsWhereInput[]
    OR?: UserPermissionsWhereInput[]
    NOT?: UserPermissionsWhereInput | UserPermissionsWhereInput[]
    user_id?: IntFilter<"UserPermissions"> | number
    permission_id?: IntFilter<"UserPermissions"> | number
    company_id?: IntFilter<"UserPermissions"> | number
    user?: XOR<UserRelationFilter, UserWhereInput>
    permission?: XOR<PermissionsRelationFilter, PermissionsWhereInput>
  }, "company_id_user_id_permission_id">

  export type UserPermissionsOrderByWithAggregationInput = {
    user_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
    _count?: UserPermissionsCountOrderByAggregateInput
    _avg?: UserPermissionsAvgOrderByAggregateInput
    _max?: UserPermissionsMaxOrderByAggregateInput
    _min?: UserPermissionsMinOrderByAggregateInput
    _sum?: UserPermissionsSumOrderByAggregateInput
  }

  export type UserPermissionsScalarWhereWithAggregatesInput = {
    AND?: UserPermissionsScalarWhereWithAggregatesInput | UserPermissionsScalarWhereWithAggregatesInput[]
    OR?: UserPermissionsScalarWhereWithAggregatesInput[]
    NOT?: UserPermissionsScalarWhereWithAggregatesInput | UserPermissionsScalarWhereWithAggregatesInput[]
    user_id?: IntWithAggregatesFilter<"UserPermissions"> | number
    permission_id?: IntWithAggregatesFilter<"UserPermissions"> | number
    company_id?: IntWithAggregatesFilter<"UserPermissions"> | number
  }

  export type OtpWhereInput = {
    AND?: OtpWhereInput | OtpWhereInput[]
    OR?: OtpWhereInput[]
    NOT?: OtpWhereInput | OtpWhereInput[]
    id?: IntFilter<"Otp"> | number
    user_id?: IntFilter<"Otp"> | number
    otp?: StringFilter<"Otp"> | string
    purpose?: StringFilter<"Otp"> | string
    company_id?: IntFilter<"Otp"> | number
    created_at?: DateTimeFilter<"Otp"> | Date | string
    user?: XOR<UserRelationFilter, UserWhereInput>
  }

  export type OtpOrderByWithRelationInput = {
    id?: SortOrder
    user_id?: SortOrder
    otp?: SortOrder
    purpose?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    user?: UserOrderByWithRelationInput
  }

  export type OtpWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    AND?: OtpWhereInput | OtpWhereInput[]
    OR?: OtpWhereInput[]
    NOT?: OtpWhereInput | OtpWhereInput[]
    user_id?: IntFilter<"Otp"> | number
    otp?: StringFilter<"Otp"> | string
    purpose?: StringFilter<"Otp"> | string
    company_id?: IntFilter<"Otp"> | number
    created_at?: DateTimeFilter<"Otp"> | Date | string
    user?: XOR<UserRelationFilter, UserWhereInput>
  }, "id">

  export type OtpOrderByWithAggregationInput = {
    id?: SortOrder
    user_id?: SortOrder
    otp?: SortOrder
    purpose?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: OtpCountOrderByAggregateInput
    _avg?: OtpAvgOrderByAggregateInput
    _max?: OtpMaxOrderByAggregateInput
    _min?: OtpMinOrderByAggregateInput
    _sum?: OtpSumOrderByAggregateInput
  }

  export type OtpScalarWhereWithAggregatesInput = {
    AND?: OtpScalarWhereWithAggregatesInput | OtpScalarWhereWithAggregatesInput[]
    OR?: OtpScalarWhereWithAggregatesInput[]
    NOT?: OtpScalarWhereWithAggregatesInput | OtpScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Otp"> | number
    user_id?: IntWithAggregatesFilter<"Otp"> | number
    otp?: StringWithAggregatesFilter<"Otp"> | string
    purpose?: StringWithAggregatesFilter<"Otp"> | string
    company_id?: IntWithAggregatesFilter<"Otp"> | number
    created_at?: DateTimeWithAggregatesFilter<"Otp"> | Date | string
  }

  export type LanguageWhereInput = {
    AND?: LanguageWhereInput | LanguageWhereInput[]
    OR?: LanguageWhereInput[]
    NOT?: LanguageWhereInput | LanguageWhereInput[]
    id?: IntFilter<"Language"> | number
    uuid?: StringFilter<"Language"> | string
    name?: StringFilter<"Language"> | string
    name_in_english?: StringNullableFilter<"Language"> | string | null
    flag?: StringNullableFilter<"Language"> | string | null
    code?: StringNullableFilter<"Language"> | string | null
    rtl?: BoolFilter<"Language"> | boolean
    description?: StringFilter<"Language"> | string
    status_id?: IntFilter<"Language"> | number
    company_id?: IntFilter<"Language"> | number
    created_by?: IntNullableFilter<"Language"> | number | null
    updated_by?: IntNullableFilter<"Language"> | number | null
    deleted_by?: IntNullableFilter<"Language"> | number | null
    created_at?: DateTimeFilter<"Language"> | Date | string
    updated_at?: DateTimeFilter<"Language"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Language"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    translations?: LanguageContentListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type LanguageOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    name_in_english?: SortOrderInput | SortOrder
    flag?: SortOrderInput | SortOrder
    code?: SortOrderInput | SortOrder
    rtl?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    translations?: LanguageContentOrderByRelationAggregateInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type LanguageWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: LanguageCompany_idIdCompoundUniqueInput
    company_id_uuid?: LanguageCompany_idUuidCompoundUniqueInput
    company_id_code?: LanguageCompany_idCodeCompoundUniqueInput
    AND?: LanguageWhereInput | LanguageWhereInput[]
    OR?: LanguageWhereInput[]
    NOT?: LanguageWhereInput | LanguageWhereInput[]
    uuid?: StringFilter<"Language"> | string
    name?: StringFilter<"Language"> | string
    name_in_english?: StringNullableFilter<"Language"> | string | null
    flag?: StringNullableFilter<"Language"> | string | null
    code?: StringNullableFilter<"Language"> | string | null
    rtl?: BoolFilter<"Language"> | boolean
    description?: StringFilter<"Language"> | string
    status_id?: IntFilter<"Language"> | number
    company_id?: IntFilter<"Language"> | number
    created_by?: IntNullableFilter<"Language"> | number | null
    updated_by?: IntNullableFilter<"Language"> | number | null
    deleted_by?: IntNullableFilter<"Language"> | number | null
    created_at?: DateTimeFilter<"Language"> | Date | string
    updated_at?: DateTimeFilter<"Language"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Language"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    translations?: LanguageContentListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_uuid" | "company_id_code">

  export type LanguageOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    name_in_english?: SortOrderInput | SortOrder
    flag?: SortOrderInput | SortOrder
    code?: SortOrderInput | SortOrder
    rtl?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: LanguageCountOrderByAggregateInput
    _avg?: LanguageAvgOrderByAggregateInput
    _max?: LanguageMaxOrderByAggregateInput
    _min?: LanguageMinOrderByAggregateInput
    _sum?: LanguageSumOrderByAggregateInput
  }

  export type LanguageScalarWhereWithAggregatesInput = {
    AND?: LanguageScalarWhereWithAggregatesInput | LanguageScalarWhereWithAggregatesInput[]
    OR?: LanguageScalarWhereWithAggregatesInput[]
    NOT?: LanguageScalarWhereWithAggregatesInput | LanguageScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Language"> | number
    uuid?: StringWithAggregatesFilter<"Language"> | string
    name?: StringWithAggregatesFilter<"Language"> | string
    name_in_english?: StringNullableWithAggregatesFilter<"Language"> | string | null
    flag?: StringNullableWithAggregatesFilter<"Language"> | string | null
    code?: StringNullableWithAggregatesFilter<"Language"> | string | null
    rtl?: BoolWithAggregatesFilter<"Language"> | boolean
    description?: StringWithAggregatesFilter<"Language"> | string
    status_id?: IntWithAggregatesFilter<"Language"> | number
    company_id?: IntWithAggregatesFilter<"Language"> | number
    created_by?: IntNullableWithAggregatesFilter<"Language"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"Language"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"Language"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"Language"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"Language"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"Language"> | Date | string | null
  }

  export type LanguageContentWhereInput = {
    AND?: LanguageContentWhereInput | LanguageContentWhereInput[]
    OR?: LanguageContentWhereInput[]
    NOT?: LanguageContentWhereInput | LanguageContentWhereInput[]
    id?: IntFilter<"LanguageContent"> | number
    language_id?: IntFilter<"LanguageContent"> | number
    key_content?: StringFilter<"LanguageContent"> | string
    values?: StringFilter<"LanguageContent"> | string
    status_id?: IntFilter<"LanguageContent"> | number
    company_id?: IntFilter<"LanguageContent"> | number
    created_at?: DateTimeFilter<"LanguageContent"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    language?: XOR<LanguageNullableRelationFilter, LanguageWhereInput> | null
  }

  export type LanguageContentOrderByWithRelationInput = {
    id?: SortOrder
    language_id?: SortOrder
    key_content?: SortOrder
    values?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    language?: LanguageOrderByWithRelationInput
  }

  export type LanguageContentWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: LanguageContentCompany_idIdCompoundUniqueInput
    AND?: LanguageContentWhereInput | LanguageContentWhereInput[]
    OR?: LanguageContentWhereInput[]
    NOT?: LanguageContentWhereInput | LanguageContentWhereInput[]
    language_id?: IntFilter<"LanguageContent"> | number
    key_content?: StringFilter<"LanguageContent"> | string
    values?: StringFilter<"LanguageContent"> | string
    status_id?: IntFilter<"LanguageContent"> | number
    company_id?: IntFilter<"LanguageContent"> | number
    created_at?: DateTimeFilter<"LanguageContent"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    language?: XOR<LanguageNullableRelationFilter, LanguageWhereInput> | null
  }, "id" | "company_id_id">

  export type LanguageContentOrderByWithAggregationInput = {
    id?: SortOrder
    language_id?: SortOrder
    key_content?: SortOrder
    values?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: LanguageContentCountOrderByAggregateInput
    _avg?: LanguageContentAvgOrderByAggregateInput
    _max?: LanguageContentMaxOrderByAggregateInput
    _min?: LanguageContentMinOrderByAggregateInput
    _sum?: LanguageContentSumOrderByAggregateInput
  }

  export type LanguageContentScalarWhereWithAggregatesInput = {
    AND?: LanguageContentScalarWhereWithAggregatesInput | LanguageContentScalarWhereWithAggregatesInput[]
    OR?: LanguageContentScalarWhereWithAggregatesInput[]
    NOT?: LanguageContentScalarWhereWithAggregatesInput | LanguageContentScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"LanguageContent"> | number
    language_id?: IntWithAggregatesFilter<"LanguageContent"> | number
    key_content?: StringWithAggregatesFilter<"LanguageContent"> | string
    values?: StringWithAggregatesFilter<"LanguageContent"> | string
    status_id?: IntWithAggregatesFilter<"LanguageContent"> | number
    company_id?: IntWithAggregatesFilter<"LanguageContent"> | number
    created_at?: DateTimeWithAggregatesFilter<"LanguageContent"> | Date | string
  }

  export type MenusWhereInput = {
    AND?: MenusWhereInput | MenusWhereInput[]
    OR?: MenusWhereInput[]
    NOT?: MenusWhereInput | MenusWhereInput[]
    id?: IntFilter<"Menus"> | number
    uuid?: StringFilter<"Menus"> | string
    name?: StringFilter<"Menus"> | string
    slug?: StringNullableFilter<"Menus"> | string | null
    description?: StringNullableFilter<"Menus"> | string | null
    menu_type?: IntFilter<"Menus"> | number
    status_id?: IntFilter<"Menus"> | number
    company_id?: IntFilter<"Menus"> | number
    created_by?: IntNullableFilter<"Menus"> | number | null
    updated_by?: IntNullableFilter<"Menus"> | number | null
    deleted_by?: IntNullableFilter<"Menus"> | number | null
    created_at?: DateTimeFilter<"Menus"> | Date | string
    updated_at?: DateTimeFilter<"Menus"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Menus"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    menuitems?: MenuItemsListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type MenusOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    menu_type?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    menuitems?: MenuItemsOrderByRelationAggregateInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type MenusWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: MenusCompany_idIdCompoundUniqueInput
    company_id_uuid?: MenusCompany_idUuidCompoundUniqueInput
    AND?: MenusWhereInput | MenusWhereInput[]
    OR?: MenusWhereInput[]
    NOT?: MenusWhereInput | MenusWhereInput[]
    uuid?: StringFilter<"Menus"> | string
    name?: StringFilter<"Menus"> | string
    slug?: StringNullableFilter<"Menus"> | string | null
    description?: StringNullableFilter<"Menus"> | string | null
    menu_type?: IntFilter<"Menus"> | number
    status_id?: IntFilter<"Menus"> | number
    company_id?: IntFilter<"Menus"> | number
    created_by?: IntNullableFilter<"Menus"> | number | null
    updated_by?: IntNullableFilter<"Menus"> | number | null
    deleted_by?: IntNullableFilter<"Menus"> | number | null
    created_at?: DateTimeFilter<"Menus"> | Date | string
    updated_at?: DateTimeFilter<"Menus"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Menus"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    menuitems?: MenuItemsListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_uuid">

  export type MenusOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    menu_type?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: MenusCountOrderByAggregateInput
    _avg?: MenusAvgOrderByAggregateInput
    _max?: MenusMaxOrderByAggregateInput
    _min?: MenusMinOrderByAggregateInput
    _sum?: MenusSumOrderByAggregateInput
  }

  export type MenusScalarWhereWithAggregatesInput = {
    AND?: MenusScalarWhereWithAggregatesInput | MenusScalarWhereWithAggregatesInput[]
    OR?: MenusScalarWhereWithAggregatesInput[]
    NOT?: MenusScalarWhereWithAggregatesInput | MenusScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Menus"> | number
    uuid?: StringWithAggregatesFilter<"Menus"> | string
    name?: StringWithAggregatesFilter<"Menus"> | string
    slug?: StringNullableWithAggregatesFilter<"Menus"> | string | null
    description?: StringNullableWithAggregatesFilter<"Menus"> | string | null
    menu_type?: IntWithAggregatesFilter<"Menus"> | number
    status_id?: IntWithAggregatesFilter<"Menus"> | number
    company_id?: IntWithAggregatesFilter<"Menus"> | number
    created_by?: IntNullableWithAggregatesFilter<"Menus"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"Menus"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"Menus"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"Menus"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"Menus"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"Menus"> | Date | string | null
  }

  export type MenuItemsWhereInput = {
    AND?: MenuItemsWhereInput | MenuItemsWhereInput[]
    OR?: MenuItemsWhereInput[]
    NOT?: MenuItemsWhereInput | MenuItemsWhereInput[]
    id?: IntFilter<"MenuItems"> | number
    menu_id?: IntFilter<"MenuItems"> | number
    name?: StringFilter<"MenuItems"> | string
    target?: StringNullableFilter<"MenuItems"> | string | null
    parent_id?: IntNullableFilter<"MenuItems"> | number | null
    permission_id?: IntNullableFilter<"MenuItems"> | number | null
    entity_id?: IntNullableFilter<"MenuItems"> | number | null
    link_type?: IntNullableFilter<"MenuItems"> | number | null
    order_no?: DecimalFilter<"MenuItems"> | Decimal | DecimalJsLike | number | string
    menu_img?: StringNullableFilter<"MenuItems"> | string | null
    short_cut_keys?: StringNullableFilter<"MenuItems"> | string | null
    status_id?: IntFilter<"MenuItems"> | number
    company_id?: IntFilter<"MenuItems"> | number
    created_by?: IntNullableFilter<"MenuItems"> | number | null
    updated_by?: IntNullableFilter<"MenuItems"> | number | null
    deleted_by?: IntNullableFilter<"MenuItems"> | number | null
    created_at?: DateTimeFilter<"MenuItems"> | Date | string
    updated_at?: DateTimeFilter<"MenuItems"> | Date | string
    deleted_at?: DateTimeNullableFilter<"MenuItems"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    menus?: XOR<MenusNullableRelationFilter, MenusWhereInput> | null
    entity?: XOR<MasterEntityNullableRelationFilter, MasterEntityWhereInput> | null
    permission?: XOR<PermissionsNullableRelationFilter, PermissionsWhereInput> | null
    parent?: XOR<MenuItemsNullableRelationFilter, MenuItemsWhereInput> | null
    children?: MenuItemsListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type MenuItemsOrderByWithRelationInput = {
    id?: SortOrder
    menu_id?: SortOrder
    name?: SortOrder
    target?: SortOrderInput | SortOrder
    parent_id?: SortOrderInput | SortOrder
    permission_id?: SortOrderInput | SortOrder
    entity_id?: SortOrderInput | SortOrder
    link_type?: SortOrderInput | SortOrder
    order_no?: SortOrder
    menu_img?: SortOrderInput | SortOrder
    short_cut_keys?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    menus?: MenusOrderByWithRelationInput
    entity?: MasterEntityOrderByWithRelationInput
    permission?: PermissionsOrderByWithRelationInput
    parent?: MenuItemsOrderByWithRelationInput
    children?: MenuItemsOrderByRelationAggregateInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type MenuItemsWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: MenuItemsCompany_idIdCompoundUniqueInput
    company_id_menu_id_name?: MenuItemsCompany_idMenu_idNameCompoundUniqueInput
    AND?: MenuItemsWhereInput | MenuItemsWhereInput[]
    OR?: MenuItemsWhereInput[]
    NOT?: MenuItemsWhereInput | MenuItemsWhereInput[]
    menu_id?: IntFilter<"MenuItems"> | number
    name?: StringFilter<"MenuItems"> | string
    target?: StringNullableFilter<"MenuItems"> | string | null
    parent_id?: IntNullableFilter<"MenuItems"> | number | null
    permission_id?: IntNullableFilter<"MenuItems"> | number | null
    entity_id?: IntNullableFilter<"MenuItems"> | number | null
    link_type?: IntNullableFilter<"MenuItems"> | number | null
    order_no?: DecimalFilter<"MenuItems"> | Decimal | DecimalJsLike | number | string
    menu_img?: StringNullableFilter<"MenuItems"> | string | null
    short_cut_keys?: StringNullableFilter<"MenuItems"> | string | null
    status_id?: IntFilter<"MenuItems"> | number
    company_id?: IntFilter<"MenuItems"> | number
    created_by?: IntNullableFilter<"MenuItems"> | number | null
    updated_by?: IntNullableFilter<"MenuItems"> | number | null
    deleted_by?: IntNullableFilter<"MenuItems"> | number | null
    created_at?: DateTimeFilter<"MenuItems"> | Date | string
    updated_at?: DateTimeFilter<"MenuItems"> | Date | string
    deleted_at?: DateTimeNullableFilter<"MenuItems"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    menus?: XOR<MenusNullableRelationFilter, MenusWhereInput> | null
    entity?: XOR<MasterEntityNullableRelationFilter, MasterEntityWhereInput> | null
    permission?: XOR<PermissionsNullableRelationFilter, PermissionsWhereInput> | null
    parent?: XOR<MenuItemsNullableRelationFilter, MenuItemsWhereInput> | null
    children?: MenuItemsListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_menu_id_name">

  export type MenuItemsOrderByWithAggregationInput = {
    id?: SortOrder
    menu_id?: SortOrder
    name?: SortOrder
    target?: SortOrderInput | SortOrder
    parent_id?: SortOrderInput | SortOrder
    permission_id?: SortOrderInput | SortOrder
    entity_id?: SortOrderInput | SortOrder
    link_type?: SortOrderInput | SortOrder
    order_no?: SortOrder
    menu_img?: SortOrderInput | SortOrder
    short_cut_keys?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: MenuItemsCountOrderByAggregateInput
    _avg?: MenuItemsAvgOrderByAggregateInput
    _max?: MenuItemsMaxOrderByAggregateInput
    _min?: MenuItemsMinOrderByAggregateInput
    _sum?: MenuItemsSumOrderByAggregateInput
  }

  export type MenuItemsScalarWhereWithAggregatesInput = {
    AND?: MenuItemsScalarWhereWithAggregatesInput | MenuItemsScalarWhereWithAggregatesInput[]
    OR?: MenuItemsScalarWhereWithAggregatesInput[]
    NOT?: MenuItemsScalarWhereWithAggregatesInput | MenuItemsScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"MenuItems"> | number
    menu_id?: IntWithAggregatesFilter<"MenuItems"> | number
    name?: StringWithAggregatesFilter<"MenuItems"> | string
    target?: StringNullableWithAggregatesFilter<"MenuItems"> | string | null
    parent_id?: IntNullableWithAggregatesFilter<"MenuItems"> | number | null
    permission_id?: IntNullableWithAggregatesFilter<"MenuItems"> | number | null
    entity_id?: IntNullableWithAggregatesFilter<"MenuItems"> | number | null
    link_type?: IntNullableWithAggregatesFilter<"MenuItems"> | number | null
    order_no?: DecimalWithAggregatesFilter<"MenuItems"> | Decimal | DecimalJsLike | number | string
    menu_img?: StringNullableWithAggregatesFilter<"MenuItems"> | string | null
    short_cut_keys?: StringNullableWithAggregatesFilter<"MenuItems"> | string | null
    status_id?: IntWithAggregatesFilter<"MenuItems"> | number
    company_id?: IntWithAggregatesFilter<"MenuItems"> | number
    created_by?: IntNullableWithAggregatesFilter<"MenuItems"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"MenuItems"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"MenuItems"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"MenuItems"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"MenuItems"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"MenuItems"> | Date | string | null
  }

  export type ActionTypeWhereInput = {
    AND?: ActionTypeWhereInput | ActionTypeWhereInput[]
    OR?: ActionTypeWhereInput[]
    NOT?: ActionTypeWhereInput | ActionTypeWhereInput[]
    id?: IntFilter<"ActionType"> | number
    name?: StringFilter<"ActionType"> | string
    description?: StringFilter<"ActionType"> | string
    company_id?: IntFilter<"ActionType"> | number
  }

  export type ActionTypeOrderByWithRelationInput = {
    id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type ActionTypeWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ActionTypeCompany_idIdCompoundUniqueInput
    AND?: ActionTypeWhereInput | ActionTypeWhereInput[]
    OR?: ActionTypeWhereInput[]
    NOT?: ActionTypeWhereInput | ActionTypeWhereInput[]
    name?: StringFilter<"ActionType"> | string
    description?: StringFilter<"ActionType"> | string
    company_id?: IntFilter<"ActionType"> | number
  }, "id" | "company_id_id">

  export type ActionTypeOrderByWithAggregationInput = {
    id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
    _count?: ActionTypeCountOrderByAggregateInput
    _avg?: ActionTypeAvgOrderByAggregateInput
    _max?: ActionTypeMaxOrderByAggregateInput
    _min?: ActionTypeMinOrderByAggregateInput
    _sum?: ActionTypeSumOrderByAggregateInput
  }

  export type ActionTypeScalarWhereWithAggregatesInput = {
    AND?: ActionTypeScalarWhereWithAggregatesInput | ActionTypeScalarWhereWithAggregatesInput[]
    OR?: ActionTypeScalarWhereWithAggregatesInput[]
    NOT?: ActionTypeScalarWhereWithAggregatesInput | ActionTypeScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"ActionType"> | number
    name?: StringWithAggregatesFilter<"ActionType"> | string
    description?: StringWithAggregatesFilter<"ActionType"> | string
    company_id?: IntWithAggregatesFilter<"ActionType"> | number
  }

  export type EntityTypeWhereInput = {
    AND?: EntityTypeWhereInput | EntityTypeWhereInput[]
    OR?: EntityTypeWhereInput[]
    NOT?: EntityTypeWhereInput | EntityTypeWhereInput[]
    id?: IntFilter<"EntityType"> | number
    name?: StringFilter<"EntityType"> | string
    slug?: StringFilter<"EntityType"> | string
    description?: StringFilter<"EntityType"> | string
    company_id?: IntFilter<"EntityType"> | number
  }

  export type EntityTypeOrderByWithRelationInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type EntityTypeWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: EntityTypeCompany_idIdCompoundUniqueInput
    AND?: EntityTypeWhereInput | EntityTypeWhereInput[]
    OR?: EntityTypeWhereInput[]
    NOT?: EntityTypeWhereInput | EntityTypeWhereInput[]
    name?: StringFilter<"EntityType"> | string
    slug?: StringFilter<"EntityType"> | string
    description?: StringFilter<"EntityType"> | string
    company_id?: IntFilter<"EntityType"> | number
  }, "id" | "company_id_id">

  export type EntityTypeOrderByWithAggregationInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
    _count?: EntityTypeCountOrderByAggregateInput
    _avg?: EntityTypeAvgOrderByAggregateInput
    _max?: EntityTypeMaxOrderByAggregateInput
    _min?: EntityTypeMinOrderByAggregateInput
    _sum?: EntityTypeSumOrderByAggregateInput
  }

  export type EntityTypeScalarWhereWithAggregatesInput = {
    AND?: EntityTypeScalarWhereWithAggregatesInput | EntityTypeScalarWhereWithAggregatesInput[]
    OR?: EntityTypeScalarWhereWithAggregatesInput[]
    NOT?: EntityTypeScalarWhereWithAggregatesInput | EntityTypeScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"EntityType"> | number
    name?: StringWithAggregatesFilter<"EntityType"> | string
    slug?: StringWithAggregatesFilter<"EntityType"> | string
    description?: StringWithAggregatesFilter<"EntityType"> | string
    company_id?: IntWithAggregatesFilter<"EntityType"> | number
  }

  export type WizardGroupWhereInput = {
    AND?: WizardGroupWhereInput | WizardGroupWhereInput[]
    OR?: WizardGroupWhereInput[]
    NOT?: WizardGroupWhereInput | WizardGroupWhereInput[]
    id?: IntFilter<"WizardGroup"> | number
    uuid?: StringFilter<"WizardGroup"> | string
    name?: StringFilter<"WizardGroup"> | string
    slug?: StringNullableFilter<"WizardGroup"> | string | null
    description?: StringNullableFilter<"WizardGroup"> | string | null
    status_id?: IntFilter<"WizardGroup"> | number
    created_at?: DateTimeFilter<"WizardGroup"> | Date | string
    company_id?: IntFilter<"WizardGroup"> | number
  }

  export type WizardGroupOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    company_id?: SortOrder
  }

  export type WizardGroupWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: WizardGroupCompany_idIdCompoundUniqueInput
    company_id_slug?: WizardGroupCompany_idSlugCompoundUniqueInput
    AND?: WizardGroupWhereInput | WizardGroupWhereInput[]
    OR?: WizardGroupWhereInput[]
    NOT?: WizardGroupWhereInput | WizardGroupWhereInput[]
    uuid?: StringFilter<"WizardGroup"> | string
    name?: StringFilter<"WizardGroup"> | string
    slug?: StringNullableFilter<"WizardGroup"> | string | null
    description?: StringNullableFilter<"WizardGroup"> | string | null
    status_id?: IntFilter<"WizardGroup"> | number
    created_at?: DateTimeFilter<"WizardGroup"> | Date | string
    company_id?: IntFilter<"WizardGroup"> | number
  }, "id" | "company_id_id" | "company_id_slug">

  export type WizardGroupOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    company_id?: SortOrder
    _count?: WizardGroupCountOrderByAggregateInput
    _avg?: WizardGroupAvgOrderByAggregateInput
    _max?: WizardGroupMaxOrderByAggregateInput
    _min?: WizardGroupMinOrderByAggregateInput
    _sum?: WizardGroupSumOrderByAggregateInput
  }

  export type WizardGroupScalarWhereWithAggregatesInput = {
    AND?: WizardGroupScalarWhereWithAggregatesInput | WizardGroupScalarWhereWithAggregatesInput[]
    OR?: WizardGroupScalarWhereWithAggregatesInput[]
    NOT?: WizardGroupScalarWhereWithAggregatesInput | WizardGroupScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"WizardGroup"> | number
    uuid?: StringWithAggregatesFilter<"WizardGroup"> | string
    name?: StringWithAggregatesFilter<"WizardGroup"> | string
    slug?: StringNullableWithAggregatesFilter<"WizardGroup"> | string | null
    description?: StringNullableWithAggregatesFilter<"WizardGroup"> | string | null
    status_id?: IntWithAggregatesFilter<"WizardGroup"> | number
    created_at?: DateTimeWithAggregatesFilter<"WizardGroup"> | Date | string
    company_id?: IntWithAggregatesFilter<"WizardGroup"> | number
  }

  export type WizardTypeWhereInput = {
    AND?: WizardTypeWhereInput | WizardTypeWhereInput[]
    OR?: WizardTypeWhereInput[]
    NOT?: WizardTypeWhereInput | WizardTypeWhereInput[]
    id?: IntFilter<"WizardType"> | number
    uuid?: StringFilter<"WizardType"> | string
    name?: StringFilter<"WizardType"> | string
    description?: StringNullableFilter<"WizardType"> | string | null
    company_id?: IntFilter<"WizardType"> | number
  }

  export type WizardTypeOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    company_id?: SortOrder
  }

  export type WizardTypeWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: WizardTypeCompany_idIdCompoundUniqueInput
    company_id_name?: WizardTypeCompany_idNameCompoundUniqueInput
    AND?: WizardTypeWhereInput | WizardTypeWhereInput[]
    OR?: WizardTypeWhereInput[]
    NOT?: WizardTypeWhereInput | WizardTypeWhereInput[]
    uuid?: StringFilter<"WizardType"> | string
    name?: StringFilter<"WizardType"> | string
    description?: StringNullableFilter<"WizardType"> | string | null
    company_id?: IntFilter<"WizardType"> | number
  }, "id" | "company_id_id" | "company_id_name">

  export type WizardTypeOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    company_id?: SortOrder
    _count?: WizardTypeCountOrderByAggregateInput
    _avg?: WizardTypeAvgOrderByAggregateInput
    _max?: WizardTypeMaxOrderByAggregateInput
    _min?: WizardTypeMinOrderByAggregateInput
    _sum?: WizardTypeSumOrderByAggregateInput
  }

  export type WizardTypeScalarWhereWithAggregatesInput = {
    AND?: WizardTypeScalarWhereWithAggregatesInput | WizardTypeScalarWhereWithAggregatesInput[]
    OR?: WizardTypeScalarWhereWithAggregatesInput[]
    NOT?: WizardTypeScalarWhereWithAggregatesInput | WizardTypeScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"WizardType"> | number
    uuid?: StringWithAggregatesFilter<"WizardType"> | string
    name?: StringWithAggregatesFilter<"WizardType"> | string
    description?: StringNullableWithAggregatesFilter<"WizardType"> | string | null
    company_id?: IntWithAggregatesFilter<"WizardType"> | number
  }

  export type MasterEntityWhereInput = {
    AND?: MasterEntityWhereInput | MasterEntityWhereInput[]
    OR?: MasterEntityWhereInput[]
    NOT?: MasterEntityWhereInput | MasterEntityWhereInput[]
    id?: IntFilter<"MasterEntity"> | number
    uuid?: StringFilter<"MasterEntity"> | string
    name?: StringFilter<"MasterEntity"> | string
    entity_name?: StringFilter<"MasterEntity"> | string
    entity_type?: StringFilter<"MasterEntity"> | string
    primary_table?: StringNullableFilter<"MasterEntity"> | string | null
    is_admin_module?: BoolFilter<"MasterEntity"> | boolean
    associated_tables?: StringNullableFilter<"MasterEntity"> | string | null
    query_information?: StringNullableFilter<"MasterEntity"> | string | null
    form_information?: StringNullableFilter<"MasterEntity"> | string | null
    add_query_information?: StringNullableFilter<"MasterEntity"> | string | null
    edit_query_information?: StringNullableFilter<"MasterEntity"> | string | null
    preset_query_information?: StringNullableFilter<"MasterEntity"> | string | null
    static_page_content?: StringNullableFilter<"MasterEntity"> | string | null
    export_template_id?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_group_id?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_type?: StringNullableFilter<"MasterEntity"> | string | null
    dashboard_wizard_rows?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_columns?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_order_no?: DecimalNullableFilter<"MasterEntity"> | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: StringNullableFilter<"MasterEntity"> | string | null
    status_id?: IntFilter<"MasterEntity"> | number
    company_id?: IntFilter<"MasterEntity"> | number
    created_at?: DateTimeFilter<"MasterEntity"> | Date | string
    deleted_at?: DateTimeNullableFilter<"MasterEntity"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    permissions?: PermissionsListRelationFilter
    line_items?: MasterEntityLineItemListRelationFilter
    menus?: MenuItemsListRelationFilter
  }

  export type MasterEntityOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    entity_name?: SortOrder
    entity_type?: SortOrder
    primary_table?: SortOrderInput | SortOrder
    is_admin_module?: SortOrder
    associated_tables?: SortOrderInput | SortOrder
    query_information?: SortOrderInput | SortOrder
    form_information?: SortOrderInput | SortOrder
    add_query_information?: SortOrderInput | SortOrder
    edit_query_information?: SortOrderInput | SortOrder
    preset_query_information?: SortOrderInput | SortOrder
    static_page_content?: SortOrderInput | SortOrder
    export_template_id?: SortOrderInput | SortOrder
    dashboard_wizard_group_id?: SortOrderInput | SortOrder
    dashboard_wizard_type?: SortOrderInput | SortOrder
    dashboard_wizard_rows?: SortOrderInput | SortOrder
    dashboard_wizard_columns?: SortOrderInput | SortOrder
    dashboard_wizard_order_no?: SortOrderInput | SortOrder
    dashboard_wizard_options?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    permissions?: PermissionsOrderByRelationAggregateInput
    line_items?: MasterEntityLineItemOrderByRelationAggregateInput
    menus?: MenuItemsOrderByRelationAggregateInput
  }

  export type MasterEntityWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: MasterEntityCompany_idIdCompoundUniqueInput
    company_id_entity_name?: MasterEntityCompany_idEntity_nameCompoundUniqueInput
    AND?: MasterEntityWhereInput | MasterEntityWhereInput[]
    OR?: MasterEntityWhereInput[]
    NOT?: MasterEntityWhereInput | MasterEntityWhereInput[]
    uuid?: StringFilter<"MasterEntity"> | string
    name?: StringFilter<"MasterEntity"> | string
    entity_name?: StringFilter<"MasterEntity"> | string
    entity_type?: StringFilter<"MasterEntity"> | string
    primary_table?: StringNullableFilter<"MasterEntity"> | string | null
    is_admin_module?: BoolFilter<"MasterEntity"> | boolean
    associated_tables?: StringNullableFilter<"MasterEntity"> | string | null
    query_information?: StringNullableFilter<"MasterEntity"> | string | null
    form_information?: StringNullableFilter<"MasterEntity"> | string | null
    add_query_information?: StringNullableFilter<"MasterEntity"> | string | null
    edit_query_information?: StringNullableFilter<"MasterEntity"> | string | null
    preset_query_information?: StringNullableFilter<"MasterEntity"> | string | null
    static_page_content?: StringNullableFilter<"MasterEntity"> | string | null
    export_template_id?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_group_id?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_type?: StringNullableFilter<"MasterEntity"> | string | null
    dashboard_wizard_rows?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_columns?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_order_no?: DecimalNullableFilter<"MasterEntity"> | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: StringNullableFilter<"MasterEntity"> | string | null
    status_id?: IntFilter<"MasterEntity"> | number
    company_id?: IntFilter<"MasterEntity"> | number
    created_at?: DateTimeFilter<"MasterEntity"> | Date | string
    deleted_at?: DateTimeNullableFilter<"MasterEntity"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    permissions?: PermissionsListRelationFilter
    line_items?: MasterEntityLineItemListRelationFilter
    menus?: MenuItemsListRelationFilter
  }, "id" | "company_id_id" | "company_id_entity_name">

  export type MasterEntityOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    entity_name?: SortOrder
    entity_type?: SortOrder
    primary_table?: SortOrderInput | SortOrder
    is_admin_module?: SortOrder
    associated_tables?: SortOrderInput | SortOrder
    query_information?: SortOrderInput | SortOrder
    form_information?: SortOrderInput | SortOrder
    add_query_information?: SortOrderInput | SortOrder
    edit_query_information?: SortOrderInput | SortOrder
    preset_query_information?: SortOrderInput | SortOrder
    static_page_content?: SortOrderInput | SortOrder
    export_template_id?: SortOrderInput | SortOrder
    dashboard_wizard_group_id?: SortOrderInput | SortOrder
    dashboard_wizard_type?: SortOrderInput | SortOrder
    dashboard_wizard_rows?: SortOrderInput | SortOrder
    dashboard_wizard_columns?: SortOrderInput | SortOrder
    dashboard_wizard_order_no?: SortOrderInput | SortOrder
    dashboard_wizard_options?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: MasterEntityCountOrderByAggregateInput
    _avg?: MasterEntityAvgOrderByAggregateInput
    _max?: MasterEntityMaxOrderByAggregateInput
    _min?: MasterEntityMinOrderByAggregateInput
    _sum?: MasterEntitySumOrderByAggregateInput
  }

  export type MasterEntityScalarWhereWithAggregatesInput = {
    AND?: MasterEntityScalarWhereWithAggregatesInput | MasterEntityScalarWhereWithAggregatesInput[]
    OR?: MasterEntityScalarWhereWithAggregatesInput[]
    NOT?: MasterEntityScalarWhereWithAggregatesInput | MasterEntityScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"MasterEntity"> | number
    uuid?: StringWithAggregatesFilter<"MasterEntity"> | string
    name?: StringWithAggregatesFilter<"MasterEntity"> | string
    entity_name?: StringWithAggregatesFilter<"MasterEntity"> | string
    entity_type?: StringWithAggregatesFilter<"MasterEntity"> | string
    primary_table?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    is_admin_module?: BoolWithAggregatesFilter<"MasterEntity"> | boolean
    associated_tables?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    query_information?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    form_information?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    add_query_information?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    edit_query_information?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    preset_query_information?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    static_page_content?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    export_template_id?: IntNullableWithAggregatesFilter<"MasterEntity"> | number | null
    dashboard_wizard_group_id?: IntNullableWithAggregatesFilter<"MasterEntity"> | number | null
    dashboard_wizard_type?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    dashboard_wizard_rows?: IntNullableWithAggregatesFilter<"MasterEntity"> | number | null
    dashboard_wizard_columns?: IntNullableWithAggregatesFilter<"MasterEntity"> | number | null
    dashboard_wizard_order_no?: DecimalNullableWithAggregatesFilter<"MasterEntity"> | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: StringNullableWithAggregatesFilter<"MasterEntity"> | string | null
    status_id?: IntWithAggregatesFilter<"MasterEntity"> | number
    company_id?: IntWithAggregatesFilter<"MasterEntity"> | number
    created_at?: DateTimeWithAggregatesFilter<"MasterEntity"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"MasterEntity"> | Date | string | null
  }

  export type MasterEntityLineItemWhereInput = {
    AND?: MasterEntityLineItemWhereInput | MasterEntityLineItemWhereInput[]
    OR?: MasterEntityLineItemWhereInput[]
    NOT?: MasterEntityLineItemWhereInput | MasterEntityLineItemWhereInput[]
    id?: IntFilter<"MasterEntityLineItem"> | number
    master_grid_id?: IntFilter<"MasterEntityLineItem"> | number
    field_name?: StringFilter<"MasterEntityLineItem"> | string
    display_name?: StringFilter<"MasterEntityLineItem"> | string
    order_no?: DecimalFilter<"MasterEntityLineItem"> | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFilter<"MasterEntityLineItem"> | boolean
    is_searchable?: BoolFilter<"MasterEntityLineItem"> | boolean
    clause_type?: StringFilter<"MasterEntityLineItem"> | string
    is_sortable?: BoolFilter<"MasterEntityLineItem"> | boolean
    field_type_id?: IntFilter<"MasterEntityLineItem"> | number
    status_id?: IntFilter<"MasterEntityLineItem"> | number
    company_id?: IntFilter<"MasterEntityLineItem"> | number
    created_at?: DateTimeFilter<"MasterEntityLineItem"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    master_grid?: XOR<MasterEntityRelationFilter, MasterEntityWhereInput>
    field_type?: XOR<FieldTypeNullableRelationFilter, FieldTypeWhereInput> | null
  }

  export type MasterEntityLineItemOrderByWithRelationInput = {
    id?: SortOrder
    master_grid_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    order_no?: SortOrder
    is_grid_column?: SortOrder
    is_searchable?: SortOrder
    clause_type?: SortOrder
    is_sortable?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    master_grid?: MasterEntityOrderByWithRelationInput
    field_type?: FieldTypeOrderByWithRelationInput
  }

  export type MasterEntityLineItemWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: MasterEntityLineItemCompany_idIdCompoundUniqueInput
    company_id_master_grid_id_field_name_display_name?: MasterEntityLineItemCompany_idMaster_grid_idField_nameDisplay_nameCompoundUniqueInput
    AND?: MasterEntityLineItemWhereInput | MasterEntityLineItemWhereInput[]
    OR?: MasterEntityLineItemWhereInput[]
    NOT?: MasterEntityLineItemWhereInput | MasterEntityLineItemWhereInput[]
    master_grid_id?: IntFilter<"MasterEntityLineItem"> | number
    field_name?: StringFilter<"MasterEntityLineItem"> | string
    display_name?: StringFilter<"MasterEntityLineItem"> | string
    order_no?: DecimalFilter<"MasterEntityLineItem"> | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFilter<"MasterEntityLineItem"> | boolean
    is_searchable?: BoolFilter<"MasterEntityLineItem"> | boolean
    clause_type?: StringFilter<"MasterEntityLineItem"> | string
    is_sortable?: BoolFilter<"MasterEntityLineItem"> | boolean
    field_type_id?: IntFilter<"MasterEntityLineItem"> | number
    status_id?: IntFilter<"MasterEntityLineItem"> | number
    company_id?: IntFilter<"MasterEntityLineItem"> | number
    created_at?: DateTimeFilter<"MasterEntityLineItem"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    master_grid?: XOR<MasterEntityRelationFilter, MasterEntityWhereInput>
    field_type?: XOR<FieldTypeNullableRelationFilter, FieldTypeWhereInput> | null
  }, "id" | "company_id_id" | "company_id_master_grid_id_field_name_display_name">

  export type MasterEntityLineItemOrderByWithAggregationInput = {
    id?: SortOrder
    master_grid_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    order_no?: SortOrder
    is_grid_column?: SortOrder
    is_searchable?: SortOrder
    clause_type?: SortOrder
    is_sortable?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: MasterEntityLineItemCountOrderByAggregateInput
    _avg?: MasterEntityLineItemAvgOrderByAggregateInput
    _max?: MasterEntityLineItemMaxOrderByAggregateInput
    _min?: MasterEntityLineItemMinOrderByAggregateInput
    _sum?: MasterEntityLineItemSumOrderByAggregateInput
  }

  export type MasterEntityLineItemScalarWhereWithAggregatesInput = {
    AND?: MasterEntityLineItemScalarWhereWithAggregatesInput | MasterEntityLineItemScalarWhereWithAggregatesInput[]
    OR?: MasterEntityLineItemScalarWhereWithAggregatesInput[]
    NOT?: MasterEntityLineItemScalarWhereWithAggregatesInput | MasterEntityLineItemScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"MasterEntityLineItem"> | number
    master_grid_id?: IntWithAggregatesFilter<"MasterEntityLineItem"> | number
    field_name?: StringWithAggregatesFilter<"MasterEntityLineItem"> | string
    display_name?: StringWithAggregatesFilter<"MasterEntityLineItem"> | string
    order_no?: DecimalWithAggregatesFilter<"MasterEntityLineItem"> | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolWithAggregatesFilter<"MasterEntityLineItem"> | boolean
    is_searchable?: BoolWithAggregatesFilter<"MasterEntityLineItem"> | boolean
    clause_type?: StringWithAggregatesFilter<"MasterEntityLineItem"> | string
    is_sortable?: BoolWithAggregatesFilter<"MasterEntityLineItem"> | boolean
    field_type_id?: IntWithAggregatesFilter<"MasterEntityLineItem"> | number
    status_id?: IntWithAggregatesFilter<"MasterEntityLineItem"> | number
    company_id?: IntWithAggregatesFilter<"MasterEntityLineItem"> | number
    created_at?: DateTimeWithAggregatesFilter<"MasterEntityLineItem"> | Date | string
  }

  export type FieldTypeWhereInput = {
    AND?: FieldTypeWhereInput | FieldTypeWhereInput[]
    OR?: FieldTypeWhereInput[]
    NOT?: FieldTypeWhereInput | FieldTypeWhereInput[]
    id?: IntFilter<"FieldType"> | number
    field_type?: StringFilter<"FieldType"> | string
    company_id?: IntFilter<"FieldType"> | number
    status_id?: IntFilter<"FieldType"> | number
    created_at?: DateTimeFilter<"FieldType"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    master_grid_lineitem?: MasterEntityLineItemListRelationFilter
    importTemplateLineItem?: ImportTemplateLineItemListRelationFilter
    exportTemplateLineItem?: ExportTemplateLineItemListRelationFilter
  }

  export type FieldTypeOrderByWithRelationInput = {
    id?: SortOrder
    field_type?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    master_grid_lineitem?: MasterEntityLineItemOrderByRelationAggregateInput
    importTemplateLineItem?: ImportTemplateLineItemOrderByRelationAggregateInput
    exportTemplateLineItem?: ExportTemplateLineItemOrderByRelationAggregateInput
  }

  export type FieldTypeWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: FieldTypeCompany_idIdCompoundUniqueInput
    AND?: FieldTypeWhereInput | FieldTypeWhereInput[]
    OR?: FieldTypeWhereInput[]
    NOT?: FieldTypeWhereInput | FieldTypeWhereInput[]
    field_type?: StringFilter<"FieldType"> | string
    company_id?: IntFilter<"FieldType"> | number
    status_id?: IntFilter<"FieldType"> | number
    created_at?: DateTimeFilter<"FieldType"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    master_grid_lineitem?: MasterEntityLineItemListRelationFilter
    importTemplateLineItem?: ImportTemplateLineItemListRelationFilter
    exportTemplateLineItem?: ExportTemplateLineItemListRelationFilter
  }, "id" | "company_id_id">

  export type FieldTypeOrderByWithAggregationInput = {
    id?: SortOrder
    field_type?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    _count?: FieldTypeCountOrderByAggregateInput
    _avg?: FieldTypeAvgOrderByAggregateInput
    _max?: FieldTypeMaxOrderByAggregateInput
    _min?: FieldTypeMinOrderByAggregateInput
    _sum?: FieldTypeSumOrderByAggregateInput
  }

  export type FieldTypeScalarWhereWithAggregatesInput = {
    AND?: FieldTypeScalarWhereWithAggregatesInput | FieldTypeScalarWhereWithAggregatesInput[]
    OR?: FieldTypeScalarWhereWithAggregatesInput[]
    NOT?: FieldTypeScalarWhereWithAggregatesInput | FieldTypeScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"FieldType"> | number
    field_type?: StringWithAggregatesFilter<"FieldType"> | string
    company_id?: IntWithAggregatesFilter<"FieldType"> | number
    status_id?: IntWithAggregatesFilter<"FieldType"> | number
    created_at?: DateTimeWithAggregatesFilter<"FieldType"> | Date | string
  }

  export type menuTypeWhereInput = {
    AND?: menuTypeWhereInput | menuTypeWhereInput[]
    OR?: menuTypeWhereInput[]
    NOT?: menuTypeWhereInput | menuTypeWhereInput[]
    id?: IntFilter<"menuType"> | number
    name?: StringNullableFilter<"menuType"> | string | null
    status_id?: IntFilter<"menuType"> | number
    company_id?: IntFilter<"menuType"> | number
    created_at?: DateTimeFilter<"menuType"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
  }

  export type menuTypeOrderByWithRelationInput = {
    id?: SortOrder
    name?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
  }

  export type menuTypeWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: menuTypeCompany_idIdCompoundUniqueInput
    AND?: menuTypeWhereInput | menuTypeWhereInput[]
    OR?: menuTypeWhereInput[]
    NOT?: menuTypeWhereInput | menuTypeWhereInput[]
    name?: StringNullableFilter<"menuType"> | string | null
    status_id?: IntFilter<"menuType"> | number
    company_id?: IntFilter<"menuType"> | number
    created_at?: DateTimeFilter<"menuType"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
  }, "id" | "company_id_id">

  export type menuTypeOrderByWithAggregationInput = {
    id?: SortOrder
    name?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: menuTypeCountOrderByAggregateInput
    _avg?: menuTypeAvgOrderByAggregateInput
    _max?: menuTypeMaxOrderByAggregateInput
    _min?: menuTypeMinOrderByAggregateInput
    _sum?: menuTypeSumOrderByAggregateInput
  }

  export type menuTypeScalarWhereWithAggregatesInput = {
    AND?: menuTypeScalarWhereWithAggregatesInput | menuTypeScalarWhereWithAggregatesInput[]
    OR?: menuTypeScalarWhereWithAggregatesInput[]
    NOT?: menuTypeScalarWhereWithAggregatesInput | menuTypeScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"menuType"> | number
    name?: StringNullableWithAggregatesFilter<"menuType"> | string | null
    status_id?: IntWithAggregatesFilter<"menuType"> | number
    company_id?: IntWithAggregatesFilter<"menuType"> | number
    created_at?: DateTimeWithAggregatesFilter<"menuType"> | Date | string
  }

  export type EmailTemplateProcessWhereInput = {
    AND?: EmailTemplateProcessWhereInput | EmailTemplateProcessWhereInput[]
    OR?: EmailTemplateProcessWhereInput[]
    NOT?: EmailTemplateProcessWhereInput | EmailTemplateProcessWhereInput[]
    id?: IntFilter<"EmailTemplateProcess"> | number
    uuid?: StringFilter<"EmailTemplateProcess"> | string
    name?: StringFilter<"EmailTemplateProcess"> | string
    slug?: StringFilter<"EmailTemplateProcess"> | string
    query_information?: StringNullableFilter<"EmailTemplateProcess"> | string | null
    status_id?: IntFilter<"EmailTemplateProcess"> | number
    company_id?: IntFilter<"EmailTemplateProcess"> | number
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    email_template_groups?: EmailTemplateProcessTagsMappingListRelationFilter
    email_templates?: EmailTemplateListRelationFilter
    email_template_assignments?: EmailTemplateAssignmentListRelationFilter
  }

  export type EmailTemplateProcessOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    query_information?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    status?: StatusOrderByWithRelationInput
    email_template_groups?: EmailTemplateProcessTagsMappingOrderByRelationAggregateInput
    email_templates?: EmailTemplateOrderByRelationAggregateInput
    email_template_assignments?: EmailTemplateAssignmentOrderByRelationAggregateInput
  }

  export type EmailTemplateProcessWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: EmailTemplateProcessCompany_idIdCompoundUniqueInput
    company_id_slug?: EmailTemplateProcessCompany_idSlugCompoundUniqueInput
    id_company_id?: EmailTemplateProcessIdCompany_idCompoundUniqueInput
    AND?: EmailTemplateProcessWhereInput | EmailTemplateProcessWhereInput[]
    OR?: EmailTemplateProcessWhereInput[]
    NOT?: EmailTemplateProcessWhereInput | EmailTemplateProcessWhereInput[]
    uuid?: StringFilter<"EmailTemplateProcess"> | string
    name?: StringFilter<"EmailTemplateProcess"> | string
    slug?: StringFilter<"EmailTemplateProcess"> | string
    query_information?: StringNullableFilter<"EmailTemplateProcess"> | string | null
    status_id?: IntFilter<"EmailTemplateProcess"> | number
    company_id?: IntFilter<"EmailTemplateProcess"> | number
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    email_template_groups?: EmailTemplateProcessTagsMappingListRelationFilter
    email_templates?: EmailTemplateListRelationFilter
    email_template_assignments?: EmailTemplateAssignmentListRelationFilter
  }, "id" | "company_id_id" | "company_id_slug" | "id_company_id">

  export type EmailTemplateProcessOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    query_information?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    _count?: EmailTemplateProcessCountOrderByAggregateInput
    _avg?: EmailTemplateProcessAvgOrderByAggregateInput
    _max?: EmailTemplateProcessMaxOrderByAggregateInput
    _min?: EmailTemplateProcessMinOrderByAggregateInput
    _sum?: EmailTemplateProcessSumOrderByAggregateInput
  }

  export type EmailTemplateProcessScalarWhereWithAggregatesInput = {
    AND?: EmailTemplateProcessScalarWhereWithAggregatesInput | EmailTemplateProcessScalarWhereWithAggregatesInput[]
    OR?: EmailTemplateProcessScalarWhereWithAggregatesInput[]
    NOT?: EmailTemplateProcessScalarWhereWithAggregatesInput | EmailTemplateProcessScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"EmailTemplateProcess"> | number
    uuid?: StringWithAggregatesFilter<"EmailTemplateProcess"> | string
    name?: StringWithAggregatesFilter<"EmailTemplateProcess"> | string
    slug?: StringWithAggregatesFilter<"EmailTemplateProcess"> | string
    query_information?: StringNullableWithAggregatesFilter<"EmailTemplateProcess"> | string | null
    status_id?: IntWithAggregatesFilter<"EmailTemplateProcess"> | number
    company_id?: IntWithAggregatesFilter<"EmailTemplateProcess"> | number
  }

  export type EmailTemplateTagWhereInput = {
    AND?: EmailTemplateTagWhereInput | EmailTemplateTagWhereInput[]
    OR?: EmailTemplateTagWhereInput[]
    NOT?: EmailTemplateTagWhereInput | EmailTemplateTagWhereInput[]
    id?: IntFilter<"EmailTemplateTag"> | number
    uuid?: StringFilter<"EmailTemplateTag"> | string
    slug?: StringFilter<"EmailTemplateTag"> | string
    name?: StringNullableFilter<"EmailTemplateTag"> | string | null
    description?: StringNullableFilter<"EmailTemplateTag"> | string | null
    status_id?: IntFilter<"EmailTemplateTag"> | number
    company_id?: IntFilter<"EmailTemplateTag"> | number
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    email_template_groups?: EmailTemplateProcessTagsMappingListRelationFilter
  }

  export type EmailTemplateTagOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    status?: StatusOrderByWithRelationInput
    email_template_groups?: EmailTemplateProcessTagsMappingOrderByRelationAggregateInput
  }

  export type EmailTemplateTagWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: EmailTemplateTagCompany_idIdCompoundUniqueInput
    company_id_slug?: EmailTemplateTagCompany_idSlugCompoundUniqueInput
    AND?: EmailTemplateTagWhereInput | EmailTemplateTagWhereInput[]
    OR?: EmailTemplateTagWhereInput[]
    NOT?: EmailTemplateTagWhereInput | EmailTemplateTagWhereInput[]
    uuid?: StringFilter<"EmailTemplateTag"> | string
    slug?: StringFilter<"EmailTemplateTag"> | string
    name?: StringNullableFilter<"EmailTemplateTag"> | string | null
    description?: StringNullableFilter<"EmailTemplateTag"> | string | null
    status_id?: IntFilter<"EmailTemplateTag"> | number
    company_id?: IntFilter<"EmailTemplateTag"> | number
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    email_template_groups?: EmailTemplateProcessTagsMappingListRelationFilter
  }, "id" | "company_id_id" | "company_id_slug">

  export type EmailTemplateTagOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    _count?: EmailTemplateTagCountOrderByAggregateInput
    _avg?: EmailTemplateTagAvgOrderByAggregateInput
    _max?: EmailTemplateTagMaxOrderByAggregateInput
    _min?: EmailTemplateTagMinOrderByAggregateInput
    _sum?: EmailTemplateTagSumOrderByAggregateInput
  }

  export type EmailTemplateTagScalarWhereWithAggregatesInput = {
    AND?: EmailTemplateTagScalarWhereWithAggregatesInput | EmailTemplateTagScalarWhereWithAggregatesInput[]
    OR?: EmailTemplateTagScalarWhereWithAggregatesInput[]
    NOT?: EmailTemplateTagScalarWhereWithAggregatesInput | EmailTemplateTagScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"EmailTemplateTag"> | number
    uuid?: StringWithAggregatesFilter<"EmailTemplateTag"> | string
    slug?: StringWithAggregatesFilter<"EmailTemplateTag"> | string
    name?: StringNullableWithAggregatesFilter<"EmailTemplateTag"> | string | null
    description?: StringNullableWithAggregatesFilter<"EmailTemplateTag"> | string | null
    status_id?: IntWithAggregatesFilter<"EmailTemplateTag"> | number
    company_id?: IntWithAggregatesFilter<"EmailTemplateTag"> | number
  }

  export type EmailTemplateRecipientTagWhereInput = {
    AND?: EmailTemplateRecipientTagWhereInput | EmailTemplateRecipientTagWhereInput[]
    OR?: EmailTemplateRecipientTagWhereInput[]
    NOT?: EmailTemplateRecipientTagWhereInput | EmailTemplateRecipientTagWhereInput[]
    id?: IntFilter<"EmailTemplateRecipientTag"> | number
    uuid?: StringFilter<"EmailTemplateRecipientTag"> | string
    slug?: StringFilter<"EmailTemplateRecipientTag"> | string
    name?: StringNullableFilter<"EmailTemplateRecipientTag"> | string | null
    description?: StringNullableFilter<"EmailTemplateRecipientTag"> | string | null
    query_information?: StringNullableFilter<"EmailTemplateRecipientTag"> | string | null
    status_id?: IntFilter<"EmailTemplateRecipientTag"> | number
    company_id?: IntFilter<"EmailTemplateRecipientTag"> | number
    status?: XOR<StatusRelationFilter, StatusWhereInput>
  }

  export type EmailTemplateRecipientTagOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    query_information?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    status?: StatusOrderByWithRelationInput
  }

  export type EmailTemplateRecipientTagWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: EmailTemplateRecipientTagCompany_idIdCompoundUniqueInput
    company_id_slug?: EmailTemplateRecipientTagCompany_idSlugCompoundUniqueInput
    AND?: EmailTemplateRecipientTagWhereInput | EmailTemplateRecipientTagWhereInput[]
    OR?: EmailTemplateRecipientTagWhereInput[]
    NOT?: EmailTemplateRecipientTagWhereInput | EmailTemplateRecipientTagWhereInput[]
    uuid?: StringFilter<"EmailTemplateRecipientTag"> | string
    slug?: StringFilter<"EmailTemplateRecipientTag"> | string
    name?: StringNullableFilter<"EmailTemplateRecipientTag"> | string | null
    description?: StringNullableFilter<"EmailTemplateRecipientTag"> | string | null
    query_information?: StringNullableFilter<"EmailTemplateRecipientTag"> | string | null
    status_id?: IntFilter<"EmailTemplateRecipientTag"> | number
    company_id?: IntFilter<"EmailTemplateRecipientTag"> | number
    status?: XOR<StatusRelationFilter, StatusWhereInput>
  }, "id" | "company_id_id" | "company_id_slug">

  export type EmailTemplateRecipientTagOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    query_information?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    _count?: EmailTemplateRecipientTagCountOrderByAggregateInput
    _avg?: EmailTemplateRecipientTagAvgOrderByAggregateInput
    _max?: EmailTemplateRecipientTagMaxOrderByAggregateInput
    _min?: EmailTemplateRecipientTagMinOrderByAggregateInput
    _sum?: EmailTemplateRecipientTagSumOrderByAggregateInput
  }

  export type EmailTemplateRecipientTagScalarWhereWithAggregatesInput = {
    AND?: EmailTemplateRecipientTagScalarWhereWithAggregatesInput | EmailTemplateRecipientTagScalarWhereWithAggregatesInput[]
    OR?: EmailTemplateRecipientTagScalarWhereWithAggregatesInput[]
    NOT?: EmailTemplateRecipientTagScalarWhereWithAggregatesInput | EmailTemplateRecipientTagScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"EmailTemplateRecipientTag"> | number
    uuid?: StringWithAggregatesFilter<"EmailTemplateRecipientTag"> | string
    slug?: StringWithAggregatesFilter<"EmailTemplateRecipientTag"> | string
    name?: StringNullableWithAggregatesFilter<"EmailTemplateRecipientTag"> | string | null
    description?: StringNullableWithAggregatesFilter<"EmailTemplateRecipientTag"> | string | null
    query_information?: StringNullableWithAggregatesFilter<"EmailTemplateRecipientTag"> | string | null
    status_id?: IntWithAggregatesFilter<"EmailTemplateRecipientTag"> | number
    company_id?: IntWithAggregatesFilter<"EmailTemplateRecipientTag"> | number
  }

  export type EmailTemplateProcessTagsMappingWhereInput = {
    AND?: EmailTemplateProcessTagsMappingWhereInput | EmailTemplateProcessTagsMappingWhereInput[]
    OR?: EmailTemplateProcessTagsMappingWhereInput[]
    NOT?: EmailTemplateProcessTagsMappingWhereInput | EmailTemplateProcessTagsMappingWhereInput[]
    email_template_process_id?: IntFilter<"EmailTemplateProcessTagsMapping"> | number
    email_template_tag_id?: IntFilter<"EmailTemplateProcessTagsMapping"> | number
    company_id?: IntFilter<"EmailTemplateProcessTagsMapping"> | number
    email_template_process?: XOR<EmailTemplateProcessRelationFilter, EmailTemplateProcessWhereInput>
    email_template_tag?: XOR<EmailTemplateTagRelationFilter, EmailTemplateTagWhereInput>
  }

  export type EmailTemplateProcessTagsMappingOrderByWithRelationInput = {
    email_template_process_id?: SortOrder
    email_template_tag_id?: SortOrder
    company_id?: SortOrder
    email_template_process?: EmailTemplateProcessOrderByWithRelationInput
    email_template_tag?: EmailTemplateTagOrderByWithRelationInput
  }

  export type EmailTemplateProcessTagsMappingWhereUniqueInput = Prisma.AtLeast<{
    email_template_process_id_email_template_tag_id_company_id?: EmailTemplateProcessTagsMappingEmail_template_process_idEmail_template_tag_idCompany_idCompoundUniqueInput
    AND?: EmailTemplateProcessTagsMappingWhereInput | EmailTemplateProcessTagsMappingWhereInput[]
    OR?: EmailTemplateProcessTagsMappingWhereInput[]
    NOT?: EmailTemplateProcessTagsMappingWhereInput | EmailTemplateProcessTagsMappingWhereInput[]
    email_template_process_id?: IntFilter<"EmailTemplateProcessTagsMapping"> | number
    email_template_tag_id?: IntFilter<"EmailTemplateProcessTagsMapping"> | number
    company_id?: IntFilter<"EmailTemplateProcessTagsMapping"> | number
    email_template_process?: XOR<EmailTemplateProcessRelationFilter, EmailTemplateProcessWhereInput>
    email_template_tag?: XOR<EmailTemplateTagRelationFilter, EmailTemplateTagWhereInput>
  }, "email_template_process_id_email_template_tag_id_company_id">

  export type EmailTemplateProcessTagsMappingOrderByWithAggregationInput = {
    email_template_process_id?: SortOrder
    email_template_tag_id?: SortOrder
    company_id?: SortOrder
    _count?: EmailTemplateProcessTagsMappingCountOrderByAggregateInput
    _avg?: EmailTemplateProcessTagsMappingAvgOrderByAggregateInput
    _max?: EmailTemplateProcessTagsMappingMaxOrderByAggregateInput
    _min?: EmailTemplateProcessTagsMappingMinOrderByAggregateInput
    _sum?: EmailTemplateProcessTagsMappingSumOrderByAggregateInput
  }

  export type EmailTemplateProcessTagsMappingScalarWhereWithAggregatesInput = {
    AND?: EmailTemplateProcessTagsMappingScalarWhereWithAggregatesInput | EmailTemplateProcessTagsMappingScalarWhereWithAggregatesInput[]
    OR?: EmailTemplateProcessTagsMappingScalarWhereWithAggregatesInput[]
    NOT?: EmailTemplateProcessTagsMappingScalarWhereWithAggregatesInput | EmailTemplateProcessTagsMappingScalarWhereWithAggregatesInput[]
    email_template_process_id?: IntWithAggregatesFilter<"EmailTemplateProcessTagsMapping"> | number
    email_template_tag_id?: IntWithAggregatesFilter<"EmailTemplateProcessTagsMapping"> | number
    company_id?: IntWithAggregatesFilter<"EmailTemplateProcessTagsMapping"> | number
  }

  export type EmailTemplateWhereInput = {
    AND?: EmailTemplateWhereInput | EmailTemplateWhereInput[]
    OR?: EmailTemplateWhereInput[]
    NOT?: EmailTemplateWhereInput | EmailTemplateWhereInput[]
    id?: IntFilter<"EmailTemplate"> | number
    uuid?: StringFilter<"EmailTemplate"> | string
    slug?: StringFilter<"EmailTemplate"> | string
    name?: StringFilter<"EmailTemplate"> | string
    subject?: StringFilter<"EmailTemplate"> | string
    template_body?: StringFilter<"EmailTemplate"> | string
    email_template_process_id?: IntFilter<"EmailTemplate"> | number
    status_id?: IntFilter<"EmailTemplate"> | number
    created_at?: DateTimeFilter<"EmailTemplate"> | Date | string
    created_by?: IntNullableFilter<"EmailTemplate"> | number | null
    updated_at?: DateTimeFilter<"EmailTemplate"> | Date | string
    updated_by?: IntNullableFilter<"EmailTemplate"> | number | null
    deleted_at?: DateTimeNullableFilter<"EmailTemplate"> | Date | string | null
    deleted_by?: IntNullableFilter<"EmailTemplate"> | number | null
    company_id?: IntFilter<"EmailTemplate"> | number
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    email_template_process?: XOR<EmailTemplateProcessRelationFilter, EmailTemplateProcessWhereInput>
    email_template_assignments?: EmailTemplateAssignmentListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type EmailTemplateOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    subject?: SortOrder
    template_body?: SortOrder
    email_template_process_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    company_id?: SortOrder
    status?: StatusOrderByWithRelationInput
    email_template_process?: EmailTemplateProcessOrderByWithRelationInput
    email_template_assignments?: EmailTemplateAssignmentOrderByRelationAggregateInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
  }

  export type EmailTemplateWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: EmailTemplateCompany_idIdCompoundUniqueInput
    company_id_slug?: EmailTemplateCompany_idSlugCompoundUniqueInput
    AND?: EmailTemplateWhereInput | EmailTemplateWhereInput[]
    OR?: EmailTemplateWhereInput[]
    NOT?: EmailTemplateWhereInput | EmailTemplateWhereInput[]
    uuid?: StringFilter<"EmailTemplate"> | string
    slug?: StringFilter<"EmailTemplate"> | string
    name?: StringFilter<"EmailTemplate"> | string
    subject?: StringFilter<"EmailTemplate"> | string
    template_body?: StringFilter<"EmailTemplate"> | string
    email_template_process_id?: IntFilter<"EmailTemplate"> | number
    status_id?: IntFilter<"EmailTemplate"> | number
    created_at?: DateTimeFilter<"EmailTemplate"> | Date | string
    created_by?: IntNullableFilter<"EmailTemplate"> | number | null
    updated_at?: DateTimeFilter<"EmailTemplate"> | Date | string
    updated_by?: IntNullableFilter<"EmailTemplate"> | number | null
    deleted_at?: DateTimeNullableFilter<"EmailTemplate"> | Date | string | null
    deleted_by?: IntNullableFilter<"EmailTemplate"> | number | null
    company_id?: IntFilter<"EmailTemplate"> | number
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    email_template_process?: XOR<EmailTemplateProcessRelationFilter, EmailTemplateProcessWhereInput>
    email_template_assignments?: EmailTemplateAssignmentListRelationFilter
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_slug">

  export type EmailTemplateOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    subject?: SortOrder
    template_body?: SortOrder
    email_template_process_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    company_id?: SortOrder
    _count?: EmailTemplateCountOrderByAggregateInput
    _avg?: EmailTemplateAvgOrderByAggregateInput
    _max?: EmailTemplateMaxOrderByAggregateInput
    _min?: EmailTemplateMinOrderByAggregateInput
    _sum?: EmailTemplateSumOrderByAggregateInput
  }

  export type EmailTemplateScalarWhereWithAggregatesInput = {
    AND?: EmailTemplateScalarWhereWithAggregatesInput | EmailTemplateScalarWhereWithAggregatesInput[]
    OR?: EmailTemplateScalarWhereWithAggregatesInput[]
    NOT?: EmailTemplateScalarWhereWithAggregatesInput | EmailTemplateScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"EmailTemplate"> | number
    uuid?: StringWithAggregatesFilter<"EmailTemplate"> | string
    slug?: StringWithAggregatesFilter<"EmailTemplate"> | string
    name?: StringWithAggregatesFilter<"EmailTemplate"> | string
    subject?: StringWithAggregatesFilter<"EmailTemplate"> | string
    template_body?: StringWithAggregatesFilter<"EmailTemplate"> | string
    email_template_process_id?: IntWithAggregatesFilter<"EmailTemplate"> | number
    status_id?: IntWithAggregatesFilter<"EmailTemplate"> | number
    created_at?: DateTimeWithAggregatesFilter<"EmailTemplate"> | Date | string
    created_by?: IntNullableWithAggregatesFilter<"EmailTemplate"> | number | null
    updated_at?: DateTimeWithAggregatesFilter<"EmailTemplate"> | Date | string
    updated_by?: IntNullableWithAggregatesFilter<"EmailTemplate"> | number | null
    deleted_at?: DateTimeNullableWithAggregatesFilter<"EmailTemplate"> | Date | string | null
    deleted_by?: IntNullableWithAggregatesFilter<"EmailTemplate"> | number | null
    company_id?: IntWithAggregatesFilter<"EmailTemplate"> | number
  }

  export type EmailTemplateAssignmentWhereInput = {
    AND?: EmailTemplateAssignmentWhereInput | EmailTemplateAssignmentWhereInput[]
    OR?: EmailTemplateAssignmentWhereInput[]
    NOT?: EmailTemplateAssignmentWhereInput | EmailTemplateAssignmentWhereInput[]
    id?: IntFilter<"EmailTemplateAssignment"> | number
    uuid?: StringFilter<"EmailTemplateAssignment"> | string
    email_template_process_id?: IntFilter<"EmailTemplateAssignment"> | number
    template_id?: IntFilter<"EmailTemplateAssignment"> | number
    recipient_type?: StringFilter<"EmailTemplateAssignment"> | string
    email_to?: StringNullableFilter<"EmailTemplateAssignment"> | string | null
    mail_cc?: StringNullableFilter<"EmailTemplateAssignment"> | string | null
    mail_bcc?: StringNullableFilter<"EmailTemplateAssignment"> | string | null
    company_id?: IntFilter<"EmailTemplateAssignment"> | number
    created_at?: DateTimeFilter<"EmailTemplateAssignment"> | Date | string
    created_by?: IntFilter<"EmailTemplateAssignment"> | number
    email_template_process?: XOR<EmailTemplateProcessRelationFilter, EmailTemplateProcessWhereInput>
    email_template?: XOR<EmailTemplateRelationFilter, EmailTemplateWhereInput>
    created?: XOR<UserRelationFilter, UserWhereInput>
  }

  export type EmailTemplateAssignmentOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_id?: SortOrder
    template_id?: SortOrder
    recipient_type?: SortOrder
    email_to?: SortOrderInput | SortOrder
    mail_cc?: SortOrderInput | SortOrder
    mail_bcc?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
    email_template_process?: EmailTemplateProcessOrderByWithRelationInput
    email_template?: EmailTemplateOrderByWithRelationInput
    created?: UserOrderByWithRelationInput
  }

  export type EmailTemplateAssignmentWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    AND?: EmailTemplateAssignmentWhereInput | EmailTemplateAssignmentWhereInput[]
    OR?: EmailTemplateAssignmentWhereInput[]
    NOT?: EmailTemplateAssignmentWhereInput | EmailTemplateAssignmentWhereInput[]
    uuid?: StringFilter<"EmailTemplateAssignment"> | string
    email_template_process_id?: IntFilter<"EmailTemplateAssignment"> | number
    template_id?: IntFilter<"EmailTemplateAssignment"> | number
    recipient_type?: StringFilter<"EmailTemplateAssignment"> | string
    email_to?: StringNullableFilter<"EmailTemplateAssignment"> | string | null
    mail_cc?: StringNullableFilter<"EmailTemplateAssignment"> | string | null
    mail_bcc?: StringNullableFilter<"EmailTemplateAssignment"> | string | null
    company_id?: IntFilter<"EmailTemplateAssignment"> | number
    created_at?: DateTimeFilter<"EmailTemplateAssignment"> | Date | string
    created_by?: IntFilter<"EmailTemplateAssignment"> | number
    email_template_process?: XOR<EmailTemplateProcessRelationFilter, EmailTemplateProcessWhereInput>
    email_template?: XOR<EmailTemplateRelationFilter, EmailTemplateWhereInput>
    created?: XOR<UserRelationFilter, UserWhereInput>
  }, "id">

  export type EmailTemplateAssignmentOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_id?: SortOrder
    template_id?: SortOrder
    recipient_type?: SortOrder
    email_to?: SortOrderInput | SortOrder
    mail_cc?: SortOrderInput | SortOrder
    mail_bcc?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
    _count?: EmailTemplateAssignmentCountOrderByAggregateInput
    _avg?: EmailTemplateAssignmentAvgOrderByAggregateInput
    _max?: EmailTemplateAssignmentMaxOrderByAggregateInput
    _min?: EmailTemplateAssignmentMinOrderByAggregateInput
    _sum?: EmailTemplateAssignmentSumOrderByAggregateInput
  }

  export type EmailTemplateAssignmentScalarWhereWithAggregatesInput = {
    AND?: EmailTemplateAssignmentScalarWhereWithAggregatesInput | EmailTemplateAssignmentScalarWhereWithAggregatesInput[]
    OR?: EmailTemplateAssignmentScalarWhereWithAggregatesInput[]
    NOT?: EmailTemplateAssignmentScalarWhereWithAggregatesInput | EmailTemplateAssignmentScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"EmailTemplateAssignment"> | number
    uuid?: StringWithAggregatesFilter<"EmailTemplateAssignment"> | string
    email_template_process_id?: IntWithAggregatesFilter<"EmailTemplateAssignment"> | number
    template_id?: IntWithAggregatesFilter<"EmailTemplateAssignment"> | number
    recipient_type?: StringWithAggregatesFilter<"EmailTemplateAssignment"> | string
    email_to?: StringNullableWithAggregatesFilter<"EmailTemplateAssignment"> | string | null
    mail_cc?: StringNullableWithAggregatesFilter<"EmailTemplateAssignment"> | string | null
    mail_bcc?: StringNullableWithAggregatesFilter<"EmailTemplateAssignment"> | string | null
    company_id?: IntWithAggregatesFilter<"EmailTemplateAssignment"> | number
    created_at?: DateTimeWithAggregatesFilter<"EmailTemplateAssignment"> | Date | string
    created_by?: IntWithAggregatesFilter<"EmailTemplateAssignment"> | number
  }

  export type EmailProcessJobWhereInput = {
    AND?: EmailProcessJobWhereInput | EmailProcessJobWhereInput[]
    OR?: EmailProcessJobWhereInput[]
    NOT?: EmailProcessJobWhereInput | EmailProcessJobWhereInput[]
    id?: IntFilter<"EmailProcessJob"> | number
    uuid?: StringFilter<"EmailProcessJob"> | string
    email_template_process_slug?: StringFilter<"EmailProcessJob"> | string
    unique_id?: StringFilter<"EmailProcessJob"> | string
    user_id?: IntFilter<"EmailProcessJob"> | number
    prefill_data?: StringNullableFilter<"EmailProcessJob"> | string | null
    company_id?: IntFilter<"EmailProcessJob"> | number
    status_id?: IntFilter<"EmailProcessJob"> | number
    created_at?: DateTimeFilter<"EmailProcessJob"> | Date | string
    created_by?: IntNullableFilter<"EmailProcessJob"> | number | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type EmailProcessJobOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_slug?: SortOrder
    unique_id?: SortOrder
    user_id?: SortOrder
    prefill_data?: SortOrderInput | SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    created?: UserOrderByWithRelationInput
  }

  export type EmailProcessJobWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    AND?: EmailProcessJobWhereInput | EmailProcessJobWhereInput[]
    OR?: EmailProcessJobWhereInput[]
    NOT?: EmailProcessJobWhereInput | EmailProcessJobWhereInput[]
    uuid?: StringFilter<"EmailProcessJob"> | string
    email_template_process_slug?: StringFilter<"EmailProcessJob"> | string
    unique_id?: StringFilter<"EmailProcessJob"> | string
    user_id?: IntFilter<"EmailProcessJob"> | number
    prefill_data?: StringNullableFilter<"EmailProcessJob"> | string | null
    company_id?: IntFilter<"EmailProcessJob"> | number
    status_id?: IntFilter<"EmailProcessJob"> | number
    created_at?: DateTimeFilter<"EmailProcessJob"> | Date | string
    created_by?: IntNullableFilter<"EmailProcessJob"> | number | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id">

  export type EmailProcessJobOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_slug?: SortOrder
    unique_id?: SortOrder
    user_id?: SortOrder
    prefill_data?: SortOrderInput | SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrderInput | SortOrder
    _count?: EmailProcessJobCountOrderByAggregateInput
    _avg?: EmailProcessJobAvgOrderByAggregateInput
    _max?: EmailProcessJobMaxOrderByAggregateInput
    _min?: EmailProcessJobMinOrderByAggregateInput
    _sum?: EmailProcessJobSumOrderByAggregateInput
  }

  export type EmailProcessJobScalarWhereWithAggregatesInput = {
    AND?: EmailProcessJobScalarWhereWithAggregatesInput | EmailProcessJobScalarWhereWithAggregatesInput[]
    OR?: EmailProcessJobScalarWhereWithAggregatesInput[]
    NOT?: EmailProcessJobScalarWhereWithAggregatesInput | EmailProcessJobScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"EmailProcessJob"> | number
    uuid?: StringWithAggregatesFilter<"EmailProcessJob"> | string
    email_template_process_slug?: StringWithAggregatesFilter<"EmailProcessJob"> | string
    unique_id?: StringWithAggregatesFilter<"EmailProcessJob"> | string
    user_id?: IntWithAggregatesFilter<"EmailProcessJob"> | number
    prefill_data?: StringNullableWithAggregatesFilter<"EmailProcessJob"> | string | null
    company_id?: IntWithAggregatesFilter<"EmailProcessJob"> | number
    status_id?: IntWithAggregatesFilter<"EmailProcessJob"> | number
    created_at?: DateTimeWithAggregatesFilter<"EmailProcessJob"> | Date | string
    created_by?: IntNullableWithAggregatesFilter<"EmailProcessJob"> | number | null
  }

  export type NotificationJobWhereInput = {
    AND?: NotificationJobWhereInput | NotificationJobWhereInput[]
    OR?: NotificationJobWhereInput[]
    NOT?: NotificationJobWhereInput | NotificationJobWhereInput[]
    id?: IntFilter<"NotificationJob"> | number
    uuid?: StringFilter<"NotificationJob"> | string
    process_slug?: StringFilter<"NotificationJob"> | string
    notification_to?: StringNullableFilter<"NotificationJob"> | string | null
    notification_subject?: StringNullableFilter<"NotificationJob"> | string | null
    notification_content?: StringNullableFilter<"NotificationJob"> | string | null
    notification_cc?: StringNullableFilter<"NotificationJob"> | string | null
    notification_bcc?: StringNullableFilter<"NotificationJob"> | string | null
    notification_type_id?: StringFilter<"NotificationJob"> | string
    notification_status_id?: StringFilter<"NotificationJob"> | string
    company_id?: IntFilter<"NotificationJob"> | number
    status_id?: IntFilter<"NotificationJob"> | number
    created_at?: DateTimeFilter<"NotificationJob"> | Date | string
    created_by?: IntNullableFilter<"NotificationJob"> | number | null
    sent_at?: DateTimeNullableFilter<"NotificationJob"> | Date | string | null
    read_at?: DateTimeNullableFilter<"NotificationJob"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type NotificationJobOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    process_slug?: SortOrder
    notification_to?: SortOrderInput | SortOrder
    notification_subject?: SortOrderInput | SortOrder
    notification_content?: SortOrderInput | SortOrder
    notification_cc?: SortOrderInput | SortOrder
    notification_bcc?: SortOrderInput | SortOrder
    notification_type_id?: SortOrder
    notification_status_id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrderInput | SortOrder
    sent_at?: SortOrderInput | SortOrder
    read_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    created?: UserOrderByWithRelationInput
  }

  export type NotificationJobWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    AND?: NotificationJobWhereInput | NotificationJobWhereInput[]
    OR?: NotificationJobWhereInput[]
    NOT?: NotificationJobWhereInput | NotificationJobWhereInput[]
    uuid?: StringFilter<"NotificationJob"> | string
    process_slug?: StringFilter<"NotificationJob"> | string
    notification_to?: StringNullableFilter<"NotificationJob"> | string | null
    notification_subject?: StringNullableFilter<"NotificationJob"> | string | null
    notification_content?: StringNullableFilter<"NotificationJob"> | string | null
    notification_cc?: StringNullableFilter<"NotificationJob"> | string | null
    notification_bcc?: StringNullableFilter<"NotificationJob"> | string | null
    notification_type_id?: StringFilter<"NotificationJob"> | string
    notification_status_id?: StringFilter<"NotificationJob"> | string
    company_id?: IntFilter<"NotificationJob"> | number
    status_id?: IntFilter<"NotificationJob"> | number
    created_at?: DateTimeFilter<"NotificationJob"> | Date | string
    created_by?: IntNullableFilter<"NotificationJob"> | number | null
    sent_at?: DateTimeNullableFilter<"NotificationJob"> | Date | string | null
    read_at?: DateTimeNullableFilter<"NotificationJob"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id">

  export type NotificationJobOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    process_slug?: SortOrder
    notification_to?: SortOrderInput | SortOrder
    notification_subject?: SortOrderInput | SortOrder
    notification_content?: SortOrderInput | SortOrder
    notification_cc?: SortOrderInput | SortOrder
    notification_bcc?: SortOrderInput | SortOrder
    notification_type_id?: SortOrder
    notification_status_id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrderInput | SortOrder
    sent_at?: SortOrderInput | SortOrder
    read_at?: SortOrderInput | SortOrder
    _count?: NotificationJobCountOrderByAggregateInput
    _avg?: NotificationJobAvgOrderByAggregateInput
    _max?: NotificationJobMaxOrderByAggregateInput
    _min?: NotificationJobMinOrderByAggregateInput
    _sum?: NotificationJobSumOrderByAggregateInput
  }

  export type NotificationJobScalarWhereWithAggregatesInput = {
    AND?: NotificationJobScalarWhereWithAggregatesInput | NotificationJobScalarWhereWithAggregatesInput[]
    OR?: NotificationJobScalarWhereWithAggregatesInput[]
    NOT?: NotificationJobScalarWhereWithAggregatesInput | NotificationJobScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"NotificationJob"> | number
    uuid?: StringWithAggregatesFilter<"NotificationJob"> | string
    process_slug?: StringWithAggregatesFilter<"NotificationJob"> | string
    notification_to?: StringNullableWithAggregatesFilter<"NotificationJob"> | string | null
    notification_subject?: StringNullableWithAggregatesFilter<"NotificationJob"> | string | null
    notification_content?: StringNullableWithAggregatesFilter<"NotificationJob"> | string | null
    notification_cc?: StringNullableWithAggregatesFilter<"NotificationJob"> | string | null
    notification_bcc?: StringNullableWithAggregatesFilter<"NotificationJob"> | string | null
    notification_type_id?: StringWithAggregatesFilter<"NotificationJob"> | string
    notification_status_id?: StringWithAggregatesFilter<"NotificationJob"> | string
    company_id?: IntWithAggregatesFilter<"NotificationJob"> | number
    status_id?: IntWithAggregatesFilter<"NotificationJob"> | number
    created_at?: DateTimeWithAggregatesFilter<"NotificationJob"> | Date | string
    created_by?: IntNullableWithAggregatesFilter<"NotificationJob"> | number | null
    sent_at?: DateTimeNullableWithAggregatesFilter<"NotificationJob"> | Date | string | null
    read_at?: DateTimeNullableWithAggregatesFilter<"NotificationJob"> | Date | string | null
  }

  export type ImportTemplateWhereInput = {
    AND?: ImportTemplateWhereInput | ImportTemplateWhereInput[]
    OR?: ImportTemplateWhereInput[]
    NOT?: ImportTemplateWhereInput | ImportTemplateWhereInput[]
    id?: IntFilter<"ImportTemplate"> | number
    uuid?: StringFilter<"ImportTemplate"> | string
    name?: StringFilter<"ImportTemplate"> | string
    slug?: StringFilter<"ImportTemplate"> | string
    description?: StringNullableFilter<"ImportTemplate"> | string | null
    max_row_count?: IntFilter<"ImportTemplate"> | number
    header_row?: IntFilter<"ImportTemplate"> | number
    data_start_row?: IntFilter<"ImportTemplate"> | number
    data_end_row?: IntFilter<"ImportTemplate"> | number
    ignore_error_rows?: BoolFilter<"ImportTemplate"> | boolean
    is_admin_module?: BoolFilter<"ImportTemplate"> | boolean
    job_type?: StringNullableFilter<"ImportTemplate"> | string | null
    batch_process_count?: IntNullableFilter<"ImportTemplate"> | number | null
    status_id?: IntFilter<"ImportTemplate"> | number
    company_id?: IntFilter<"ImportTemplate"> | number
    created_by?: IntNullableFilter<"ImportTemplate"> | number | null
    created_at?: DateTimeFilter<"ImportTemplate"> | Date | string
    updated_by?: IntNullableFilter<"ImportTemplate"> | number | null
    updated_at?: DateTimeFilter<"ImportTemplate"> | Date | string
    deleted_by?: IntNullableFilter<"ImportTemplate"> | number | null
    deleted_at?: DateTimeNullableFilter<"ImportTemplate"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    line_items?: ImportTemplateLineItemListRelationFilter
    queries?: ImportTemplateQueriesListRelationFilter
  }

  export type ImportTemplateOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrderInput | SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    ignore_error_rows?: SortOrder
    is_admin_module?: SortOrder
    job_type?: SortOrderInput | SortOrder
    batch_process_count?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
    line_items?: ImportTemplateLineItemOrderByRelationAggregateInput
    queries?: ImportTemplateQueriesOrderByRelationAggregateInput
  }

  export type ImportTemplateWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ImportTemplateCompany_idIdCompoundUniqueInput
    company_id_slug?: ImportTemplateCompany_idSlugCompoundUniqueInput
    AND?: ImportTemplateWhereInput | ImportTemplateWhereInput[]
    OR?: ImportTemplateWhereInput[]
    NOT?: ImportTemplateWhereInput | ImportTemplateWhereInput[]
    uuid?: StringFilter<"ImportTemplate"> | string
    name?: StringFilter<"ImportTemplate"> | string
    slug?: StringFilter<"ImportTemplate"> | string
    description?: StringNullableFilter<"ImportTemplate"> | string | null
    max_row_count?: IntFilter<"ImportTemplate"> | number
    header_row?: IntFilter<"ImportTemplate"> | number
    data_start_row?: IntFilter<"ImportTemplate"> | number
    data_end_row?: IntFilter<"ImportTemplate"> | number
    ignore_error_rows?: BoolFilter<"ImportTemplate"> | boolean
    is_admin_module?: BoolFilter<"ImportTemplate"> | boolean
    job_type?: StringNullableFilter<"ImportTemplate"> | string | null
    batch_process_count?: IntNullableFilter<"ImportTemplate"> | number | null
    status_id?: IntFilter<"ImportTemplate"> | number
    company_id?: IntFilter<"ImportTemplate"> | number
    created_by?: IntNullableFilter<"ImportTemplate"> | number | null
    created_at?: DateTimeFilter<"ImportTemplate"> | Date | string
    updated_by?: IntNullableFilter<"ImportTemplate"> | number | null
    updated_at?: DateTimeFilter<"ImportTemplate"> | Date | string
    deleted_by?: IntNullableFilter<"ImportTemplate"> | number | null
    deleted_at?: DateTimeNullableFilter<"ImportTemplate"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    line_items?: ImportTemplateLineItemListRelationFilter
    queries?: ImportTemplateQueriesListRelationFilter
  }, "id" | "company_id_id" | "company_id_slug">

  export type ImportTemplateOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrderInput | SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    ignore_error_rows?: SortOrder
    is_admin_module?: SortOrder
    job_type?: SortOrderInput | SortOrder
    batch_process_count?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: ImportTemplateCountOrderByAggregateInput
    _avg?: ImportTemplateAvgOrderByAggregateInput
    _max?: ImportTemplateMaxOrderByAggregateInput
    _min?: ImportTemplateMinOrderByAggregateInput
    _sum?: ImportTemplateSumOrderByAggregateInput
  }

  export type ImportTemplateScalarWhereWithAggregatesInput = {
    AND?: ImportTemplateScalarWhereWithAggregatesInput | ImportTemplateScalarWhereWithAggregatesInput[]
    OR?: ImportTemplateScalarWhereWithAggregatesInput[]
    NOT?: ImportTemplateScalarWhereWithAggregatesInput | ImportTemplateScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"ImportTemplate"> | number
    uuid?: StringWithAggregatesFilter<"ImportTemplate"> | string
    name?: StringWithAggregatesFilter<"ImportTemplate"> | string
    slug?: StringWithAggregatesFilter<"ImportTemplate"> | string
    description?: StringNullableWithAggregatesFilter<"ImportTemplate"> | string | null
    max_row_count?: IntWithAggregatesFilter<"ImportTemplate"> | number
    header_row?: IntWithAggregatesFilter<"ImportTemplate"> | number
    data_start_row?: IntWithAggregatesFilter<"ImportTemplate"> | number
    data_end_row?: IntWithAggregatesFilter<"ImportTemplate"> | number
    ignore_error_rows?: BoolWithAggregatesFilter<"ImportTemplate"> | boolean
    is_admin_module?: BoolWithAggregatesFilter<"ImportTemplate"> | boolean
    job_type?: StringNullableWithAggregatesFilter<"ImportTemplate"> | string | null
    batch_process_count?: IntNullableWithAggregatesFilter<"ImportTemplate"> | number | null
    status_id?: IntWithAggregatesFilter<"ImportTemplate"> | number
    company_id?: IntWithAggregatesFilter<"ImportTemplate"> | number
    created_by?: IntNullableWithAggregatesFilter<"ImportTemplate"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"ImportTemplate"> | Date | string
    updated_by?: IntNullableWithAggregatesFilter<"ImportTemplate"> | number | null
    updated_at?: DateTimeWithAggregatesFilter<"ImportTemplate"> | Date | string
    deleted_by?: IntNullableWithAggregatesFilter<"ImportTemplate"> | number | null
    deleted_at?: DateTimeNullableWithAggregatesFilter<"ImportTemplate"> | Date | string | null
  }

  export type ImportTemplateLineItemWhereInput = {
    AND?: ImportTemplateLineItemWhereInput | ImportTemplateLineItemWhereInput[]
    OR?: ImportTemplateLineItemWhereInput[]
    NOT?: ImportTemplateLineItemWhereInput | ImportTemplateLineItemWhereInput[]
    id?: IntFilter<"ImportTemplateLineItem"> | number
    import_template_id?: IntFilter<"ImportTemplateLineItem"> | number
    field_name?: StringFilter<"ImportTemplateLineItem"> | string
    display_name?: StringFilter<"ImportTemplateLineItem"> | string
    field_table?: StringFilter<"ImportTemplateLineItem"> | string
    order_no?: DecimalFilter<"ImportTemplateLineItem"> | Decimal | DecimalJsLike | number | string
    width?: IntNullableFilter<"ImportTemplateLineItem"> | number | null
    default_value?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    check_reg_exp?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    is_nullable?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_unique?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_foreign?: BoolFilter<"ImportTemplateLineItem"> | boolean
    unique_query?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_query?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    is_enum?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_multiple?: BoolFilter<"ImportTemplateLineItem"> | boolean
    enum_values?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_table?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_column?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_can_create?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_individual?: BoolFilter<"ImportTemplateLineItem"> | boolean
    individual_column?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    field_type_id?: IntNullableFilter<"ImportTemplateLineItem"> | number | null
    status_id?: IntFilter<"ImportTemplateLineItem"> | number
    company_id?: IntFilter<"ImportTemplateLineItem"> | number
    created_at?: DateTimeFilter<"ImportTemplateLineItem"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    import_template?: XOR<ImportTemplateRelationFilter, ImportTemplateWhereInput>
    field_type?: XOR<FieldTypeNullableRelationFilter, FieldTypeWhereInput> | null
  }

  export type ImportTemplateLineItemOrderByWithRelationInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    width?: SortOrderInput | SortOrder
    default_value?: SortOrderInput | SortOrder
    check_reg_exp?: SortOrderInput | SortOrder
    is_nullable?: SortOrder
    is_unique?: SortOrder
    is_foreign?: SortOrder
    unique_query?: SortOrderInput | SortOrder
    foreign_query?: SortOrderInput | SortOrder
    is_enum?: SortOrder
    is_multiple?: SortOrder
    enum_values?: SortOrderInput | SortOrder
    foreign_table?: SortOrderInput | SortOrder
    foreign_column?: SortOrderInput | SortOrder
    foreign_can_create?: SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrderInput | SortOrder
    field_type_id?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    import_template?: ImportTemplateOrderByWithRelationInput
    field_type?: FieldTypeOrderByWithRelationInput
  }

  export type ImportTemplateLineItemWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ImportTemplateLineItemCompany_idIdCompoundUniqueInput
    company_id_import_template_id_field_table_field_name?: ImportTemplateLineItemCompany_idImport_template_idField_tableField_nameCompoundUniqueInput
    company_id_import_template_id_display_name?: ImportTemplateLineItemCompany_idImport_template_idDisplay_nameCompoundUniqueInput
    AND?: ImportTemplateLineItemWhereInput | ImportTemplateLineItemWhereInput[]
    OR?: ImportTemplateLineItemWhereInput[]
    NOT?: ImportTemplateLineItemWhereInput | ImportTemplateLineItemWhereInput[]
    import_template_id?: IntFilter<"ImportTemplateLineItem"> | number
    field_name?: StringFilter<"ImportTemplateLineItem"> | string
    display_name?: StringFilter<"ImportTemplateLineItem"> | string
    field_table?: StringFilter<"ImportTemplateLineItem"> | string
    order_no?: DecimalFilter<"ImportTemplateLineItem"> | Decimal | DecimalJsLike | number | string
    width?: IntNullableFilter<"ImportTemplateLineItem"> | number | null
    default_value?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    check_reg_exp?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    is_nullable?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_unique?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_foreign?: BoolFilter<"ImportTemplateLineItem"> | boolean
    unique_query?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_query?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    is_enum?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_multiple?: BoolFilter<"ImportTemplateLineItem"> | boolean
    enum_values?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_table?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_column?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_can_create?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_individual?: BoolFilter<"ImportTemplateLineItem"> | boolean
    individual_column?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    field_type_id?: IntNullableFilter<"ImportTemplateLineItem"> | number | null
    status_id?: IntFilter<"ImportTemplateLineItem"> | number
    company_id?: IntFilter<"ImportTemplateLineItem"> | number
    created_at?: DateTimeFilter<"ImportTemplateLineItem"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    import_template?: XOR<ImportTemplateRelationFilter, ImportTemplateWhereInput>
    field_type?: XOR<FieldTypeNullableRelationFilter, FieldTypeWhereInput> | null
  }, "id" | "company_id_id" | "company_id_import_template_id_field_table_field_name" | "company_id_import_template_id_display_name">

  export type ImportTemplateLineItemOrderByWithAggregationInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    width?: SortOrderInput | SortOrder
    default_value?: SortOrderInput | SortOrder
    check_reg_exp?: SortOrderInput | SortOrder
    is_nullable?: SortOrder
    is_unique?: SortOrder
    is_foreign?: SortOrder
    unique_query?: SortOrderInput | SortOrder
    foreign_query?: SortOrderInput | SortOrder
    is_enum?: SortOrder
    is_multiple?: SortOrder
    enum_values?: SortOrderInput | SortOrder
    foreign_table?: SortOrderInput | SortOrder
    foreign_column?: SortOrderInput | SortOrder
    foreign_can_create?: SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrderInput | SortOrder
    field_type_id?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: ImportTemplateLineItemCountOrderByAggregateInput
    _avg?: ImportTemplateLineItemAvgOrderByAggregateInput
    _max?: ImportTemplateLineItemMaxOrderByAggregateInput
    _min?: ImportTemplateLineItemMinOrderByAggregateInput
    _sum?: ImportTemplateLineItemSumOrderByAggregateInput
  }

  export type ImportTemplateLineItemScalarWhereWithAggregatesInput = {
    AND?: ImportTemplateLineItemScalarWhereWithAggregatesInput | ImportTemplateLineItemScalarWhereWithAggregatesInput[]
    OR?: ImportTemplateLineItemScalarWhereWithAggregatesInput[]
    NOT?: ImportTemplateLineItemScalarWhereWithAggregatesInput | ImportTemplateLineItemScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"ImportTemplateLineItem"> | number
    import_template_id?: IntWithAggregatesFilter<"ImportTemplateLineItem"> | number
    field_name?: StringWithAggregatesFilter<"ImportTemplateLineItem"> | string
    display_name?: StringWithAggregatesFilter<"ImportTemplateLineItem"> | string
    field_table?: StringWithAggregatesFilter<"ImportTemplateLineItem"> | string
    order_no?: DecimalWithAggregatesFilter<"ImportTemplateLineItem"> | Decimal | DecimalJsLike | number | string
    width?: IntNullableWithAggregatesFilter<"ImportTemplateLineItem"> | number | null
    default_value?: StringNullableWithAggregatesFilter<"ImportTemplateLineItem"> | string | null
    check_reg_exp?: StringNullableWithAggregatesFilter<"ImportTemplateLineItem"> | string | null
    is_nullable?: BoolWithAggregatesFilter<"ImportTemplateLineItem"> | boolean
    is_unique?: BoolWithAggregatesFilter<"ImportTemplateLineItem"> | boolean
    is_foreign?: BoolWithAggregatesFilter<"ImportTemplateLineItem"> | boolean
    unique_query?: StringNullableWithAggregatesFilter<"ImportTemplateLineItem"> | string | null
    foreign_query?: StringNullableWithAggregatesFilter<"ImportTemplateLineItem"> | string | null
    is_enum?: BoolWithAggregatesFilter<"ImportTemplateLineItem"> | boolean
    is_multiple?: BoolWithAggregatesFilter<"ImportTemplateLineItem"> | boolean
    enum_values?: StringNullableWithAggregatesFilter<"ImportTemplateLineItem"> | string | null
    foreign_table?: StringNullableWithAggregatesFilter<"ImportTemplateLineItem"> | string | null
    foreign_column?: StringNullableWithAggregatesFilter<"ImportTemplateLineItem"> | string | null
    foreign_can_create?: BoolWithAggregatesFilter<"ImportTemplateLineItem"> | boolean
    is_individual?: BoolWithAggregatesFilter<"ImportTemplateLineItem"> | boolean
    individual_column?: StringNullableWithAggregatesFilter<"ImportTemplateLineItem"> | string | null
    field_type_id?: IntNullableWithAggregatesFilter<"ImportTemplateLineItem"> | number | null
    status_id?: IntWithAggregatesFilter<"ImportTemplateLineItem"> | number
    company_id?: IntWithAggregatesFilter<"ImportTemplateLineItem"> | number
    created_at?: DateTimeWithAggregatesFilter<"ImportTemplateLineItem"> | Date | string
  }

  export type ImportTemplateQueriesWhereInput = {
    AND?: ImportTemplateQueriesWhereInput | ImportTemplateQueriesWhereInput[]
    OR?: ImportTemplateQueriesWhereInput[]
    NOT?: ImportTemplateQueriesWhereInput | ImportTemplateQueriesWhereInput[]
    id?: IntFilter<"ImportTemplateQueries"> | number
    import_template_id?: IntFilter<"ImportTemplateQueries"> | number
    query_string?: StringNullableFilter<"ImportTemplateQueries"> | string | null
    query_name?: StringFilter<"ImportTemplateQueries"> | string
    allow_multiple?: BoolFilter<"ImportTemplateQueries"> | boolean
    is_individual?: BoolFilter<"ImportTemplateQueries"> | boolean
    before_lineitems?: BoolFilter<"ImportTemplateQueries"> | boolean
    order_no?: DecimalFilter<"ImportTemplateQueries"> | Decimal | DecimalJsLike | number | string
    status_id?: IntFilter<"ImportTemplateQueries"> | number
    company_id?: IntFilter<"ImportTemplateQueries"> | number
    created_at?: DateTimeFilter<"ImportTemplateQueries"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    import_template?: XOR<ImportTemplateRelationFilter, ImportTemplateWhereInput>
  }

  export type ImportTemplateQueriesOrderByWithRelationInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    query_string?: SortOrderInput | SortOrder
    query_name?: SortOrder
    allow_multiple?: SortOrder
    is_individual?: SortOrder
    before_lineitems?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    import_template?: ImportTemplateOrderByWithRelationInput
  }

  export type ImportTemplateQueriesWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ImportTemplateQueriesCompany_idIdCompoundUniqueInput
    AND?: ImportTemplateQueriesWhereInput | ImportTemplateQueriesWhereInput[]
    OR?: ImportTemplateQueriesWhereInput[]
    NOT?: ImportTemplateQueriesWhereInput | ImportTemplateQueriesWhereInput[]
    import_template_id?: IntFilter<"ImportTemplateQueries"> | number
    query_string?: StringNullableFilter<"ImportTemplateQueries"> | string | null
    query_name?: StringFilter<"ImportTemplateQueries"> | string
    allow_multiple?: BoolFilter<"ImportTemplateQueries"> | boolean
    is_individual?: BoolFilter<"ImportTemplateQueries"> | boolean
    before_lineitems?: BoolFilter<"ImportTemplateQueries"> | boolean
    order_no?: DecimalFilter<"ImportTemplateQueries"> | Decimal | DecimalJsLike | number | string
    status_id?: IntFilter<"ImportTemplateQueries"> | number
    company_id?: IntFilter<"ImportTemplateQueries"> | number
    created_at?: DateTimeFilter<"ImportTemplateQueries"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    import_template?: XOR<ImportTemplateRelationFilter, ImportTemplateWhereInput>
  }, "id" | "company_id_id">

  export type ImportTemplateQueriesOrderByWithAggregationInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    query_string?: SortOrderInput | SortOrder
    query_name?: SortOrder
    allow_multiple?: SortOrder
    is_individual?: SortOrder
    before_lineitems?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: ImportTemplateQueriesCountOrderByAggregateInput
    _avg?: ImportTemplateQueriesAvgOrderByAggregateInput
    _max?: ImportTemplateQueriesMaxOrderByAggregateInput
    _min?: ImportTemplateQueriesMinOrderByAggregateInput
    _sum?: ImportTemplateQueriesSumOrderByAggregateInput
  }

  export type ImportTemplateQueriesScalarWhereWithAggregatesInput = {
    AND?: ImportTemplateQueriesScalarWhereWithAggregatesInput | ImportTemplateQueriesScalarWhereWithAggregatesInput[]
    OR?: ImportTemplateQueriesScalarWhereWithAggregatesInput[]
    NOT?: ImportTemplateQueriesScalarWhereWithAggregatesInput | ImportTemplateQueriesScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"ImportTemplateQueries"> | number
    import_template_id?: IntWithAggregatesFilter<"ImportTemplateQueries"> | number
    query_string?: StringNullableWithAggregatesFilter<"ImportTemplateQueries"> | string | null
    query_name?: StringWithAggregatesFilter<"ImportTemplateQueries"> | string
    allow_multiple?: BoolWithAggregatesFilter<"ImportTemplateQueries"> | boolean
    is_individual?: BoolWithAggregatesFilter<"ImportTemplateQueries"> | boolean
    before_lineitems?: BoolWithAggregatesFilter<"ImportTemplateQueries"> | boolean
    order_no?: DecimalWithAggregatesFilter<"ImportTemplateQueries"> | Decimal | DecimalJsLike | number | string
    status_id?: IntWithAggregatesFilter<"ImportTemplateQueries"> | number
    company_id?: IntWithAggregatesFilter<"ImportTemplateQueries"> | number
    created_at?: DateTimeWithAggregatesFilter<"ImportTemplateQueries"> | Date | string
  }

  export type ImportJobWhereInput = {
    AND?: ImportJobWhereInput | ImportJobWhereInput[]
    OR?: ImportJobWhereInput[]
    NOT?: ImportJobWhereInput | ImportJobWhereInput[]
    id?: IntFilter<"ImportJob"> | number
    uuid?: StringFilter<"ImportJob"> | string
    name?: StringFilter<"ImportJob"> | string
    description?: StringNullableFilter<"ImportJob"> | string | null
    sequence_number?: StringNullableFilter<"ImportJob"> | string | null
    header_details?: StringNullableFilter<"ImportJob"> | string | null
    table_config?: StringNullableFilter<"ImportJob"> | string | null
    total_rows?: IntFilter<"ImportJob"> | number
    completed_rows?: IntFilter<"ImportJob"> | number
    error_rows?: IntFilter<"ImportJob"> | number
    batch_process_count?: IntNullableFilter<"ImportJob"> | number | null
    job_status?: StringNullableFilter<"ImportJob"> | string | null
    last_processed_row_id?: IntNullableFilter<"ImportJob"> | number | null
    status_id?: IntFilter<"ImportJob"> | number
    company_id?: IntFilter<"ImportJob"> | number
    created_by?: IntNullableFilter<"ImportJob"> | number | null
    created_at?: DateTimeFilter<"ImportJob"> | Date | string
    updated_by?: IntNullableFilter<"ImportJob"> | number | null
    updated_at?: DateTimeFilter<"ImportJob"> | Date | string
    deleted_by?: IntNullableFilter<"ImportJob"> | number | null
    deleted_at?: DateTimeNullableFilter<"ImportJob"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    line_items?: ImportJobLineItemListRelationFilter
  }

  export type ImportJobOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    sequence_number?: SortOrderInput | SortOrder
    header_details?: SortOrderInput | SortOrder
    table_config?: SortOrderInput | SortOrder
    total_rows?: SortOrder
    completed_rows?: SortOrder
    error_rows?: SortOrder
    batch_process_count?: SortOrderInput | SortOrder
    job_status?: SortOrderInput | SortOrder
    last_processed_row_id?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
    line_items?: ImportJobLineItemOrderByRelationAggregateInput
  }

  export type ImportJobWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ImportJobCompany_idIdCompoundUniqueInput
    AND?: ImportJobWhereInput | ImportJobWhereInput[]
    OR?: ImportJobWhereInput[]
    NOT?: ImportJobWhereInput | ImportJobWhereInput[]
    uuid?: StringFilter<"ImportJob"> | string
    name?: StringFilter<"ImportJob"> | string
    description?: StringNullableFilter<"ImportJob"> | string | null
    sequence_number?: StringNullableFilter<"ImportJob"> | string | null
    header_details?: StringNullableFilter<"ImportJob"> | string | null
    table_config?: StringNullableFilter<"ImportJob"> | string | null
    total_rows?: IntFilter<"ImportJob"> | number
    completed_rows?: IntFilter<"ImportJob"> | number
    error_rows?: IntFilter<"ImportJob"> | number
    batch_process_count?: IntNullableFilter<"ImportJob"> | number | null
    job_status?: StringNullableFilter<"ImportJob"> | string | null
    last_processed_row_id?: IntNullableFilter<"ImportJob"> | number | null
    status_id?: IntFilter<"ImportJob"> | number
    company_id?: IntFilter<"ImportJob"> | number
    created_by?: IntNullableFilter<"ImportJob"> | number | null
    created_at?: DateTimeFilter<"ImportJob"> | Date | string
    updated_by?: IntNullableFilter<"ImportJob"> | number | null
    updated_at?: DateTimeFilter<"ImportJob"> | Date | string
    deleted_by?: IntNullableFilter<"ImportJob"> | number | null
    deleted_at?: DateTimeNullableFilter<"ImportJob"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    line_items?: ImportJobLineItemListRelationFilter
  }, "id" | "company_id_id">

  export type ImportJobOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    sequence_number?: SortOrderInput | SortOrder
    header_details?: SortOrderInput | SortOrder
    table_config?: SortOrderInput | SortOrder
    total_rows?: SortOrder
    completed_rows?: SortOrder
    error_rows?: SortOrder
    batch_process_count?: SortOrderInput | SortOrder
    job_status?: SortOrderInput | SortOrder
    last_processed_row_id?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: ImportJobCountOrderByAggregateInput
    _avg?: ImportJobAvgOrderByAggregateInput
    _max?: ImportJobMaxOrderByAggregateInput
    _min?: ImportJobMinOrderByAggregateInput
    _sum?: ImportJobSumOrderByAggregateInput
  }

  export type ImportJobScalarWhereWithAggregatesInput = {
    AND?: ImportJobScalarWhereWithAggregatesInput | ImportJobScalarWhereWithAggregatesInput[]
    OR?: ImportJobScalarWhereWithAggregatesInput[]
    NOT?: ImportJobScalarWhereWithAggregatesInput | ImportJobScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"ImportJob"> | number
    uuid?: StringWithAggregatesFilter<"ImportJob"> | string
    name?: StringWithAggregatesFilter<"ImportJob"> | string
    description?: StringNullableWithAggregatesFilter<"ImportJob"> | string | null
    sequence_number?: StringNullableWithAggregatesFilter<"ImportJob"> | string | null
    header_details?: StringNullableWithAggregatesFilter<"ImportJob"> | string | null
    table_config?: StringNullableWithAggregatesFilter<"ImportJob"> | string | null
    total_rows?: IntWithAggregatesFilter<"ImportJob"> | number
    completed_rows?: IntWithAggregatesFilter<"ImportJob"> | number
    error_rows?: IntWithAggregatesFilter<"ImportJob"> | number
    batch_process_count?: IntNullableWithAggregatesFilter<"ImportJob"> | number | null
    job_status?: StringNullableWithAggregatesFilter<"ImportJob"> | string | null
    last_processed_row_id?: IntNullableWithAggregatesFilter<"ImportJob"> | number | null
    status_id?: IntWithAggregatesFilter<"ImportJob"> | number
    company_id?: IntWithAggregatesFilter<"ImportJob"> | number
    created_by?: IntNullableWithAggregatesFilter<"ImportJob"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"ImportJob"> | Date | string
    updated_by?: IntNullableWithAggregatesFilter<"ImportJob"> | number | null
    updated_at?: DateTimeWithAggregatesFilter<"ImportJob"> | Date | string
    deleted_by?: IntNullableWithAggregatesFilter<"ImportJob"> | number | null
    deleted_at?: DateTimeNullableWithAggregatesFilter<"ImportJob"> | Date | string | null
  }

  export type ImportJobLineItemWhereInput = {
    AND?: ImportJobLineItemWhereInput | ImportJobLineItemWhereInput[]
    OR?: ImportJobLineItemWhereInput[]
    NOT?: ImportJobLineItemWhereInput | ImportJobLineItemWhereInput[]
    id?: IntFilter<"ImportJobLineItem"> | number
    import_job_id?: IntFilter<"ImportJobLineItem"> | number
    row_object?: StringNullableFilter<"ImportJobLineItem"> | string | null
    job_status?: StringNullableFilter<"ImportJobLineItem"> | string | null
    status_id?: IntFilter<"ImportJobLineItem"> | number
    company_id?: IntFilter<"ImportJobLineItem"> | number
    created_at?: DateTimeFilter<"ImportJobLineItem"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    import_job?: XOR<ImportJobRelationFilter, ImportJobWhereInput>
  }

  export type ImportJobLineItemOrderByWithRelationInput = {
    id?: SortOrder
    import_job_id?: SortOrder
    row_object?: SortOrderInput | SortOrder
    job_status?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    import_job?: ImportJobOrderByWithRelationInput
  }

  export type ImportJobLineItemWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ImportJobLineItemCompany_idIdCompoundUniqueInput
    AND?: ImportJobLineItemWhereInput | ImportJobLineItemWhereInput[]
    OR?: ImportJobLineItemWhereInput[]
    NOT?: ImportJobLineItemWhereInput | ImportJobLineItemWhereInput[]
    import_job_id?: IntFilter<"ImportJobLineItem"> | number
    row_object?: StringNullableFilter<"ImportJobLineItem"> | string | null
    job_status?: StringNullableFilter<"ImportJobLineItem"> | string | null
    status_id?: IntFilter<"ImportJobLineItem"> | number
    company_id?: IntFilter<"ImportJobLineItem"> | number
    created_at?: DateTimeFilter<"ImportJobLineItem"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    import_job?: XOR<ImportJobRelationFilter, ImportJobWhereInput>
  }, "id" | "company_id_id">

  export type ImportJobLineItemOrderByWithAggregationInput = {
    id?: SortOrder
    import_job_id?: SortOrder
    row_object?: SortOrderInput | SortOrder
    job_status?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: ImportJobLineItemCountOrderByAggregateInput
    _avg?: ImportJobLineItemAvgOrderByAggregateInput
    _max?: ImportJobLineItemMaxOrderByAggregateInput
    _min?: ImportJobLineItemMinOrderByAggregateInput
    _sum?: ImportJobLineItemSumOrderByAggregateInput
  }

  export type ImportJobLineItemScalarWhereWithAggregatesInput = {
    AND?: ImportJobLineItemScalarWhereWithAggregatesInput | ImportJobLineItemScalarWhereWithAggregatesInput[]
    OR?: ImportJobLineItemScalarWhereWithAggregatesInput[]
    NOT?: ImportJobLineItemScalarWhereWithAggregatesInput | ImportJobLineItemScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"ImportJobLineItem"> | number
    import_job_id?: IntWithAggregatesFilter<"ImportJobLineItem"> | number
    row_object?: StringNullableWithAggregatesFilter<"ImportJobLineItem"> | string | null
    job_status?: StringNullableWithAggregatesFilter<"ImportJobLineItem"> | string | null
    status_id?: IntWithAggregatesFilter<"ImportJobLineItem"> | number
    company_id?: IntWithAggregatesFilter<"ImportJobLineItem"> | number
    created_at?: DateTimeWithAggregatesFilter<"ImportJobLineItem"> | Date | string
  }

  export type ExportTemplateWhereInput = {
    AND?: ExportTemplateWhereInput | ExportTemplateWhereInput[]
    OR?: ExportTemplateWhereInput[]
    NOT?: ExportTemplateWhereInput | ExportTemplateWhereInput[]
    id?: IntFilter<"ExportTemplate"> | number
    uuid?: StringFilter<"ExportTemplate"> | string
    name?: StringFilter<"ExportTemplate"> | string
    slug?: StringFilter<"ExportTemplate"> | string
    description?: StringNullableFilter<"ExportTemplate"> | string | null
    max_row_count?: IntFilter<"ExportTemplate"> | number
    header_row?: IntFilter<"ExportTemplate"> | number
    data_start_row?: IntFilter<"ExportTemplate"> | number
    data_end_row?: IntFilter<"ExportTemplate"> | number
    data_filepath?: StringFilter<"ExportTemplate"> | string
    status_id?: IntFilter<"ExportTemplate"> | number
    company_id?: IntFilter<"ExportTemplate"> | number
    created_by?: IntNullableFilter<"ExportTemplate"> | number | null
    created_at?: DateTimeFilter<"ExportTemplate"> | Date | string
    updated_by?: IntNullableFilter<"ExportTemplate"> | number | null
    updated_at?: DateTimeFilter<"ExportTemplate"> | Date | string
    deleted_by?: IntNullableFilter<"ExportTemplate"> | number | null
    deleted_at?: DateTimeNullableFilter<"ExportTemplate"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    line_items?: ExportTemplateLineItemListRelationFilter
    queries?: ExportTemplateQueriesListRelationFilter
  }

  export type ExportTemplateOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrderInput | SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    data_filepath?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    created?: UserOrderByWithRelationInput
    updated?: UserOrderByWithRelationInput
    deleted?: UserOrderByWithRelationInput
    line_items?: ExportTemplateLineItemOrderByRelationAggregateInput
    queries?: ExportTemplateQueriesOrderByRelationAggregateInput
  }

  export type ExportTemplateWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ExportTemplateCompany_idIdCompoundUniqueInput
    company_id_slug?: ExportTemplateCompany_idSlugCompoundUniqueInput
    AND?: ExportTemplateWhereInput | ExportTemplateWhereInput[]
    OR?: ExportTemplateWhereInput[]
    NOT?: ExportTemplateWhereInput | ExportTemplateWhereInput[]
    uuid?: StringFilter<"ExportTemplate"> | string
    name?: StringFilter<"ExportTemplate"> | string
    slug?: StringFilter<"ExportTemplate"> | string
    description?: StringNullableFilter<"ExportTemplate"> | string | null
    max_row_count?: IntFilter<"ExportTemplate"> | number
    header_row?: IntFilter<"ExportTemplate"> | number
    data_start_row?: IntFilter<"ExportTemplate"> | number
    data_end_row?: IntFilter<"ExportTemplate"> | number
    data_filepath?: StringFilter<"ExportTemplate"> | string
    status_id?: IntFilter<"ExportTemplate"> | number
    company_id?: IntFilter<"ExportTemplate"> | number
    created_by?: IntNullableFilter<"ExportTemplate"> | number | null
    created_at?: DateTimeFilter<"ExportTemplate"> | Date | string
    updated_by?: IntNullableFilter<"ExportTemplate"> | number | null
    updated_at?: DateTimeFilter<"ExportTemplate"> | Date | string
    deleted_by?: IntNullableFilter<"ExportTemplate"> | number | null
    deleted_at?: DateTimeNullableFilter<"ExportTemplate"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    line_items?: ExportTemplateLineItemListRelationFilter
    queries?: ExportTemplateQueriesListRelationFilter
  }, "id" | "company_id_id" | "company_id_slug">

  export type ExportTemplateOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrderInput | SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    data_filepath?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: ExportTemplateCountOrderByAggregateInput
    _avg?: ExportTemplateAvgOrderByAggregateInput
    _max?: ExportTemplateMaxOrderByAggregateInput
    _min?: ExportTemplateMinOrderByAggregateInput
    _sum?: ExportTemplateSumOrderByAggregateInput
  }

  export type ExportTemplateScalarWhereWithAggregatesInput = {
    AND?: ExportTemplateScalarWhereWithAggregatesInput | ExportTemplateScalarWhereWithAggregatesInput[]
    OR?: ExportTemplateScalarWhereWithAggregatesInput[]
    NOT?: ExportTemplateScalarWhereWithAggregatesInput | ExportTemplateScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"ExportTemplate"> | number
    uuid?: StringWithAggregatesFilter<"ExportTemplate"> | string
    name?: StringWithAggregatesFilter<"ExportTemplate"> | string
    slug?: StringWithAggregatesFilter<"ExportTemplate"> | string
    description?: StringNullableWithAggregatesFilter<"ExportTemplate"> | string | null
    max_row_count?: IntWithAggregatesFilter<"ExportTemplate"> | number
    header_row?: IntWithAggregatesFilter<"ExportTemplate"> | number
    data_start_row?: IntWithAggregatesFilter<"ExportTemplate"> | number
    data_end_row?: IntWithAggregatesFilter<"ExportTemplate"> | number
    data_filepath?: StringWithAggregatesFilter<"ExportTemplate"> | string
    status_id?: IntWithAggregatesFilter<"ExportTemplate"> | number
    company_id?: IntWithAggregatesFilter<"ExportTemplate"> | number
    created_by?: IntNullableWithAggregatesFilter<"ExportTemplate"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"ExportTemplate"> | Date | string
    updated_by?: IntNullableWithAggregatesFilter<"ExportTemplate"> | number | null
    updated_at?: DateTimeWithAggregatesFilter<"ExportTemplate"> | Date | string
    deleted_by?: IntNullableWithAggregatesFilter<"ExportTemplate"> | number | null
    deleted_at?: DateTimeNullableWithAggregatesFilter<"ExportTemplate"> | Date | string | null
  }

  export type ExportTemplateLineItemWhereInput = {
    AND?: ExportTemplateLineItemWhereInput | ExportTemplateLineItemWhereInput[]
    OR?: ExportTemplateLineItemWhereInput[]
    NOT?: ExportTemplateLineItemWhereInput | ExportTemplateLineItemWhereInput[]
    id?: IntFilter<"ExportTemplateLineItem"> | number
    export_template_id?: IntFilter<"ExportTemplateLineItem"> | number
    field_name?: StringFilter<"ExportTemplateLineItem"> | string
    display_name?: StringFilter<"ExportTemplateLineItem"> | string
    field_table?: StringFilter<"ExportTemplateLineItem"> | string
    order_no?: DecimalFilter<"ExportTemplateLineItem"> | Decimal | DecimalJsLike | number | string
    default_value?: StringNullableFilter<"ExportTemplateLineItem"> | string | null
    column_name?: StringNullableFilter<"ExportTemplateLineItem"> | string | null
    is_individual?: BoolFilter<"ExportTemplateLineItem"> | boolean
    individual_column?: StringNullableFilter<"ExportTemplateLineItem"> | string | null
    field_type_id?: IntNullableFilter<"ExportTemplateLineItem"> | number | null
    status_id?: IntFilter<"ExportTemplateLineItem"> | number
    company_id?: IntFilter<"ExportTemplateLineItem"> | number
    created_at?: DateTimeFilter<"ExportTemplateLineItem"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    export_template?: XOR<ExportTemplateRelationFilter, ExportTemplateWhereInput>
    field_type?: XOR<FieldTypeNullableRelationFilter, FieldTypeWhereInput> | null
  }

  export type ExportTemplateLineItemOrderByWithRelationInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    default_value?: SortOrderInput | SortOrder
    column_name?: SortOrderInput | SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrderInput | SortOrder
    field_type_id?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    export_template?: ExportTemplateOrderByWithRelationInput
    field_type?: FieldTypeOrderByWithRelationInput
  }

  export type ExportTemplateLineItemWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ExportTemplateLineItemCompany_idIdCompoundUniqueInput
    company_id_export_template_id_field_table_field_name?: ExportTemplateLineItemCompany_idExport_template_idField_tableField_nameCompoundUniqueInput
    company_id_export_template_id_display_name?: ExportTemplateLineItemCompany_idExport_template_idDisplay_nameCompoundUniqueInput
    AND?: ExportTemplateLineItemWhereInput | ExportTemplateLineItemWhereInput[]
    OR?: ExportTemplateLineItemWhereInput[]
    NOT?: ExportTemplateLineItemWhereInput | ExportTemplateLineItemWhereInput[]
    export_template_id?: IntFilter<"ExportTemplateLineItem"> | number
    field_name?: StringFilter<"ExportTemplateLineItem"> | string
    display_name?: StringFilter<"ExportTemplateLineItem"> | string
    field_table?: StringFilter<"ExportTemplateLineItem"> | string
    order_no?: DecimalFilter<"ExportTemplateLineItem"> | Decimal | DecimalJsLike | number | string
    default_value?: StringNullableFilter<"ExportTemplateLineItem"> | string | null
    column_name?: StringNullableFilter<"ExportTemplateLineItem"> | string | null
    is_individual?: BoolFilter<"ExportTemplateLineItem"> | boolean
    individual_column?: StringNullableFilter<"ExportTemplateLineItem"> | string | null
    field_type_id?: IntNullableFilter<"ExportTemplateLineItem"> | number | null
    status_id?: IntFilter<"ExportTemplateLineItem"> | number
    company_id?: IntFilter<"ExportTemplateLineItem"> | number
    created_at?: DateTimeFilter<"ExportTemplateLineItem"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    export_template?: XOR<ExportTemplateRelationFilter, ExportTemplateWhereInput>
    field_type?: XOR<FieldTypeNullableRelationFilter, FieldTypeWhereInput> | null
  }, "id" | "company_id_id" | "company_id_export_template_id_field_table_field_name" | "company_id_export_template_id_display_name">

  export type ExportTemplateLineItemOrderByWithAggregationInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    default_value?: SortOrderInput | SortOrder
    column_name?: SortOrderInput | SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrderInput | SortOrder
    field_type_id?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: ExportTemplateLineItemCountOrderByAggregateInput
    _avg?: ExportTemplateLineItemAvgOrderByAggregateInput
    _max?: ExportTemplateLineItemMaxOrderByAggregateInput
    _min?: ExportTemplateLineItemMinOrderByAggregateInput
    _sum?: ExportTemplateLineItemSumOrderByAggregateInput
  }

  export type ExportTemplateLineItemScalarWhereWithAggregatesInput = {
    AND?: ExportTemplateLineItemScalarWhereWithAggregatesInput | ExportTemplateLineItemScalarWhereWithAggregatesInput[]
    OR?: ExportTemplateLineItemScalarWhereWithAggregatesInput[]
    NOT?: ExportTemplateLineItemScalarWhereWithAggregatesInput | ExportTemplateLineItemScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"ExportTemplateLineItem"> | number
    export_template_id?: IntWithAggregatesFilter<"ExportTemplateLineItem"> | number
    field_name?: StringWithAggregatesFilter<"ExportTemplateLineItem"> | string
    display_name?: StringWithAggregatesFilter<"ExportTemplateLineItem"> | string
    field_table?: StringWithAggregatesFilter<"ExportTemplateLineItem"> | string
    order_no?: DecimalWithAggregatesFilter<"ExportTemplateLineItem"> | Decimal | DecimalJsLike | number | string
    default_value?: StringNullableWithAggregatesFilter<"ExportTemplateLineItem"> | string | null
    column_name?: StringNullableWithAggregatesFilter<"ExportTemplateLineItem"> | string | null
    is_individual?: BoolWithAggregatesFilter<"ExportTemplateLineItem"> | boolean
    individual_column?: StringNullableWithAggregatesFilter<"ExportTemplateLineItem"> | string | null
    field_type_id?: IntNullableWithAggregatesFilter<"ExportTemplateLineItem"> | number | null
    status_id?: IntWithAggregatesFilter<"ExportTemplateLineItem"> | number
    company_id?: IntWithAggregatesFilter<"ExportTemplateLineItem"> | number
    created_at?: DateTimeWithAggregatesFilter<"ExportTemplateLineItem"> | Date | string
  }

  export type ExportTemplateQueriesWhereInput = {
    AND?: ExportTemplateQueriesWhereInput | ExportTemplateQueriesWhereInput[]
    OR?: ExportTemplateQueriesWhereInput[]
    NOT?: ExportTemplateQueriesWhereInput | ExportTemplateQueriesWhereInput[]
    id?: IntFilter<"ExportTemplateQueries"> | number
    export_template_id?: IntFilter<"ExportTemplateQueries"> | number
    query_string?: StringNullableFilter<"ExportTemplateQueries"> | string | null
    query_name?: StringFilter<"ExportTemplateQueries"> | string
    query_procedure?: StringFilter<"ExportTemplateQueries"> | string
    is_individual?: BoolFilter<"ExportTemplateQueries"> | boolean
    order_no?: DecimalFilter<"ExportTemplateQueries"> | Decimal | DecimalJsLike | number | string
    status_id?: IntFilter<"ExportTemplateQueries"> | number
    company_id?: IntFilter<"ExportTemplateQueries"> | number
    created_at?: DateTimeFilter<"ExportTemplateQueries"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    export_template?: XOR<ExportTemplateRelationFilter, ExportTemplateWhereInput>
  }

  export type ExportTemplateQueriesOrderByWithRelationInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    query_string?: SortOrderInput | SortOrder
    query_name?: SortOrder
    query_procedure?: SortOrder
    is_individual?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
    export_template?: ExportTemplateOrderByWithRelationInput
  }

  export type ExportTemplateQueriesWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ExportTemplateQueriesCompany_idIdCompoundUniqueInput
    AND?: ExportTemplateQueriesWhereInput | ExportTemplateQueriesWhereInput[]
    OR?: ExportTemplateQueriesWhereInput[]
    NOT?: ExportTemplateQueriesWhereInput | ExportTemplateQueriesWhereInput[]
    export_template_id?: IntFilter<"ExportTemplateQueries"> | number
    query_string?: StringNullableFilter<"ExportTemplateQueries"> | string | null
    query_name?: StringFilter<"ExportTemplateQueries"> | string
    query_procedure?: StringFilter<"ExportTemplateQueries"> | string
    is_individual?: BoolFilter<"ExportTemplateQueries"> | boolean
    order_no?: DecimalFilter<"ExportTemplateQueries"> | Decimal | DecimalJsLike | number | string
    status_id?: IntFilter<"ExportTemplateQueries"> | number
    company_id?: IntFilter<"ExportTemplateQueries"> | number
    created_at?: DateTimeFilter<"ExportTemplateQueries"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    export_template?: XOR<ExportTemplateRelationFilter, ExportTemplateWhereInput>
  }, "id" | "company_id_id">

  export type ExportTemplateQueriesOrderByWithAggregationInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    query_string?: SortOrderInput | SortOrder
    query_name?: SortOrder
    query_procedure?: SortOrder
    is_individual?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: ExportTemplateQueriesCountOrderByAggregateInput
    _avg?: ExportTemplateQueriesAvgOrderByAggregateInput
    _max?: ExportTemplateQueriesMaxOrderByAggregateInput
    _min?: ExportTemplateQueriesMinOrderByAggregateInput
    _sum?: ExportTemplateQueriesSumOrderByAggregateInput
  }

  export type ExportTemplateQueriesScalarWhereWithAggregatesInput = {
    AND?: ExportTemplateQueriesScalarWhereWithAggregatesInput | ExportTemplateQueriesScalarWhereWithAggregatesInput[]
    OR?: ExportTemplateQueriesScalarWhereWithAggregatesInput[]
    NOT?: ExportTemplateQueriesScalarWhereWithAggregatesInput | ExportTemplateQueriesScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"ExportTemplateQueries"> | number
    export_template_id?: IntWithAggregatesFilter<"ExportTemplateQueries"> | number
    query_string?: StringNullableWithAggregatesFilter<"ExportTemplateQueries"> | string | null
    query_name?: StringWithAggregatesFilter<"ExportTemplateQueries"> | string
    query_procedure?: StringWithAggregatesFilter<"ExportTemplateQueries"> | string
    is_individual?: BoolWithAggregatesFilter<"ExportTemplateQueries"> | boolean
    order_no?: DecimalWithAggregatesFilter<"ExportTemplateQueries"> | Decimal | DecimalJsLike | number | string
    status_id?: IntWithAggregatesFilter<"ExportTemplateQueries"> | number
    company_id?: IntWithAggregatesFilter<"ExportTemplateQueries"> | number
    created_at?: DateTimeWithAggregatesFilter<"ExportTemplateQueries"> | Date | string
  }

  export type StatusWhereInput = {
    AND?: StatusWhereInput | StatusWhereInput[]
    OR?: StatusWhereInput[]
    NOT?: StatusWhereInput | StatusWhereInput[]
    id?: IntFilter<"Status"> | number
    name?: StringFilter<"Status"> | string
    slug?: StringFilter<"Status"> | string
    description?: StringNullableFilter<"Status"> | string | null
    status_id?: IntNullableFilter<"Status"> | number | null
    status?: XOR<StatusNullableRelationFilter, StatusWhereInput> | null
    status_list?: StatusListRelationFilter
    users?: UserListRelationFilter
    request_logs?: RequestLogListRelationFilter
    permissions?: PermissionsListRelationFilter
    roles?: RoleListRelationFilter
    languages?: LanguageListRelationFilter
    language_contents?: LanguageContentListRelationFilter
    menuitems?: MenuItemsListRelationFilter
    menus?: MenusListRelationFilter
    master_grids?: MasterEntityListRelationFilter
    master_grid_line_items?: MasterEntityLineItemListRelationFilter
    field_types?: FieldTypeListRelationFilter
    menu_types?: MenuTypeListRelationFilter
    email_template_processes?: EmailTemplateProcessListRelationFilter
    email_template_tags?: EmailTemplateTagListRelationFilter
    email_template_receiver_tags?: EmailTemplateRecipientTagListRelationFilter
    email_templates?: EmailTemplateListRelationFilter
    email_process_jobs?: EmailProcessJobListRelationFilter
    notification_job?: NotificationJobListRelationFilter
    import_templates?: ImportTemplateListRelationFilter
    import_template_line_items?: ImportTemplateLineItemListRelationFilter
    import_template_queries?: ImportTemplateQueriesListRelationFilter
    export_templates?: ExportTemplateListRelationFilter
    export_template_line_items?: ExportTemplateLineItemListRelationFilter
    export_template_queries?: ExportTemplateQueriesListRelationFilter
    designations?: DesignationListRelationFilter
    departments?: DepartmentListRelationFilter
    audit_logs?: AuditLogListRelationFilter
    financial_years?: FinancialYearListRelationFilter
    document_sequences?: DocumentSequenceListRelationFilter
    file_upload_logs?: FileUploadLogListRelationFilter
    device_registration?: DeviceRegistrationListRelationFilter
    import_job?: ImportJobListRelationFilter
    import_job_line_items?: ImportJobLineItemListRelationFilter
  }

  export type StatusOrderByWithRelationInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    status_list?: StatusOrderByRelationAggregateInput
    users?: UserOrderByRelationAggregateInput
    request_logs?: RequestLogOrderByRelationAggregateInput
    permissions?: PermissionsOrderByRelationAggregateInput
    roles?: RoleOrderByRelationAggregateInput
    languages?: LanguageOrderByRelationAggregateInput
    language_contents?: LanguageContentOrderByRelationAggregateInput
    menuitems?: MenuItemsOrderByRelationAggregateInput
    menus?: MenusOrderByRelationAggregateInput
    master_grids?: MasterEntityOrderByRelationAggregateInput
    master_grid_line_items?: MasterEntityLineItemOrderByRelationAggregateInput
    field_types?: FieldTypeOrderByRelationAggregateInput
    menu_types?: menuTypeOrderByRelationAggregateInput
    email_template_processes?: EmailTemplateProcessOrderByRelationAggregateInput
    email_template_tags?: EmailTemplateTagOrderByRelationAggregateInput
    email_template_receiver_tags?: EmailTemplateRecipientTagOrderByRelationAggregateInput
    email_templates?: EmailTemplateOrderByRelationAggregateInput
    email_process_jobs?: EmailProcessJobOrderByRelationAggregateInput
    notification_job?: NotificationJobOrderByRelationAggregateInput
    import_templates?: ImportTemplateOrderByRelationAggregateInput
    import_template_line_items?: ImportTemplateLineItemOrderByRelationAggregateInput
    import_template_queries?: ImportTemplateQueriesOrderByRelationAggregateInput
    export_templates?: ExportTemplateOrderByRelationAggregateInput
    export_template_line_items?: ExportTemplateLineItemOrderByRelationAggregateInput
    export_template_queries?: ExportTemplateQueriesOrderByRelationAggregateInput
    designations?: DesignationOrderByRelationAggregateInput
    departments?: DepartmentOrderByRelationAggregateInput
    audit_logs?: AuditLogOrderByRelationAggregateInput
    financial_years?: FinancialYearOrderByRelationAggregateInput
    document_sequences?: DocumentSequenceOrderByRelationAggregateInput
    file_upload_logs?: FileUploadLogOrderByRelationAggregateInput
    device_registration?: DeviceRegistrationOrderByRelationAggregateInput
    import_job?: ImportJobOrderByRelationAggregateInput
    import_job_line_items?: ImportJobLineItemOrderByRelationAggregateInput
  }

  export type StatusWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    slug?: string
    AND?: StatusWhereInput | StatusWhereInput[]
    OR?: StatusWhereInput[]
    NOT?: StatusWhereInput | StatusWhereInput[]
    name?: StringFilter<"Status"> | string
    description?: StringNullableFilter<"Status"> | string | null
    status_id?: IntNullableFilter<"Status"> | number | null
    status?: XOR<StatusNullableRelationFilter, StatusWhereInput> | null
    status_list?: StatusListRelationFilter
    users?: UserListRelationFilter
    request_logs?: RequestLogListRelationFilter
    permissions?: PermissionsListRelationFilter
    roles?: RoleListRelationFilter
    languages?: LanguageListRelationFilter
    language_contents?: LanguageContentListRelationFilter
    menuitems?: MenuItemsListRelationFilter
    menus?: MenusListRelationFilter
    master_grids?: MasterEntityListRelationFilter
    master_grid_line_items?: MasterEntityLineItemListRelationFilter
    field_types?: FieldTypeListRelationFilter
    menu_types?: MenuTypeListRelationFilter
    email_template_processes?: EmailTemplateProcessListRelationFilter
    email_template_tags?: EmailTemplateTagListRelationFilter
    email_template_receiver_tags?: EmailTemplateRecipientTagListRelationFilter
    email_templates?: EmailTemplateListRelationFilter
    email_process_jobs?: EmailProcessJobListRelationFilter
    notification_job?: NotificationJobListRelationFilter
    import_templates?: ImportTemplateListRelationFilter
    import_template_line_items?: ImportTemplateLineItemListRelationFilter
    import_template_queries?: ImportTemplateQueriesListRelationFilter
    export_templates?: ExportTemplateListRelationFilter
    export_template_line_items?: ExportTemplateLineItemListRelationFilter
    export_template_queries?: ExportTemplateQueriesListRelationFilter
    designations?: DesignationListRelationFilter
    departments?: DepartmentListRelationFilter
    audit_logs?: AuditLogListRelationFilter
    financial_years?: FinancialYearListRelationFilter
    document_sequences?: DocumentSequenceListRelationFilter
    file_upload_logs?: FileUploadLogListRelationFilter
    device_registration?: DeviceRegistrationListRelationFilter
    import_job?: ImportJobListRelationFilter
    import_job_line_items?: ImportJobLineItemListRelationFilter
  }, "id" | "id" | "slug">

  export type StatusOrderByWithAggregationInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrderInput | SortOrder
    _count?: StatusCountOrderByAggregateInput
    _avg?: StatusAvgOrderByAggregateInput
    _max?: StatusMaxOrderByAggregateInput
    _min?: StatusMinOrderByAggregateInput
    _sum?: StatusSumOrderByAggregateInput
  }

  export type StatusScalarWhereWithAggregatesInput = {
    AND?: StatusScalarWhereWithAggregatesInput | StatusScalarWhereWithAggregatesInput[]
    OR?: StatusScalarWhereWithAggregatesInput[]
    NOT?: StatusScalarWhereWithAggregatesInput | StatusScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Status"> | number
    name?: StringWithAggregatesFilter<"Status"> | string
    slug?: StringWithAggregatesFilter<"Status"> | string
    description?: StringNullableWithAggregatesFilter<"Status"> | string | null
    status_id?: IntNullableWithAggregatesFilter<"Status"> | number | null
  }

  export type CategoryTypesWhereInput = {
    AND?: CategoryTypesWhereInput | CategoryTypesWhereInput[]
    OR?: CategoryTypesWhereInput[]
    NOT?: CategoryTypesWhereInput | CategoryTypesWhereInput[]
    id?: IntFilter<"CategoryTypes"> | number
    uuid?: StringFilter<"CategoryTypes"> | string
    category_type_id?: StringFilter<"CategoryTypes"> | string
    name?: StringFilter<"CategoryTypes"> | string
    description?: StringNullableFilter<"CategoryTypes"> | string | null
    company_id?: IntFilter<"CategoryTypes"> | number
    created_by?: IntNullableFilter<"CategoryTypes"> | number | null
    updated_by?: IntNullableFilter<"CategoryTypes"> | number | null
    deleted_by?: IntNullableFilter<"CategoryTypes"> | number | null
    created_at?: DateTimeFilter<"CategoryTypes"> | Date | string
    updated_at?: DateTimeFilter<"CategoryTypes"> | Date | string
    deleted_at?: DateTimeNullableFilter<"CategoryTypes"> | Date | string | null
    created_category_types?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated_category_types?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted_category_types?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    categories?: CategoriesListRelationFilter
  }

  export type CategoryTypesOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    created_category_types?: UserOrderByWithRelationInput
    updated_category_types?: UserOrderByWithRelationInput
    deleted_category_types?: UserOrderByWithRelationInput
    categories?: CategoriesOrderByRelationAggregateInput
  }

  export type CategoryTypesWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    category_type_id?: string
    company_id_category_type_id?: CategoryTypesCompany_idCategory_type_idCompoundUniqueInput
    company_id_id?: CategoryTypesCompany_idIdCompoundUniqueInput
    company_id_name?: CategoryTypesCompany_idNameCompoundUniqueInput
    AND?: CategoryTypesWhereInput | CategoryTypesWhereInput[]
    OR?: CategoryTypesWhereInput[]
    NOT?: CategoryTypesWhereInput | CategoryTypesWhereInput[]
    uuid?: StringFilter<"CategoryTypes"> | string
    name?: StringFilter<"CategoryTypes"> | string
    description?: StringNullableFilter<"CategoryTypes"> | string | null
    company_id?: IntFilter<"CategoryTypes"> | number
    created_by?: IntNullableFilter<"CategoryTypes"> | number | null
    updated_by?: IntNullableFilter<"CategoryTypes"> | number | null
    deleted_by?: IntNullableFilter<"CategoryTypes"> | number | null
    created_at?: DateTimeFilter<"CategoryTypes"> | Date | string
    updated_at?: DateTimeFilter<"CategoryTypes"> | Date | string
    deleted_at?: DateTimeNullableFilter<"CategoryTypes"> | Date | string | null
    created_category_types?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated_category_types?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted_category_types?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    categories?: CategoriesListRelationFilter
  }, "id" | "category_type_id" | "company_id_category_type_id" | "company_id_id" | "company_id_name">

  export type CategoryTypesOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: CategoryTypesCountOrderByAggregateInput
    _avg?: CategoryTypesAvgOrderByAggregateInput
    _max?: CategoryTypesMaxOrderByAggregateInput
    _min?: CategoryTypesMinOrderByAggregateInput
    _sum?: CategoryTypesSumOrderByAggregateInput
  }

  export type CategoryTypesScalarWhereWithAggregatesInput = {
    AND?: CategoryTypesScalarWhereWithAggregatesInput | CategoryTypesScalarWhereWithAggregatesInput[]
    OR?: CategoryTypesScalarWhereWithAggregatesInput[]
    NOT?: CategoryTypesScalarWhereWithAggregatesInput | CategoryTypesScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"CategoryTypes"> | number
    uuid?: StringWithAggregatesFilter<"CategoryTypes"> | string
    category_type_id?: StringWithAggregatesFilter<"CategoryTypes"> | string
    name?: StringWithAggregatesFilter<"CategoryTypes"> | string
    description?: StringNullableWithAggregatesFilter<"CategoryTypes"> | string | null
    company_id?: IntWithAggregatesFilter<"CategoryTypes"> | number
    created_by?: IntNullableWithAggregatesFilter<"CategoryTypes"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"CategoryTypes"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"CategoryTypes"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"CategoryTypes"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"CategoryTypes"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"CategoryTypes"> | Date | string | null
  }

  export type CategoriesWhereInput = {
    AND?: CategoriesWhereInput | CategoriesWhereInput[]
    OR?: CategoriesWhereInput[]
    NOT?: CategoriesWhereInput | CategoriesWhereInput[]
    id?: IntFilter<"Categories"> | number
    uuid?: StringFilter<"Categories"> | string
    category_type_id?: StringFilter<"Categories"> | string
    category_id?: StringFilter<"Categories"> | string
    parent_id?: StringNullableFilter<"Categories"> | string | null
    name?: StringFilter<"Categories"> | string
    description?: StringNullableFilter<"Categories"> | string | null
    company_id?: IntFilter<"Categories"> | number
    created_by?: IntNullableFilter<"Categories"> | number | null
    updated_by?: IntNullableFilter<"Categories"> | number | null
    deleted_by?: IntNullableFilter<"Categories"> | number | null
    created_at?: DateTimeFilter<"Categories"> | Date | string
    updated_at?: DateTimeFilter<"Categories"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Categories"> | Date | string | null
    parent?: XOR<CategoriesNullableRelationFilter, CategoriesWhereInput> | null
    subcategories?: CategoriesListRelationFilter
    category_type?: XOR<CategoryTypesRelationFilter, CategoryTypesWhereInput>
    created_categories?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated_categories?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted_categories?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    configurations?: ConfigurationsListRelationFilter
  }

  export type CategoriesOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    category_id?: SortOrder
    parent_id?: SortOrderInput | SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    parent?: CategoriesOrderByWithRelationInput
    subcategories?: CategoriesOrderByRelationAggregateInput
    category_type?: CategoryTypesOrderByWithRelationInput
    created_categories?: UserOrderByWithRelationInput
    updated_categories?: UserOrderByWithRelationInput
    deleted_categories?: UserOrderByWithRelationInput
    configurations?: ConfigurationsOrderByRelationAggregateInput
  }

  export type CategoriesWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    category_id?: string
    company_id_category_id?: CategoriesCompany_idCategory_idCompoundUniqueInput
    company_id_id?: CategoriesCompany_idIdCompoundUniqueInput
    company_id_name?: CategoriesCompany_idNameCompoundUniqueInput
    AND?: CategoriesWhereInput | CategoriesWhereInput[]
    OR?: CategoriesWhereInput[]
    NOT?: CategoriesWhereInput | CategoriesWhereInput[]
    uuid?: StringFilter<"Categories"> | string
    category_type_id?: StringFilter<"Categories"> | string
    parent_id?: StringNullableFilter<"Categories"> | string | null
    name?: StringFilter<"Categories"> | string
    description?: StringNullableFilter<"Categories"> | string | null
    company_id?: IntFilter<"Categories"> | number
    created_by?: IntNullableFilter<"Categories"> | number | null
    updated_by?: IntNullableFilter<"Categories"> | number | null
    deleted_by?: IntNullableFilter<"Categories"> | number | null
    created_at?: DateTimeFilter<"Categories"> | Date | string
    updated_at?: DateTimeFilter<"Categories"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Categories"> | Date | string | null
    parent?: XOR<CategoriesNullableRelationFilter, CategoriesWhereInput> | null
    subcategories?: CategoriesListRelationFilter
    category_type?: XOR<CategoryTypesRelationFilter, CategoryTypesWhereInput>
    created_categories?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated_categories?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted_categories?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    configurations?: ConfigurationsListRelationFilter
  }, "id" | "category_id" | "company_id_category_id" | "company_id_id" | "company_id_name">

  export type CategoriesOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    category_id?: SortOrder
    parent_id?: SortOrderInput | SortOrder
    name?: SortOrder
    description?: SortOrderInput | SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: CategoriesCountOrderByAggregateInput
    _avg?: CategoriesAvgOrderByAggregateInput
    _max?: CategoriesMaxOrderByAggregateInput
    _min?: CategoriesMinOrderByAggregateInput
    _sum?: CategoriesSumOrderByAggregateInput
  }

  export type CategoriesScalarWhereWithAggregatesInput = {
    AND?: CategoriesScalarWhereWithAggregatesInput | CategoriesScalarWhereWithAggregatesInput[]
    OR?: CategoriesScalarWhereWithAggregatesInput[]
    NOT?: CategoriesScalarWhereWithAggregatesInput | CategoriesScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Categories"> | number
    uuid?: StringWithAggregatesFilter<"Categories"> | string
    category_type_id?: StringWithAggregatesFilter<"Categories"> | string
    category_id?: StringWithAggregatesFilter<"Categories"> | string
    parent_id?: StringNullableWithAggregatesFilter<"Categories"> | string | null
    name?: StringWithAggregatesFilter<"Categories"> | string
    description?: StringNullableWithAggregatesFilter<"Categories"> | string | null
    company_id?: IntWithAggregatesFilter<"Categories"> | number
    created_by?: IntNullableWithAggregatesFilter<"Categories"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"Categories"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"Categories"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"Categories"> | Date | string
    updated_at?: DateTimeWithAggregatesFilter<"Categories"> | Date | string
    deleted_at?: DateTimeNullableWithAggregatesFilter<"Categories"> | Date | string | null
  }

  export type ConfigurationsWhereInput = {
    AND?: ConfigurationsWhereInput | ConfigurationsWhereInput[]
    OR?: ConfigurationsWhereInput[]
    NOT?: ConfigurationsWhereInput | ConfigurationsWhereInput[]
    id?: IntFilter<"Configurations"> | number
    uuid?: StringFilter<"Configurations"> | string
    order_no?: DecimalFilter<"Configurations"> | Decimal | DecimalJsLike | number | string
    config_key?: StringFilter<"Configurations"> | string
    category_id?: StringFilter<"Configurations"> | string
    config_value?: StringNullableFilter<"Configurations"> | string | null
    config_file_value?: StringNullableFilter<"Configurations"> | string | null
    config_value_type?: StringFilter<"Configurations"> | string
    config_field_type?: StringFilter<"Configurations"> | string
    display_config?: BoolFilter<"Configurations"> | boolean
    company_id?: IntFilter<"Configurations"> | number
    created_by?: IntNullableFilter<"Configurations"> | number | null
    updated_by?: IntNullableFilter<"Configurations"> | number | null
    deleted_by?: IntNullableFilter<"Configurations"> | number | null
    created_at?: DateTimeFilter<"Configurations"> | Date | string
    updated_at?: DateTimeNullableFilter<"Configurations"> | Date | string | null
    deleted_at?: DateTimeNullableFilter<"Configurations"> | Date | string | null
    category?: XOR<CategoriesRelationFilter, CategoriesWhereInput>
    created_configurations?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated_configurations?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted_configurations?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }

  export type ConfigurationsOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    order_no?: SortOrder
    config_key?: SortOrder
    category_id?: SortOrder
    config_value?: SortOrderInput | SortOrder
    config_file_value?: SortOrderInput | SortOrder
    config_value_type?: SortOrder
    config_field_type?: SortOrder
    display_config?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    category?: CategoriesOrderByWithRelationInput
    created_configurations?: UserOrderByWithRelationInput
    updated_configurations?: UserOrderByWithRelationInput
    deleted_configurations?: UserOrderByWithRelationInput
  }

  export type ConfigurationsWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: ConfigurationsCompany_idIdCompoundUniqueInput
    company_id_config_key?: ConfigurationsCompany_idConfig_keyCompoundUniqueInput
    AND?: ConfigurationsWhereInput | ConfigurationsWhereInput[]
    OR?: ConfigurationsWhereInput[]
    NOT?: ConfigurationsWhereInput | ConfigurationsWhereInput[]
    uuid?: StringFilter<"Configurations"> | string
    order_no?: DecimalFilter<"Configurations"> | Decimal | DecimalJsLike | number | string
    config_key?: StringFilter<"Configurations"> | string
    category_id?: StringFilter<"Configurations"> | string
    config_value?: StringNullableFilter<"Configurations"> | string | null
    config_file_value?: StringNullableFilter<"Configurations"> | string | null
    config_value_type?: StringFilter<"Configurations"> | string
    config_field_type?: StringFilter<"Configurations"> | string
    display_config?: BoolFilter<"Configurations"> | boolean
    company_id?: IntFilter<"Configurations"> | number
    created_by?: IntNullableFilter<"Configurations"> | number | null
    updated_by?: IntNullableFilter<"Configurations"> | number | null
    deleted_by?: IntNullableFilter<"Configurations"> | number | null
    created_at?: DateTimeFilter<"Configurations"> | Date | string
    updated_at?: DateTimeNullableFilter<"Configurations"> | Date | string | null
    deleted_at?: DateTimeNullableFilter<"Configurations"> | Date | string | null
    category?: XOR<CategoriesRelationFilter, CategoriesWhereInput>
    created_configurations?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    updated_configurations?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted_configurations?: XOR<UserNullableRelationFilter, UserWhereInput> | null
  }, "id" | "company_id_id" | "company_id_config_key">

  export type ConfigurationsOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    order_no?: SortOrder
    config_key?: SortOrder
    category_id?: SortOrder
    config_value?: SortOrderInput | SortOrder
    config_file_value?: SortOrderInput | SortOrder
    config_value_type?: SortOrder
    config_field_type?: SortOrder
    display_config?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    updated_by?: SortOrderInput | SortOrder
    deleted_by?: SortOrderInput | SortOrder
    created_at?: SortOrder
    updated_at?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: ConfigurationsCountOrderByAggregateInput
    _avg?: ConfigurationsAvgOrderByAggregateInput
    _max?: ConfigurationsMaxOrderByAggregateInput
    _min?: ConfigurationsMinOrderByAggregateInput
    _sum?: ConfigurationsSumOrderByAggregateInput
  }

  export type ConfigurationsScalarWhereWithAggregatesInput = {
    AND?: ConfigurationsScalarWhereWithAggregatesInput | ConfigurationsScalarWhereWithAggregatesInput[]
    OR?: ConfigurationsScalarWhereWithAggregatesInput[]
    NOT?: ConfigurationsScalarWhereWithAggregatesInput | ConfigurationsScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"Configurations"> | number
    uuid?: StringWithAggregatesFilter<"Configurations"> | string
    order_no?: DecimalWithAggregatesFilter<"Configurations"> | Decimal | DecimalJsLike | number | string
    config_key?: StringWithAggregatesFilter<"Configurations"> | string
    category_id?: StringWithAggregatesFilter<"Configurations"> | string
    config_value?: StringNullableWithAggregatesFilter<"Configurations"> | string | null
    config_file_value?: StringNullableWithAggregatesFilter<"Configurations"> | string | null
    config_value_type?: StringWithAggregatesFilter<"Configurations"> | string
    config_field_type?: StringWithAggregatesFilter<"Configurations"> | string
    display_config?: BoolWithAggregatesFilter<"Configurations"> | boolean
    company_id?: IntWithAggregatesFilter<"Configurations"> | number
    created_by?: IntNullableWithAggregatesFilter<"Configurations"> | number | null
    updated_by?: IntNullableWithAggregatesFilter<"Configurations"> | number | null
    deleted_by?: IntNullableWithAggregatesFilter<"Configurations"> | number | null
    created_at?: DateTimeWithAggregatesFilter<"Configurations"> | Date | string
    updated_at?: DateTimeNullableWithAggregatesFilter<"Configurations"> | Date | string | null
    deleted_at?: DateTimeNullableWithAggregatesFilter<"Configurations"> | Date | string | null
  }

  export type FileUploadLogWhereInput = {
    AND?: FileUploadLogWhereInput | FileUploadLogWhereInput[]
    OR?: FileUploadLogWhereInput[]
    NOT?: FileUploadLogWhereInput | FileUploadLogWhereInput[]
    id?: IntFilter<"FileUploadLog"> | number
    uuid?: StringFilter<"FileUploadLog"> | string
    doc_name?: StringNullableFilter<"FileUploadLog"> | string | null
    org_name?: StringNullableFilter<"FileUploadLog"> | string | null
    extension?: StringNullableFilter<"FileUploadLog"> | string | null
    description?: StringNullableFilter<"FileUploadLog"> | string | null
    status_id?: IntFilter<"FileUploadLog"> | number
    company_id?: IntFilter<"FileUploadLog"> | number
    created_at?: DateTimeFilter<"FileUploadLog"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
  }

  export type FileUploadLogOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    doc_name?: SortOrderInput | SortOrder
    org_name?: SortOrderInput | SortOrder
    extension?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    status?: StatusOrderByWithRelationInput
  }

  export type FileUploadLogWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: FileUploadLogCompany_idIdCompoundUniqueInput
    AND?: FileUploadLogWhereInput | FileUploadLogWhereInput[]
    OR?: FileUploadLogWhereInput[]
    NOT?: FileUploadLogWhereInput | FileUploadLogWhereInput[]
    uuid?: StringFilter<"FileUploadLog"> | string
    doc_name?: StringNullableFilter<"FileUploadLog"> | string | null
    org_name?: StringNullableFilter<"FileUploadLog"> | string | null
    extension?: StringNullableFilter<"FileUploadLog"> | string | null
    description?: StringNullableFilter<"FileUploadLog"> | string | null
    status_id?: IntFilter<"FileUploadLog"> | number
    company_id?: IntFilter<"FileUploadLog"> | number
    created_at?: DateTimeFilter<"FileUploadLog"> | Date | string
    status?: XOR<StatusRelationFilter, StatusWhereInput>
  }, "id" | "company_id_id">

  export type FileUploadLogOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    doc_name?: SortOrderInput | SortOrder
    org_name?: SortOrderInput | SortOrder
    extension?: SortOrderInput | SortOrder
    description?: SortOrderInput | SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    _count?: FileUploadLogCountOrderByAggregateInput
    _avg?: FileUploadLogAvgOrderByAggregateInput
    _max?: FileUploadLogMaxOrderByAggregateInput
    _min?: FileUploadLogMinOrderByAggregateInput
    _sum?: FileUploadLogSumOrderByAggregateInput
  }

  export type FileUploadLogScalarWhereWithAggregatesInput = {
    AND?: FileUploadLogScalarWhereWithAggregatesInput | FileUploadLogScalarWhereWithAggregatesInput[]
    OR?: FileUploadLogScalarWhereWithAggregatesInput[]
    NOT?: FileUploadLogScalarWhereWithAggregatesInput | FileUploadLogScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"FileUploadLog"> | number
    uuid?: StringWithAggregatesFilter<"FileUploadLog"> | string
    doc_name?: StringNullableWithAggregatesFilter<"FileUploadLog"> | string | null
    org_name?: StringNullableWithAggregatesFilter<"FileUploadLog"> | string | null
    extension?: StringNullableWithAggregatesFilter<"FileUploadLog"> | string | null
    description?: StringNullableWithAggregatesFilter<"FileUploadLog"> | string | null
    status_id?: IntWithAggregatesFilter<"FileUploadLog"> | number
    company_id?: IntWithAggregatesFilter<"FileUploadLog"> | number
    created_at?: DateTimeWithAggregatesFilter<"FileUploadLog"> | Date | string
  }

  export type DataTransferQueriesWhereInput = {
    AND?: DataTransferQueriesWhereInput | DataTransferQueriesWhereInput[]
    OR?: DataTransferQueriesWhereInput[]
    NOT?: DataTransferQueriesWhereInput | DataTransferQueriesWhereInput[]
    id?: IntFilter<"DataTransferQueries"> | number
    uuid?: StringFilter<"DataTransferQueries"> | string
    select_query?: StringFilter<"DataTransferQueries"> | string
    insert_query?: StringFilter<"DataTransferQueries"> | string
    transfer_type?: StringFilter<"DataTransferQueries"> | string
    job_name?: StringFilter<"DataTransferQueries"> | string
    destination_table?: StringFilter<"DataTransferQueries"> | string
    clear_destination_table?: BoolFilter<"DataTransferQueries"> | boolean
    execution_order?: IntFilter<"DataTransferQueries"> | number
    command_type?: StringFilter<"DataTransferQueries"> | string
    status_id?: IntFilter<"DataTransferQueries"> | number
    created_by?: IntNullableFilter<"DataTransferQueries"> | number | null
    created_at?: DateTimeNullableFilter<"DataTransferQueries"> | Date | string | null
    company_id?: IntFilter<"DataTransferQueries"> | number
  }

  export type DataTransferQueriesOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    select_query?: SortOrder
    insert_query?: SortOrder
    transfer_type?: SortOrder
    job_name?: SortOrder
    destination_table?: SortOrder
    clear_destination_table?: SortOrder
    execution_order?: SortOrder
    command_type?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    created_at?: SortOrderInput | SortOrder
    company_id?: SortOrder
  }

  export type DataTransferQueriesWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: DataTransferQueriesCompany_idIdCompoundUniqueInput
    company_id_uuid?: DataTransferQueriesCompany_idUuidCompoundUniqueInput
    company_id_transfer_type_job_name?: DataTransferQueriesCompany_idTransfer_typeJob_nameCompoundUniqueInput
    AND?: DataTransferQueriesWhereInput | DataTransferQueriesWhereInput[]
    OR?: DataTransferQueriesWhereInput[]
    NOT?: DataTransferQueriesWhereInput | DataTransferQueriesWhereInput[]
    uuid?: StringFilter<"DataTransferQueries"> | string
    select_query?: StringFilter<"DataTransferQueries"> | string
    insert_query?: StringFilter<"DataTransferQueries"> | string
    transfer_type?: StringFilter<"DataTransferQueries"> | string
    job_name?: StringFilter<"DataTransferQueries"> | string
    destination_table?: StringFilter<"DataTransferQueries"> | string
    clear_destination_table?: BoolFilter<"DataTransferQueries"> | boolean
    execution_order?: IntFilter<"DataTransferQueries"> | number
    command_type?: StringFilter<"DataTransferQueries"> | string
    status_id?: IntFilter<"DataTransferQueries"> | number
    created_by?: IntNullableFilter<"DataTransferQueries"> | number | null
    created_at?: DateTimeNullableFilter<"DataTransferQueries"> | Date | string | null
    company_id?: IntFilter<"DataTransferQueries"> | number
  }, "id" | "company_id_id" | "company_id_uuid" | "company_id_transfer_type_job_name">

  export type DataTransferQueriesOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    select_query?: SortOrder
    insert_query?: SortOrder
    transfer_type?: SortOrder
    job_name?: SortOrder
    destination_table?: SortOrder
    clear_destination_table?: SortOrder
    execution_order?: SortOrder
    command_type?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrderInput | SortOrder
    created_at?: SortOrderInput | SortOrder
    company_id?: SortOrder
    _count?: DataTransferQueriesCountOrderByAggregateInput
    _avg?: DataTransferQueriesAvgOrderByAggregateInput
    _max?: DataTransferQueriesMaxOrderByAggregateInput
    _min?: DataTransferQueriesMinOrderByAggregateInput
    _sum?: DataTransferQueriesSumOrderByAggregateInput
  }

  export type DataTransferQueriesScalarWhereWithAggregatesInput = {
    AND?: DataTransferQueriesScalarWhereWithAggregatesInput | DataTransferQueriesScalarWhereWithAggregatesInput[]
    OR?: DataTransferQueriesScalarWhereWithAggregatesInput[]
    NOT?: DataTransferQueriesScalarWhereWithAggregatesInput | DataTransferQueriesScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"DataTransferQueries"> | number
    uuid?: StringWithAggregatesFilter<"DataTransferQueries"> | string
    select_query?: StringWithAggregatesFilter<"DataTransferQueries"> | string
    insert_query?: StringWithAggregatesFilter<"DataTransferQueries"> | string
    transfer_type?: StringWithAggregatesFilter<"DataTransferQueries"> | string
    job_name?: StringWithAggregatesFilter<"DataTransferQueries"> | string
    destination_table?: StringWithAggregatesFilter<"DataTransferQueries"> | string
    clear_destination_table?: BoolWithAggregatesFilter<"DataTransferQueries"> | boolean
    execution_order?: IntWithAggregatesFilter<"DataTransferQueries"> | number
    command_type?: StringWithAggregatesFilter<"DataTransferQueries"> | string
    status_id?: IntWithAggregatesFilter<"DataTransferQueries"> | number
    created_by?: IntNullableWithAggregatesFilter<"DataTransferQueries"> | number | null
    created_at?: DateTimeNullableWithAggregatesFilter<"DataTransferQueries"> | Date | string | null
    company_id?: IntWithAggregatesFilter<"DataTransferQueries"> | number
  }

  export type DeviceRegistrationWhereInput = {
    AND?: DeviceRegistrationWhereInput | DeviceRegistrationWhereInput[]
    OR?: DeviceRegistrationWhereInput[]
    NOT?: DeviceRegistrationWhereInput | DeviceRegistrationWhereInput[]
    id?: IntFilter<"DeviceRegistration"> | number
    uuid?: StringFilter<"DeviceRegistration"> | string
    company_id?: IntFilter<"DeviceRegistration"> | number
    device_name?: StringFilter<"DeviceRegistration"> | string
    device_unique_id?: StringFilter<"DeviceRegistration"> | string
    user_id?: IntFilter<"DeviceRegistration"> | number
    status_id?: IntFilter<"DeviceRegistration"> | number
    created_by?: IntFilter<"DeviceRegistration"> | number
    created_at?: DateTimeFilter<"DeviceRegistration"> | Date | string
    updated_by?: IntNullableFilter<"DeviceRegistration"> | number | null
    updated_at?: DateTimeFilter<"DeviceRegistration"> | Date | string
    deleted_by?: IntNullableFilter<"DeviceRegistration"> | number | null
    deleted_at?: DateTimeNullableFilter<"DeviceRegistration"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created_device_registration?: XOR<UserRelationFilter, UserWhereInput>
    updated_device_registration?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted_device_registration?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    user?: XOR<UserRelationFilter, UserWhereInput>
  }

  export type DeviceRegistrationOrderByWithRelationInput = {
    id?: SortOrder
    uuid?: SortOrder
    company_id?: SortOrder
    device_name?: SortOrder
    device_unique_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    status?: StatusOrderByWithRelationInput
    created_device_registration?: UserOrderByWithRelationInput
    updated_device_registration?: UserOrderByWithRelationInput
    deleted_device_registration?: UserOrderByWithRelationInput
    user?: UserOrderByWithRelationInput
  }

  export type DeviceRegistrationWhereUniqueInput = Prisma.AtLeast<{
    id?: number
    company_id_id?: DeviceRegistrationCompany_idIdCompoundUniqueInput
    company_id_uuid?: DeviceRegistrationCompany_idUuidCompoundUniqueInput
    company_id_device_unique_id?: DeviceRegistrationCompany_idDevice_unique_idCompoundUniqueInput
    AND?: DeviceRegistrationWhereInput | DeviceRegistrationWhereInput[]
    OR?: DeviceRegistrationWhereInput[]
    NOT?: DeviceRegistrationWhereInput | DeviceRegistrationWhereInput[]
    uuid?: StringFilter<"DeviceRegistration"> | string
    company_id?: IntFilter<"DeviceRegistration"> | number
    device_name?: StringFilter<"DeviceRegistration"> | string
    device_unique_id?: StringFilter<"DeviceRegistration"> | string
    user_id?: IntFilter<"DeviceRegistration"> | number
    status_id?: IntFilter<"DeviceRegistration"> | number
    created_by?: IntFilter<"DeviceRegistration"> | number
    created_at?: DateTimeFilter<"DeviceRegistration"> | Date | string
    updated_by?: IntNullableFilter<"DeviceRegistration"> | number | null
    updated_at?: DateTimeFilter<"DeviceRegistration"> | Date | string
    deleted_by?: IntNullableFilter<"DeviceRegistration"> | number | null
    deleted_at?: DateTimeNullableFilter<"DeviceRegistration"> | Date | string | null
    status?: XOR<StatusRelationFilter, StatusWhereInput>
    created_device_registration?: XOR<UserRelationFilter, UserWhereInput>
    updated_device_registration?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    deleted_device_registration?: XOR<UserNullableRelationFilter, UserWhereInput> | null
    user?: XOR<UserRelationFilter, UserWhereInput>
  }, "id" | "company_id_id" | "company_id_uuid" | "company_id_device_unique_id">

  export type DeviceRegistrationOrderByWithAggregationInput = {
    id?: SortOrder
    uuid?: SortOrder
    company_id?: SortOrder
    device_name?: SortOrder
    device_unique_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrderInput | SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrderInput | SortOrder
    deleted_at?: SortOrderInput | SortOrder
    _count?: DeviceRegistrationCountOrderByAggregateInput
    _avg?: DeviceRegistrationAvgOrderByAggregateInput
    _max?: DeviceRegistrationMaxOrderByAggregateInput
    _min?: DeviceRegistrationMinOrderByAggregateInput
    _sum?: DeviceRegistrationSumOrderByAggregateInput
  }

  export type DeviceRegistrationScalarWhereWithAggregatesInput = {
    AND?: DeviceRegistrationScalarWhereWithAggregatesInput | DeviceRegistrationScalarWhereWithAggregatesInput[]
    OR?: DeviceRegistrationScalarWhereWithAggregatesInput[]
    NOT?: DeviceRegistrationScalarWhereWithAggregatesInput | DeviceRegistrationScalarWhereWithAggregatesInput[]
    id?: IntWithAggregatesFilter<"DeviceRegistration"> | number
    uuid?: StringWithAggregatesFilter<"DeviceRegistration"> | string
    company_id?: IntWithAggregatesFilter<"DeviceRegistration"> | number
    device_name?: StringWithAggregatesFilter<"DeviceRegistration"> | string
    device_unique_id?: StringWithAggregatesFilter<"DeviceRegistration"> | string
    user_id?: IntWithAggregatesFilter<"DeviceRegistration"> | number
    status_id?: IntWithAggregatesFilter<"DeviceRegistration"> | number
    created_by?: IntWithAggregatesFilter<"DeviceRegistration"> | number
    created_at?: DateTimeWithAggregatesFilter<"DeviceRegistration"> | Date | string
    updated_by?: IntNullableWithAggregatesFilter<"DeviceRegistration"> | number | null
    updated_at?: DateTimeWithAggregatesFilter<"DeviceRegistration"> | Date | string
    deleted_by?: IntNullableWithAggregatesFilter<"DeviceRegistration"> | number | null
    deleted_at?: DateTimeNullableWithAggregatesFilter<"DeviceRegistration"> | Date | string | null
  }

  export type UserCreateInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserCreateManyInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
  }

  export type UserUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
  }

  export type UserUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
  }

  export type UserDetailCreateInput = {
    code: string
    first_name: string
    last_name?: string | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    designation?: DesignationCreateNestedOneWithoutUsersInput
    department?: DepartmentCreateNestedOneWithoutUsersInput
    user: UserCreateNestedOneWithoutUser_detailInput
    created?: UserCreateNestedOneWithoutCreated_user_detailsInput
    updated?: UserCreateNestedOneWithoutUpdated_user_detailsInput
    deleted?: UserCreateNestedOneWithoutDeleted_user_detailsInput
  }

  export type UserDetailUncheckedCreateInput = {
    id?: number
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailUpdateInput = {
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    designation?: DesignationUpdateOneWithoutUsersNestedInput
    department?: DepartmentUpdateOneWithoutUsersNestedInput
    user?: UserUpdateOneRequiredWithoutUser_detailNestedInput
    created?: UserUpdateOneWithoutCreated_user_detailsNestedInput
    updated?: UserUpdateOneWithoutUpdated_user_detailsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_user_detailsNestedInput
  }

  export type UserDetailUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailCreateManyInput = {
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailUpdateManyMutationInput = {
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DesignationCreateInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDesignationsInput
    users?: UserDetailCreateNestedManyWithoutDesignationInput
    created?: UserCreateNestedOneWithoutCreated_designationsInput
    updated?: UserCreateNestedOneWithoutUpdated_designationsInput
    deleted?: UserCreateNestedOneWithoutDeleted_designationsInput
  }

  export type DesignationUncheckedCreateInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDesignationInput
  }

  export type DesignationUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDesignationsNestedInput
    users?: UserDetailUpdateManyWithoutDesignationNestedInput
    created?: UserUpdateOneWithoutCreated_designationsNestedInput
    updated?: UserUpdateOneWithoutUpdated_designationsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_designationsNestedInput
  }

  export type DesignationUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDesignationNestedInput
  }

  export type DesignationCreateManyInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DesignationUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DesignationUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DepartmentCreateInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDepartmentsInput
    users?: UserDetailCreateNestedManyWithoutDepartmentInput
    department_head?: UserCreateNestedOneWithoutHead_departmentsInput
    created?: UserCreateNestedOneWithoutCreated_departmentsInput
    updated?: UserCreateNestedOneWithoutUpdated_departmentsInput
    deleted?: UserCreateNestedOneWithoutDeleted_departmentsInput
  }

  export type DepartmentUncheckedCreateInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    department_head_id?: number | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDepartmentInput
  }

  export type DepartmentUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDepartmentsNestedInput
    users?: UserDetailUpdateManyWithoutDepartmentNestedInput
    department_head?: UserUpdateOneWithoutHead_departmentsNestedInput
    created?: UserUpdateOneWithoutCreated_departmentsNestedInput
    updated?: UserUpdateOneWithoutUpdated_departmentsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_departmentsNestedInput
  }

  export type DepartmentUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDepartmentNestedInput
  }

  export type DepartmentCreateManyInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    department_head_id?: number | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DepartmentUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DepartmentUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RequestLogCreateInput = {
    id?: bigint | number
    uuid?: string
    req_method?: string | null
    req_url?: string | null
    req_body?: string | null
    res_status?: boolean
    res_code?: number
    res_message?: string | null
    req_response?: string | null
    req_headers?: string | null
    req_ip?: string | null
    req_device?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutRequest_logsInput
    user?: UserCreateNestedOneWithoutRequest_logsInput
  }

  export type RequestLogUncheckedCreateInput = {
    id?: bigint | number
    uuid?: string
    user_id?: number | null
    req_method?: string | null
    req_url?: string | null
    req_body?: string | null
    res_status?: boolean
    res_code?: number
    res_message?: string | null
    req_response?: string | null
    req_headers?: string | null
    req_ip?: string | null
    req_device?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RequestLogUpdateInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutRequest_logsNestedInput
    user?: UserUpdateOneWithoutRequest_logsNestedInput
  }

  export type RequestLogUncheckedUpdateInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    user_id?: NullableIntFieldUpdateOperationsInput | number | null
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RequestLogCreateManyInput = {
    uuid?: string
    user_id?: number | null
    req_method?: string | null
    req_url?: string | null
    req_body?: string | null
    res_status?: boolean
    res_code?: number
    res_message?: string | null
    req_response?: string | null
    req_headers?: string | null
    req_ip?: string | null
    req_device?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RequestLogUpdateManyMutationInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RequestLogUncheckedUpdateManyInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    user_id?: NullableIntFieldUpdateOperationsInput | number | null
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type FinancialYearCreateInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutFinancial_yearsInput
    document_sequence?: DocumentSequenceCreateNestedManyWithoutFinanicial_yearInput
    created?: UserCreateNestedOneWithoutCreated_fin_yearsInput
    updated?: UserCreateNestedOneWithoutUpdated_fin_yearsInput
    deleted?: UserCreateNestedOneWithoutDeleted_fin_yearsInput
  }

  export type FinancialYearUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    document_sequence?: DocumentSequenceUncheckedCreateNestedManyWithoutFinanicial_yearInput
  }

  export type FinancialYearUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutFinancial_yearsNestedInput
    document_sequence?: DocumentSequenceUpdateManyWithoutFinanicial_yearNestedInput
    created?: UserUpdateOneWithoutCreated_fin_yearsNestedInput
    updated?: UserUpdateOneWithoutUpdated_fin_yearsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_fin_yearsNestedInput
  }

  export type FinancialYearUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    document_sequence?: DocumentSequenceUncheckedUpdateManyWithoutFinanicial_yearNestedInput
  }

  export type FinancialYearCreateManyInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type FinancialYearUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type FinancialYearUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceCreateInput = {
    uuid?: string
    module_name: string
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    code_format?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDocument_sequencesInput
    finanicial_year?: FinancialYearCreateNestedOneWithoutDocument_sequenceInput
    created?: UserCreateNestedOneWithoutCreated_doc_sequencesInput
    updated?: UserCreateNestedOneWithoutUpdated_doc_sequencesInput
    deleted?: UserCreateNestedOneWithoutDeleted_doc_sequencesInput
  }

  export type DocumentSequenceUncheckedCreateInput = {
    id?: number
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDocument_sequencesNestedInput
    finanicial_year?: FinancialYearUpdateOneWithoutDocument_sequenceNestedInput
    created?: UserUpdateOneWithoutCreated_doc_sequencesNestedInput
    updated?: UserUpdateOneWithoutUpdated_doc_sequencesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_doc_sequencesNestedInput
  }

  export type DocumentSequenceUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceCreateManyInput = {
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type AuditLogCreateInput = {
    operation_type: string
    table_name: string
    field_name: string
    old_value?: string | null
    new_value?: string | null
    entity_id: number
    company_id?: number | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutAudit_logsInput
    user?: UserCreateNestedOneWithoutAudit_logsInput
  }

  export type AuditLogUncheckedCreateInput = {
    id?: number
    operation_type: string
    table_name: string
    field_name: string
    old_value?: string | null
    new_value?: string | null
    entity_id: number
    user_id?: number | null
    status_id?: number
    company_id?: number | null
    created_at?: Date | string
  }

  export type AuditLogUpdateInput = {
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutAudit_logsNestedInput
    user?: UserUpdateOneWithoutAudit_logsNestedInput
  }

  export type AuditLogUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    user_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type AuditLogCreateManyInput = {
    operation_type: string
    table_name: string
    field_name: string
    old_value?: string | null
    new_value?: string | null
    entity_id: number
    user_id?: number | null
    status_id?: number
    company_id?: number | null
    created_at?: Date | string
  }

  export type AuditLogUpdateManyMutationInput = {
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type AuditLogUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    user_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type PermissionsCreateInput = {
    name: string
    slug: string
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutPermissionsInput
    entity?: MasterEntityCreateNestedOneWithoutPermissionsInput
    roles?: RolePermissionsCreateNestedManyWithoutPermissionInput
    users?: UserPermissionsCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsUncheckedCreateInput = {
    id?: number
    name: string
    slug: string
    entity_id?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    company_id: number
    created_at?: Date | string
    roles?: RolePermissionsUncheckedCreateNestedManyWithoutPermissionInput
    users?: UserPermissionsUncheckedCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsUncheckedCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsUpdateInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutPermissionsNestedInput
    entity?: MasterEntityUpdateOneWithoutPermissionsNestedInput
    roles?: RolePermissionsUpdateManyWithoutPermissionNestedInput
    users?: UserPermissionsUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUpdateManyWithoutPermissionNestedInput
  }

  export type PermissionsUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    roles?: RolePermissionsUncheckedUpdateManyWithoutPermissionNestedInput
    users?: UserPermissionsUncheckedUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUncheckedUpdateManyWithoutPermissionNestedInput
  }

  export type PermissionsCreateManyInput = {
    name: string
    slug: string
    entity_id?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type PermissionsUpdateManyMutationInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type PermissionsUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type RoleCreateInput = {
    uuid?: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutRolesInput
    permissions?: RolePermissionsCreateNestedManyWithoutRoleInput
    users?: UserRolesCreateNestedManyWithoutRoleInput
    created?: UserCreateNestedOneWithoutCreated_rolesInput
    updated?: UserCreateNestedOneWithoutUpdated_rolesInput
    deleted?: UserCreateNestedOneWithoutDeleted_rolesInput
  }

  export type RoleUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: RolePermissionsUncheckedCreateNestedManyWithoutRoleInput
    users?: UserRolesUncheckedCreateNestedManyWithoutRoleInput
  }

  export type RoleUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutRolesNestedInput
    permissions?: RolePermissionsUpdateManyWithoutRoleNestedInput
    users?: UserRolesUpdateManyWithoutRoleNestedInput
    created?: UserUpdateOneWithoutCreated_rolesNestedInput
    updated?: UserUpdateOneWithoutUpdated_rolesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_rolesNestedInput
  }

  export type RoleUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: RolePermissionsUncheckedUpdateManyWithoutRoleNestedInput
    users?: UserRolesUncheckedUpdateManyWithoutRoleNestedInput
  }

  export type RoleCreateManyInput = {
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RoleUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RoleUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RolePermissionsCreateInput = {
    role: RoleCreateNestedOneWithoutPermissionsInput
    permission: PermissionsCreateNestedOneWithoutRolesInput
  }

  export type RolePermissionsUncheckedCreateInput = {
    role_id: number
    permission_id: number
    company_id: number
  }

  export type RolePermissionsUpdateInput = {
    role?: RoleUpdateOneRequiredWithoutPermissionsNestedInput
    permission?: PermissionsUpdateOneRequiredWithoutRolesNestedInput
  }

  export type RolePermissionsUncheckedUpdateInput = {
    role_id?: IntFieldUpdateOperationsInput | number
    permission_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type RolePermissionsCreateManyInput = {
    role_id: number
    permission_id: number
    company_id: number
  }

  export type RolePermissionsUpdateManyMutationInput = {

  }

  export type RolePermissionsUncheckedUpdateManyInput = {
    role_id?: IntFieldUpdateOperationsInput | number
    permission_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserRolesCreateInput = {
    user: UserCreateNestedOneWithoutRolesInput
    role: RoleCreateNestedOneWithoutUsersInput
  }

  export type UserRolesUncheckedCreateInput = {
    user_id: number
    role_id: number
    company_id: number
  }

  export type UserRolesUpdateInput = {
    user?: UserUpdateOneRequiredWithoutRolesNestedInput
    role?: RoleUpdateOneRequiredWithoutUsersNestedInput
  }

  export type UserRolesUncheckedUpdateInput = {
    user_id?: IntFieldUpdateOperationsInput | number
    role_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserRolesCreateManyInput = {
    user_id: number
    role_id: number
    company_id: number
  }

  export type UserRolesUpdateManyMutationInput = {

  }

  export type UserRolesUncheckedUpdateManyInput = {
    user_id?: IntFieldUpdateOperationsInput | number
    role_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserPermissionsCreateInput = {
    user: UserCreateNestedOneWithoutPermissionsInput
    permission: PermissionsCreateNestedOneWithoutUsersInput
  }

  export type UserPermissionsUncheckedCreateInput = {
    user_id: number
    permission_id: number
    company_id: number
  }

  export type UserPermissionsUpdateInput = {
    user?: UserUpdateOneRequiredWithoutPermissionsNestedInput
    permission?: PermissionsUpdateOneRequiredWithoutUsersNestedInput
  }

  export type UserPermissionsUncheckedUpdateInput = {
    user_id?: IntFieldUpdateOperationsInput | number
    permission_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserPermissionsCreateManyInput = {
    user_id: number
    permission_id: number
    company_id: number
  }

  export type UserPermissionsUpdateManyMutationInput = {

  }

  export type UserPermissionsUncheckedUpdateManyInput = {
    user_id?: IntFieldUpdateOperationsInput | number
    permission_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type OtpCreateInput = {
    otp: string
    purpose: string
    created_at?: Date | string
    user: UserCreateNestedOneWithoutOtpsInput
  }

  export type OtpUncheckedCreateInput = {
    id?: number
    user_id: number
    otp: string
    purpose: string
    company_id: number
    created_at?: Date | string
  }

  export type OtpUpdateInput = {
    otp?: StringFieldUpdateOperationsInput | string
    purpose?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    user?: UserUpdateOneRequiredWithoutOtpsNestedInput
  }

  export type OtpUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    otp?: StringFieldUpdateOperationsInput | string
    purpose?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type OtpCreateManyInput = {
    user_id: number
    otp: string
    purpose: string
    company_id: number
    created_at?: Date | string
  }

  export type OtpUpdateManyMutationInput = {
    otp?: StringFieldUpdateOperationsInput | string
    purpose?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type OtpUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    otp?: StringFieldUpdateOperationsInput | string
    purpose?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type LanguageCreateInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutLanguagesInput
    translations?: LanguageContentCreateNestedManyWithoutLanguageInput
    created?: UserCreateNestedOneWithoutCreated_languagesInput
    updated?: UserCreateNestedOneWithoutUpdated_languagesInput
    deleted?: UserCreateNestedOneWithoutDeleted_languagesInput
  }

  export type LanguageUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    translations?: LanguageContentUncheckedCreateNestedManyWithoutLanguageInput
  }

  export type LanguageUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutLanguagesNestedInput
    translations?: LanguageContentUpdateManyWithoutLanguageNestedInput
    created?: UserUpdateOneWithoutCreated_languagesNestedInput
    updated?: UserUpdateOneWithoutUpdated_languagesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_languagesNestedInput
  }

  export type LanguageUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    translations?: LanguageContentUncheckedUpdateManyWithoutLanguageNestedInput
  }

  export type LanguageCreateManyInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type LanguageUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type LanguageUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type LanguageContentCreateInput = {
    key_content: string
    values: string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutLanguage_contentsInput
    language?: LanguageCreateNestedOneWithoutTranslationsInput
  }

  export type LanguageContentUncheckedCreateInput = {
    id?: number
    language_id: number
    key_content: string
    values: string
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type LanguageContentUpdateInput = {
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutLanguage_contentsNestedInput
    language?: LanguageUpdateOneWithoutTranslationsNestedInput
  }

  export type LanguageContentUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    language_id?: IntFieldUpdateOperationsInput | number
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type LanguageContentCreateManyInput = {
    language_id: number
    key_content: string
    values: string
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type LanguageContentUpdateManyMutationInput = {
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type LanguageContentUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    language_id?: IntFieldUpdateOperationsInput | number
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MenusCreateInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenusInput
    menuitems?: MenuItemsCreateNestedManyWithoutMenusInput
    created?: UserCreateNestedOneWithoutCreated_menusInput
    updated?: UserCreateNestedOneWithoutUpdated_menusInput
    deleted?: UserCreateNestedOneWithoutDeleted_menusInput
  }

  export type MenusUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutMenusInput
  }

  export type MenusUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutMenusNestedInput
    created?: UserUpdateOneWithoutCreated_menusNestedInput
    updated?: UserUpdateOneWithoutUpdated_menusNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menusNestedInput
  }

  export type MenusUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    menuitems?: MenuItemsUncheckedUpdateManyWithoutMenusNestedInput
  }

  export type MenusCreateManyInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenusUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenusUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenuItemsCreateInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenuitemsInput
    menus?: MenusCreateNestedOneWithoutMenuitemsInput
    entity?: MasterEntityCreateNestedOneWithoutMenusInput
    permission?: PermissionsCreateNestedOneWithoutMenusInput
    parent?: MenuItemsCreateNestedOneWithoutChildrenInput
    children?: MenuItemsCreateNestedManyWithoutParentInput
    created?: UserCreateNestedOneWithoutCreated_menu_itemsInput
    updated?: UserCreateNestedOneWithoutUpdated_menu_itemsInput
    deleted?: UserCreateNestedOneWithoutDeleted_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateInput = {
    id?: number
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    children?: MenuItemsUncheckedCreateNestedManyWithoutParentInput
  }

  export type MenuItemsUpdateInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenuitemsNestedInput
    menus?: MenusUpdateOneWithoutMenuitemsNestedInput
    entity?: MasterEntityUpdateOneWithoutMenusNestedInput
    permission?: PermissionsUpdateOneWithoutMenusNestedInput
    parent?: MenuItemsUpdateOneWithoutChildrenNestedInput
    children?: MenuItemsUpdateManyWithoutParentNestedInput
    created?: UserUpdateOneWithoutCreated_menu_itemsNestedInput
    updated?: UserUpdateOneWithoutUpdated_menu_itemsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    children?: MenuItemsUncheckedUpdateManyWithoutParentNestedInput
  }

  export type MenuItemsCreateManyInput = {
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenuItemsUpdateManyMutationInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenuItemsUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ActionTypeCreateInput = {
    name: string
    description: string
    company_id: number
  }

  export type ActionTypeUncheckedCreateInput = {
    id?: number
    name: string
    description: string
    company_id: number
  }

  export type ActionTypeUpdateInput = {
    name?: StringFieldUpdateOperationsInput | string
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type ActionTypeUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type ActionTypeCreateManyInput = {
    name: string
    description: string
    company_id: number
  }

  export type ActionTypeUpdateManyMutationInput = {
    name?: StringFieldUpdateOperationsInput | string
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type ActionTypeUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EntityTypeCreateInput = {
    name: string
    slug: string
    description: string
    company_id: number
  }

  export type EntityTypeUncheckedCreateInput = {
    id?: number
    name: string
    slug: string
    description: string
    company_id: number
  }

  export type EntityTypeUpdateInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EntityTypeUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EntityTypeCreateManyInput = {
    name: string
    slug: string
    description: string
    company_id: number
  }

  export type EntityTypeUpdateManyMutationInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EntityTypeUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type WizardGroupCreateInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    status_id?: number
    created_at?: Date | string
    company_id: number
  }

  export type WizardGroupUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    status_id?: number
    created_at?: Date | string
    company_id: number
  }

  export type WizardGroupUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type WizardGroupUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type WizardGroupCreateManyInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    status_id?: number
    created_at?: Date | string
    company_id: number
  }

  export type WizardGroupUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type WizardGroupUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type WizardTypeCreateInput = {
    uuid?: string
    name: string
    description?: string | null
    company_id: number
  }

  export type WizardTypeUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    company_id: number
  }

  export type WizardTypeUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type WizardTypeUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type WizardTypeCreateManyInput = {
    uuid?: string
    name: string
    description?: string | null
    company_id: number
  }

  export type WizardTypeUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type WizardTypeUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type MasterEntityCreateInput = {
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMaster_gridsInput
    permissions?: PermissionsCreateNestedManyWithoutEntityInput
    line_items?: MasterEntityLineItemCreateNestedManyWithoutMaster_gridInput
    menus?: MenuItemsCreateNestedManyWithoutEntityInput
  }

  export type MasterEntityUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: PermissionsUncheckedCreateNestedManyWithoutEntityInput
    line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutMaster_gridInput
    menus?: MenuItemsUncheckedCreateNestedManyWithoutEntityInput
  }

  export type MasterEntityUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMaster_gridsNestedInput
    permissions?: PermissionsUpdateManyWithoutEntityNestedInput
    line_items?: MasterEntityLineItemUpdateManyWithoutMaster_gridNestedInput
    menus?: MenuItemsUpdateManyWithoutEntityNestedInput
  }

  export type MasterEntityUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: PermissionsUncheckedUpdateManyWithoutEntityNestedInput
    line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutMaster_gridNestedInput
    menus?: MenuItemsUncheckedUpdateManyWithoutEntityNestedInput
  }

  export type MasterEntityCreateManyInput = {
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MasterEntityUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MasterEntityUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MasterEntityLineItemCreateInput = {
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutMaster_grid_line_itemsInput
    master_grid: MasterEntityCreateNestedOneWithoutLine_itemsInput
    field_type?: FieldTypeCreateNestedOneWithoutMaster_grid_lineitemInput
  }

  export type MasterEntityLineItemUncheckedCreateInput = {
    id?: number
    master_grid_id: number
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    field_type_id: number
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type MasterEntityLineItemUpdateInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutMaster_grid_line_itemsNestedInput
    master_grid?: MasterEntityUpdateOneRequiredWithoutLine_itemsNestedInput
    field_type?: FieldTypeUpdateOneWithoutMaster_grid_lineitemNestedInput
  }

  export type MasterEntityLineItemUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    master_grid_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    field_type_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MasterEntityLineItemCreateManyInput = {
    master_grid_id: number
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    field_type_id: number
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type MasterEntityLineItemUpdateManyMutationInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MasterEntityLineItemUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    master_grid_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    field_type_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type FieldTypeCreateInput = {
    field_type: string
    company_id: number
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutField_typesInput
    master_grid_lineitem?: MasterEntityLineItemCreateNestedManyWithoutField_typeInput
    importTemplateLineItem?: ImportTemplateLineItemCreateNestedManyWithoutField_typeInput
    exportTemplateLineItem?: ExportTemplateLineItemCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeUncheckedCreateInput = {
    id?: number
    field_type: string
    company_id: number
    status_id?: number
    created_at?: Date | string
    master_grid_lineitem?: MasterEntityLineItemUncheckedCreateNestedManyWithoutField_typeInput
    importTemplateLineItem?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput
    exportTemplateLineItem?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeUpdateInput = {
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutField_typesNestedInput
    master_grid_lineitem?: MasterEntityLineItemUpdateManyWithoutField_typeNestedInput
    importTemplateLineItem?: ImportTemplateLineItemUpdateManyWithoutField_typeNestedInput
    exportTemplateLineItem?: ExportTemplateLineItemUpdateManyWithoutField_typeNestedInput
  }

  export type FieldTypeUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    master_grid_lineitem?: MasterEntityLineItemUncheckedUpdateManyWithoutField_typeNestedInput
    importTemplateLineItem?: ImportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput
    exportTemplateLineItem?: ExportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput
  }

  export type FieldTypeCreateManyInput = {
    field_type: string
    company_id: number
    status_id?: number
    created_at?: Date | string
  }

  export type FieldTypeUpdateManyMutationInput = {
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type FieldTypeUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type menuTypeCreateInput = {
    name?: string | null
    company_id: number
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutMenu_typesInput
  }

  export type menuTypeUncheckedCreateInput = {
    id?: number
    name?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type menuTypeUpdateInput = {
    name?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutMenu_typesNestedInput
  }

  export type menuTypeUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type menuTypeCreateManyInput = {
    name?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type menuTypeUpdateManyMutationInput = {
    name?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type menuTypeUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type EmailTemplateProcessCreateInput = {
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    company_id: number
    status?: StatusCreateNestedOneWithoutEmail_template_processesInput
    email_template_groups?: EmailTemplateProcessTagsMappingCreateNestedManyWithoutEmail_template_processInput
    email_templates?: EmailTemplateCreateNestedManyWithoutEmail_template_processInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    status_id?: number
    company_id: number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedCreateNestedManyWithoutEmail_template_processInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutEmail_template_processInput
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    status?: StatusUpdateOneRequiredWithoutEmail_template_processesNestedInput
    email_template_groups?: EmailTemplateProcessTagsMappingUpdateManyWithoutEmail_template_processNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutEmail_template_processNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateProcessUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_processNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutEmail_template_processNestedInput
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateProcessCreateManyInput = {
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    status_id?: number
    company_id: number
  }

  export type EmailTemplateProcessUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateProcessUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateTagCreateInput = {
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    company_id: number
    status?: StatusCreateNestedOneWithoutEmail_template_tagsInput
    email_template_groups?: EmailTemplateProcessTagsMappingCreateNestedManyWithoutEmail_template_tagInput
  }

  export type EmailTemplateTagUncheckedCreateInput = {
    id?: number
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    status_id?: number
    company_id: number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedCreateNestedManyWithoutEmail_template_tagInput
  }

  export type EmailTemplateTagUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    status?: StatusUpdateOneRequiredWithoutEmail_template_tagsNestedInput
    email_template_groups?: EmailTemplateProcessTagsMappingUpdateManyWithoutEmail_template_tagNestedInput
  }

  export type EmailTemplateTagUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_tagNestedInput
  }

  export type EmailTemplateTagCreateManyInput = {
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    status_id?: number
    company_id: number
  }

  export type EmailTemplateTagUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateTagUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateRecipientTagCreateInput = {
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    query_information?: string | null
    company_id: number
    status?: StatusCreateNestedOneWithoutEmail_template_receiver_tagsInput
  }

  export type EmailTemplateRecipientTagUncheckedCreateInput = {
    id?: number
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    query_information?: string | null
    status_id?: number
    company_id: number
  }

  export type EmailTemplateRecipientTagUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    status?: StatusUpdateOneRequiredWithoutEmail_template_receiver_tagsNestedInput
  }

  export type EmailTemplateRecipientTagUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateRecipientTagCreateManyInput = {
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    query_information?: string | null
    status_id?: number
    company_id: number
  }

  export type EmailTemplateRecipientTagUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateRecipientTagUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateProcessTagsMappingCreateInput = {
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_template_groupsInput
    email_template_tag: EmailTemplateTagCreateNestedOneWithoutEmail_template_groupsInput
  }

  export type EmailTemplateProcessTagsMappingUncheckedCreateInput = {
    email_template_process_id: number
    email_template_tag_id: number
    company_id: number
  }

  export type EmailTemplateProcessTagsMappingUpdateInput = {
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_template_groupsNestedInput
    email_template_tag?: EmailTemplateTagUpdateOneRequiredWithoutEmail_template_groupsNestedInput
  }

  export type EmailTemplateProcessTagsMappingUncheckedUpdateInput = {
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    email_template_tag_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateProcessTagsMappingCreateManyInput = {
    email_template_process_id: number
    email_template_tag_id: number
    company_id: number
  }

  export type EmailTemplateProcessTagsMappingUpdateManyMutationInput = {

  }

  export type EmailTemplateProcessTagsMappingUncheckedUpdateManyInput = {
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    email_template_tag_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateCreateInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutEmail_templatesInput
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_templatesInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_templateInput
    created?: UserCreateNestedOneWithoutCreated_email_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_email_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_email_templatesInput
  }

  export type EmailTemplateUncheckedCreateInput = {
    id?: number
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    deleted_by?: number | null
    company_id: number
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_templateInput
  }

  export type EmailTemplateUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_templateNestedInput
    created?: UserUpdateOneWithoutCreated_email_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_email_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_email_templatesNestedInput
  }

  export type EmailTemplateUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_templateNestedInput
  }

  export type EmailTemplateCreateManyInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    deleted_by?: number | null
    company_id: number
  }

  export type EmailTemplateUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type EmailTemplateUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateAssignmentCreateInput = {
    uuid?: string
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_template_assignmentsInput
    email_template: EmailTemplateCreateNestedOneWithoutEmail_template_assignmentsInput
    created: UserCreateNestedOneWithoutCreated_email_template_assignmentsInput
  }

  export type EmailTemplateAssignmentUncheckedCreateInput = {
    id?: number
    uuid?: string
    email_template_process_id: number
    template_id: number
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    company_id: number
    created_at?: Date | string
    created_by: number
  }

  export type EmailTemplateAssignmentUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_template_assignmentsNestedInput
    email_template?: EmailTemplateUpdateOneRequiredWithoutEmail_template_assignmentsNestedInput
    created?: UserUpdateOneRequiredWithoutCreated_email_template_assignmentsNestedInput
  }

  export type EmailTemplateAssignmentUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    template_id?: IntFieldUpdateOperationsInput | number
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateAssignmentCreateManyInput = {
    uuid?: string
    email_template_process_id: number
    template_id: number
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    company_id: number
    created_at?: Date | string
    created_by: number
  }

  export type EmailTemplateAssignmentUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type EmailTemplateAssignmentUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    template_id?: IntFieldUpdateOperationsInput | number
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: IntFieldUpdateOperationsInput | number
  }

  export type EmailProcessJobCreateInput = {
    uuid?: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutEmail_process_jobsInput
    created?: UserCreateNestedOneWithoutCreated_email_process_jobsInput
  }

  export type EmailProcessJobUncheckedCreateInput = {
    id?: number
    uuid?: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data?: string | null
    company_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
  }

  export type EmailProcessJobUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutEmail_process_jobsNestedInput
    created?: UserUpdateOneWithoutCreated_email_process_jobsNestedInput
  }

  export type EmailProcessJobUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
  }

  export type EmailProcessJobCreateManyInput = {
    uuid?: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data?: string | null
    company_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
  }

  export type EmailProcessJobUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type EmailProcessJobUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
  }

  export type NotificationJobCreateInput = {
    uuid?: string
    process_slug: string
    notification_to?: string | null
    notification_subject?: string | null
    notification_content?: string | null
    notification_cc?: string | null
    notification_bcc?: string | null
    notification_type_id: string
    notification_status_id: string
    created_at?: Date | string
    sent_at?: Date | string | null
    read_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutNotification_jobInput
    created?: UserCreateNestedOneWithoutCreated_notification_jobInput
  }

  export type NotificationJobUncheckedCreateInput = {
    id?: number
    uuid?: string
    process_slug: string
    notification_to?: string | null
    notification_subject?: string | null
    notification_content?: string | null
    notification_cc?: string | null
    notification_bcc?: string | null
    notification_type_id: string
    notification_status_id: string
    company_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    sent_at?: Date | string | null
    read_at?: Date | string | null
  }

  export type NotificationJobUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutNotification_jobNestedInput
    created?: UserUpdateOneWithoutCreated_notification_jobNestedInput
  }

  export type NotificationJobUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type NotificationJobCreateManyInput = {
    uuid?: string
    process_slug: string
    notification_to?: string | null
    notification_subject?: string | null
    notification_content?: string | null
    notification_cc?: string | null
    notification_bcc?: string | null
    notification_type_id: string
    notification_status_id: string
    company_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    sent_at?: Date | string | null
    read_at?: Date | string | null
  }

  export type NotificationJobUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type NotificationJobUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportTemplateCreateInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_import_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_import_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_templatesInput
    line_items?: ImportTemplateLineItemCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_import_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_templatesNestedInput
    line_items?: ImportTemplateLineItemUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateCreateManyInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportTemplateUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportTemplateUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportTemplateLineItemCreateInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutImport_template_line_itemsInput
    import_template: ImportTemplateCreateNestedOneWithoutLine_itemsInput
    field_type?: FieldTypeCreateNestedOneWithoutImportTemplateLineItemInput
  }

  export type ImportTemplateLineItemUncheckedCreateInput = {
    id?: number
    import_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ImportTemplateLineItemUpdateInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutImport_template_line_itemsNestedInput
    import_template?: ImportTemplateUpdateOneRequiredWithoutLine_itemsNestedInput
    field_type?: FieldTypeUpdateOneWithoutImportTemplateLineItemNestedInput
  }

  export type ImportTemplateLineItemUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateLineItemCreateManyInput = {
    import_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ImportTemplateLineItemUpdateManyMutationInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateLineItemUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateQueriesCreateInput = {
    query_string?: string | null
    query_name: string
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutImport_template_queriesInput
    import_template: ImportTemplateCreateNestedOneWithoutQueriesInput
  }

  export type ImportTemplateQueriesUncheckedCreateInput = {
    id?: number
    import_template_id: number
    query_string?: string | null
    query_name: string
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ImportTemplateQueriesUpdateInput = {
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutImport_template_queriesNestedInput
    import_template?: ImportTemplateUpdateOneRequiredWithoutQueriesNestedInput
  }

  export type ImportTemplateQueriesUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateQueriesCreateManyInput = {
    import_template_id: number
    query_string?: string | null
    query_name: string
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ImportTemplateQueriesUpdateManyMutationInput = {
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateQueriesUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportJobCreateInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_jobInput
    created?: UserCreateNestedOneWithoutCreated_import_jobInput
    updated?: UserCreateNestedOneWithoutUpdated_import_jobInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_jobInput
    line_items?: ImportJobLineItemCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_jobNestedInput
    created?: UserUpdateOneWithoutCreated_import_jobNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_jobNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_jobNestedInput
    line_items?: ImportJobLineItemUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportJobLineItemUncheckedUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobCreateManyInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportJobUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportJobUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportJobLineItemCreateInput = {
    row_object?: string | null
    job_status?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutImport_job_line_itemsInput
    import_job: ImportJobCreateNestedOneWithoutLine_itemsInput
  }

  export type ImportJobLineItemUncheckedCreateInput = {
    id?: number
    import_job_id: number
    row_object?: string | null
    job_status?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ImportJobLineItemUpdateInput = {
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutImport_job_line_itemsNestedInput
    import_job?: ImportJobUpdateOneRequiredWithoutLine_itemsNestedInput
  }

  export type ImportJobLineItemUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_job_id?: IntFieldUpdateOperationsInput | number
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportJobLineItemCreateManyInput = {
    import_job_id: number
    row_object?: string | null
    job_status?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ImportJobLineItemUpdateManyMutationInput = {
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportJobLineItemUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_job_id?: IntFieldUpdateOperationsInput | number
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateCreateInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutExport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_export_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_export_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_export_templatesInput
    line_items?: ExportTemplateLineItemCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateUncheckedCreateInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutExport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_export_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_export_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_export_templatesNestedInput
    line_items?: ExportTemplateLineItemUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateCreateManyInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ExportTemplateUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ExportTemplateUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ExportTemplateLineItemCreateInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutExport_template_line_itemsInput
    export_template: ExportTemplateCreateNestedOneWithoutLine_itemsInput
    field_type?: FieldTypeCreateNestedOneWithoutExportTemplateLineItemInput
  }

  export type ExportTemplateLineItemUncheckedCreateInput = {
    id?: number
    export_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ExportTemplateLineItemUpdateInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutExport_template_line_itemsNestedInput
    export_template?: ExportTemplateUpdateOneRequiredWithoutLine_itemsNestedInput
    field_type?: FieldTypeUpdateOneWithoutExportTemplateLineItemNestedInput
  }

  export type ExportTemplateLineItemUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateLineItemCreateManyInput = {
    export_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ExportTemplateLineItemUpdateManyMutationInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateLineItemUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateQueriesCreateInput = {
    query_string?: string | null
    query_name: string
    query_procedure?: string
    is_individual?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutExport_template_queriesInput
    export_template: ExportTemplateCreateNestedOneWithoutQueriesInput
  }

  export type ExportTemplateQueriesUncheckedCreateInput = {
    id?: number
    export_template_id: number
    query_string?: string | null
    query_name: string
    query_procedure?: string
    is_individual?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ExportTemplateQueriesUpdateInput = {
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutExport_template_queriesNestedInput
    export_template?: ExportTemplateUpdateOneRequiredWithoutQueriesNestedInput
  }

  export type ExportTemplateQueriesUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateQueriesCreateManyInput = {
    export_template_id: number
    query_string?: string | null
    query_name: string
    query_procedure?: string
    is_individual?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type ExportTemplateQueriesUpdateManyMutationInput = {
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateQueriesUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type StatusCreateInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusUpdateInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type StatusCreateManyInput = {
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
  }

  export type StatusUpdateManyMutationInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
  }

  export type StatusUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
  }

  export type CategoryTypesCreateInput = {
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    created_category_types?: UserCreateNestedOneWithoutCreated_category_typesInput
    updated_category_types?: UserCreateNestedOneWithoutUpdated_category_typesInput
    deleted_category_types?: UserCreateNestedOneWithoutDeleted_category_typesInput
    categories?: CategoriesCreateNestedManyWithoutCategory_typeInput
  }

  export type CategoryTypesUncheckedCreateInput = {
    id?: number
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    categories?: CategoriesUncheckedCreateNestedManyWithoutCategory_typeInput
  }

  export type CategoryTypesUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created_category_types?: UserUpdateOneWithoutCreated_category_typesNestedInput
    updated_category_types?: UserUpdateOneWithoutUpdated_category_typesNestedInput
    deleted_category_types?: UserUpdateOneWithoutDeleted_category_typesNestedInput
    categories?: CategoriesUpdateManyWithoutCategory_typeNestedInput
  }

  export type CategoryTypesUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    categories?: CategoriesUncheckedUpdateManyWithoutCategory_typeNestedInput
  }

  export type CategoryTypesCreateManyInput = {
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type CategoryTypesUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type CategoryTypesUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type CategoriesCreateInput = {
    uuid?: string
    category_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    parent?: CategoriesCreateNestedOneWithoutSubcategoriesInput
    subcategories?: CategoriesCreateNestedManyWithoutParentInput
    category_type: CategoryTypesCreateNestedOneWithoutCategoriesInput
    created_categories?: UserCreateNestedOneWithoutCreated_categoriesInput
    updated_categories?: UserCreateNestedOneWithoutUpdated_categoriesInput
    deleted_categories?: UserCreateNestedOneWithoutDeleted_categoriesInput
    configurations?: ConfigurationsCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesUncheckedCreateInput = {
    id?: number
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    subcategories?: CategoriesUncheckedCreateNestedManyWithoutParentInput
    configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    parent?: CategoriesUpdateOneWithoutSubcategoriesNestedInput
    subcategories?: CategoriesUpdateManyWithoutParentNestedInput
    category_type?: CategoryTypesUpdateOneRequiredWithoutCategoriesNestedInput
    created_categories?: UserUpdateOneWithoutCreated_categoriesNestedInput
    updated_categories?: UserUpdateOneWithoutUpdated_categoriesNestedInput
    deleted_categories?: UserUpdateOneWithoutDeleted_categoriesNestedInput
    configurations?: ConfigurationsUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    subcategories?: CategoriesUncheckedUpdateManyWithoutParentNestedInput
    configurations?: ConfigurationsUncheckedUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesCreateManyInput = {
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type CategoriesUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type CategoriesUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsCreateInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
    category: CategoriesCreateNestedOneWithoutConfigurationsInput
    created_configurations?: UserCreateNestedOneWithoutCreated_configurationsInput
    updated_configurations?: UserCreateNestedOneWithoutUpdated_configurationsInput
    deleted_configurations?: UserCreateNestedOneWithoutDeleted_configurationsInput
  }

  export type ConfigurationsUncheckedCreateInput = {
    id?: number
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    category_id: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type ConfigurationsUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    category?: CategoriesUpdateOneRequiredWithoutConfigurationsNestedInput
    created_configurations?: UserUpdateOneWithoutCreated_configurationsNestedInput
    updated_configurations?: UserUpdateOneWithoutUpdated_configurationsNestedInput
    deleted_configurations?: UserUpdateOneWithoutDeleted_configurationsNestedInput
  }

  export type ConfigurationsUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsCreateManyInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    category_id: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type ConfigurationsUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type FileUploadLogCreateInput = {
    uuid?: string
    doc_name?: string | null
    org_name?: string | null
    extension?: string | null
    description?: string | null
    company_id: number
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutFile_upload_logsInput
  }

  export type FileUploadLogUncheckedCreateInput = {
    id?: number
    uuid?: string
    doc_name?: string | null
    org_name?: string | null
    extension?: string | null
    description?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type FileUploadLogUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    doc_name?: NullableStringFieldUpdateOperationsInput | string | null
    org_name?: NullableStringFieldUpdateOperationsInput | string | null
    extension?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutFile_upload_logsNestedInput
  }

  export type FileUploadLogUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    doc_name?: NullableStringFieldUpdateOperationsInput | string | null
    org_name?: NullableStringFieldUpdateOperationsInput | string | null
    extension?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type FileUploadLogCreateManyInput = {
    uuid?: string
    doc_name?: string | null
    org_name?: string | null
    extension?: string | null
    description?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
  }

  export type FileUploadLogUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    doc_name?: NullableStringFieldUpdateOperationsInput | string | null
    org_name?: NullableStringFieldUpdateOperationsInput | string | null
    extension?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type FileUploadLogUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    doc_name?: NullableStringFieldUpdateOperationsInput | string | null
    org_name?: NullableStringFieldUpdateOperationsInput | string | null
    extension?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type DataTransferQueriesCreateInput = {
    uuid?: string
    select_query: string
    insert_query: string
    transfer_type: string
    job_name: string
    destination_table: string
    clear_destination_table: boolean
    execution_order: number
    command_type: string
    status_id?: number
    created_by?: number | null
    created_at?: Date | string | null
    company_id: number
  }

  export type DataTransferQueriesUncheckedCreateInput = {
    id?: number
    uuid?: string
    select_query: string
    insert_query: string
    transfer_type: string
    job_name: string
    destination_table: string
    clear_destination_table: boolean
    execution_order: number
    command_type: string
    status_id?: number
    created_by?: number | null
    created_at?: Date | string | null
    company_id: number
  }

  export type DataTransferQueriesUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    select_query?: StringFieldUpdateOperationsInput | string
    insert_query?: StringFieldUpdateOperationsInput | string
    transfer_type?: StringFieldUpdateOperationsInput | string
    job_name?: StringFieldUpdateOperationsInput | string
    destination_table?: StringFieldUpdateOperationsInput | string
    clear_destination_table?: BoolFieldUpdateOperationsInput | boolean
    execution_order?: IntFieldUpdateOperationsInput | number
    command_type?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type DataTransferQueriesUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    select_query?: StringFieldUpdateOperationsInput | string
    insert_query?: StringFieldUpdateOperationsInput | string
    transfer_type?: StringFieldUpdateOperationsInput | string
    job_name?: StringFieldUpdateOperationsInput | string
    destination_table?: StringFieldUpdateOperationsInput | string
    clear_destination_table?: BoolFieldUpdateOperationsInput | boolean
    execution_order?: IntFieldUpdateOperationsInput | number
    command_type?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type DataTransferQueriesCreateManyInput = {
    uuid?: string
    select_query: string
    insert_query: string
    transfer_type: string
    job_name: string
    destination_table: string
    clear_destination_table: boolean
    execution_order: number
    command_type: string
    status_id?: number
    created_by?: number | null
    created_at?: Date | string | null
    company_id: number
  }

  export type DataTransferQueriesUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    select_query?: StringFieldUpdateOperationsInput | string
    insert_query?: StringFieldUpdateOperationsInput | string
    transfer_type?: StringFieldUpdateOperationsInput | string
    job_name?: StringFieldUpdateOperationsInput | string
    destination_table?: StringFieldUpdateOperationsInput | string
    clear_destination_table?: BoolFieldUpdateOperationsInput | boolean
    execution_order?: IntFieldUpdateOperationsInput | number
    command_type?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type DataTransferQueriesUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    select_query?: StringFieldUpdateOperationsInput | string
    insert_query?: StringFieldUpdateOperationsInput | string
    transfer_type?: StringFieldUpdateOperationsInput | string
    job_name?: StringFieldUpdateOperationsInput | string
    destination_table?: StringFieldUpdateOperationsInput | string
    clear_destination_table?: BoolFieldUpdateOperationsInput | boolean
    execution_order?: IntFieldUpdateOperationsInput | number
    command_type?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type DeviceRegistrationCreateInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDevice_registrationInput
    created_device_registration: UserCreateNestedOneWithoutCreated_device_registrationInput
    updated_device_registration?: UserCreateNestedOneWithoutUpdated_device_registrationInput
    deleted_device_registration?: UserCreateNestedOneWithoutDeleted_device_registrationInput
    user: UserCreateNestedOneWithoutDeviceRegistrationInput
  }

  export type DeviceRegistrationUncheckedCreateInput = {
    id?: number
    uuid?: string
    company_id: number
    device_name: string
    device_unique_id: string
    user_id: number
    status_id?: number
    created_by: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationUpdateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDevice_registrationNestedInput
    created_device_registration?: UserUpdateOneRequiredWithoutCreated_device_registrationNestedInput
    updated_device_registration?: UserUpdateOneWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: UserUpdateOneWithoutDeleted_device_registrationNestedInput
    user?: UserUpdateOneRequiredWithoutDeviceRegistrationNestedInput
  }

  export type DeviceRegistrationUncheckedUpdateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationCreateManyInput = {
    uuid?: string
    company_id: number
    device_name: string
    device_unique_id: string
    user_id: number
    status_id?: number
    created_by: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationUpdateManyMutationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUncheckedUpdateManyInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type IntFilter<$PrismaModel = never> = {
    equals?: number | IntFieldRefInput<$PrismaModel>
    in?: number[]
    notIn?: number[]
    lt?: number | IntFieldRefInput<$PrismaModel>
    lte?: number | IntFieldRefInput<$PrismaModel>
    gt?: number | IntFieldRefInput<$PrismaModel>
    gte?: number | IntFieldRefInput<$PrismaModel>
    not?: NestedIntFilter<$PrismaModel> | number
  }

  export type StringFilter<$PrismaModel = never> = {
    equals?: string | StringFieldRefInput<$PrismaModel>
    in?: string[]
    notIn?: string[]
    lt?: string | StringFieldRefInput<$PrismaModel>
    lte?: string | StringFieldRefInput<$PrismaModel>
    gt?: string | StringFieldRefInput<$PrismaModel>
    gte?: string | StringFieldRefInput<$PrismaModel>
    contains?: string | StringFieldRefInput<$PrismaModel>
    startsWith?: string | StringFieldRefInput<$PrismaModel>
    endsWith?: string | StringFieldRefInput<$PrismaModel>
    not?: NestedStringFilter<$PrismaModel> | string
  }

  export type BoolFilter<$PrismaModel = never> = {
    equals?: boolean | BooleanFieldRefInput<$PrismaModel>
    not?: NestedBoolFilter<$PrismaModel> | boolean
  }

  export type StringNullableFilter<$PrismaModel = never> = {
    equals?: string | StringFieldRefInput<$PrismaModel> | null
    in?: string[] | null
    notIn?: string[] | null
    lt?: string | StringFieldRefInput<$PrismaModel>
    lte?: string | StringFieldRefInput<$PrismaModel>
    gt?: string | StringFieldRefInput<$PrismaModel>
    gte?: string | StringFieldRefInput<$PrismaModel>
    contains?: string | StringFieldRefInput<$PrismaModel>
    startsWith?: string | StringFieldRefInput<$PrismaModel>
    endsWith?: string | StringFieldRefInput<$PrismaModel>
    not?: NestedStringNullableFilter<$PrismaModel> | string | null
  }

  export type IntNullableFilter<$PrismaModel = never> = {
    equals?: number | IntFieldRefInput<$PrismaModel> | null
    in?: number[] | null
    notIn?: number[] | null
    lt?: number | IntFieldRefInput<$PrismaModel>
    lte?: number | IntFieldRefInput<$PrismaModel>
    gt?: number | IntFieldRefInput<$PrismaModel>
    gte?: number | IntFieldRefInput<$PrismaModel>
    not?: NestedIntNullableFilter<$PrismaModel> | number | null
  }

  export type DateTimeFilter<$PrismaModel = never> = {
    equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    in?: Date[] | string[]
    notIn?: Date[] | string[]
    lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  }

  export type DateTimeNullableFilter<$PrismaModel = never> = {
    equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
    in?: Date[] | string[] | null
    notIn?: Date[] | string[] | null
    lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  }

  export type StatusRelationFilter = {
    is?: StatusWhereInput
    isNot?: StatusWhereInput
  }

  export type UserDetailNullableRelationFilter = {
    is?: UserDetailWhereInput | null
    isNot?: UserDetailWhereInput | null
  }

  export type RequestLogListRelationFilter = {
    every?: RequestLogWhereInput
    some?: RequestLogWhereInput
    none?: RequestLogWhereInput
  }

  export type UserRolesListRelationFilter = {
    every?: UserRolesWhereInput
    some?: UserRolesWhereInput
    none?: UserRolesWhereInput
  }

  export type UserPermissionsListRelationFilter = {
    every?: UserPermissionsWhereInput
    some?: UserPermissionsWhereInput
    none?: UserPermissionsWhereInput
  }

  export type OtpListRelationFilter = {
    every?: OtpWhereInput
    some?: OtpWhereInput
    none?: OtpWhereInput
  }

  export type UserNullableRelationFilter = {
    is?: UserWhereInput | null
    isNot?: UserWhereInput | null
  }

  export type UserListRelationFilter = {
    every?: UserWhereInput
    some?: UserWhereInput
    none?: UserWhereInput
  }

  export type UserDetailListRelationFilter = {
    every?: UserDetailWhereInput
    some?: UserDetailWhereInput
    none?: UserDetailWhereInput
  }

  export type RoleListRelationFilter = {
    every?: RoleWhereInput
    some?: RoleWhereInput
    none?: RoleWhereInput
  }

  export type LanguageListRelationFilter = {
    every?: LanguageWhereInput
    some?: LanguageWhereInput
    none?: LanguageWhereInput
  }

  export type MenusListRelationFilter = {
    every?: MenusWhereInput
    some?: MenusWhereInput
    none?: MenusWhereInput
  }

  export type MenuItemsListRelationFilter = {
    every?: MenuItemsWhereInput
    some?: MenuItemsWhereInput
    none?: MenuItemsWhereInput
  }

  export type EmailTemplateListRelationFilter = {
    every?: EmailTemplateWhereInput
    some?: EmailTemplateWhereInput
    none?: EmailTemplateWhereInput
  }

  export type EmailTemplateAssignmentListRelationFilter = {
    every?: EmailTemplateAssignmentWhereInput
    some?: EmailTemplateAssignmentWhereInput
    none?: EmailTemplateAssignmentWhereInput
  }

  export type EmailProcessJobListRelationFilter = {
    every?: EmailProcessJobWhereInput
    some?: EmailProcessJobWhereInput
    none?: EmailProcessJobWhereInput
  }

  export type NotificationJobListRelationFilter = {
    every?: NotificationJobWhereInput
    some?: NotificationJobWhereInput
    none?: NotificationJobWhereInput
  }

  export type ImportTemplateListRelationFilter = {
    every?: ImportTemplateWhereInput
    some?: ImportTemplateWhereInput
    none?: ImportTemplateWhereInput
  }

  export type ExportTemplateListRelationFilter = {
    every?: ExportTemplateWhereInput
    some?: ExportTemplateWhereInput
    none?: ExportTemplateWhereInput
  }

  export type DepartmentListRelationFilter = {
    every?: DepartmentWhereInput
    some?: DepartmentWhereInput
    none?: DepartmentWhereInput
  }

  export type DesignationListRelationFilter = {
    every?: DesignationWhereInput
    some?: DesignationWhereInput
    none?: DesignationWhereInput
  }

  export type AuditLogListRelationFilter = {
    every?: AuditLogWhereInput
    some?: AuditLogWhereInput
    none?: AuditLogWhereInput
  }

  export type CategoryTypesListRelationFilter = {
    every?: CategoryTypesWhereInput
    some?: CategoryTypesWhereInput
    none?: CategoryTypesWhereInput
  }

  export type CategoriesListRelationFilter = {
    every?: CategoriesWhereInput
    some?: CategoriesWhereInput
    none?: CategoriesWhereInput
  }

  export type ConfigurationsListRelationFilter = {
    every?: ConfigurationsWhereInput
    some?: ConfigurationsWhereInput
    none?: ConfigurationsWhereInput
  }

  export type FinancialYearListRelationFilter = {
    every?: FinancialYearWhereInput
    some?: FinancialYearWhereInput
    none?: FinancialYearWhereInput
  }

  export type DocumentSequenceListRelationFilter = {
    every?: DocumentSequenceWhereInput
    some?: DocumentSequenceWhereInput
    none?: DocumentSequenceWhereInput
  }

  export type DeviceRegistrationListRelationFilter = {
    every?: DeviceRegistrationWhereInput
    some?: DeviceRegistrationWhereInput
    none?: DeviceRegistrationWhereInput
  }

  export type ImportJobListRelationFilter = {
    every?: ImportJobWhereInput
    some?: ImportJobWhereInput
    none?: ImportJobWhereInput
  }

  export type SortOrderInput = {
    sort: SortOrder
    nulls?: NullsOrder
  }

  export type RequestLogOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type UserRolesOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type UserPermissionsOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type OtpOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type UserOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type UserDetailOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type RoleOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type LanguageOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type MenusOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type MenuItemsOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type EmailTemplateOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type EmailTemplateAssignmentOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type EmailProcessJobOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type NotificationJobOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type ImportTemplateOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type ExportTemplateOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type DepartmentOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type DesignationOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type AuditLogOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type CategoryTypesOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type CategoriesOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type ConfigurationsOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type FinancialYearOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type DocumentSequenceOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type DeviceRegistrationOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type ImportJobOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type UserCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type UserCompany_idEmailRoleCompoundUniqueInput = {
    company_id: number
    email: string
    role: string
  }

  export type UserCompany_idUsernameCompoundUniqueInput = {
    company_id: number
    username: string
  }

  export type UserCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type UserCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    username?: SortOrder
    email?: SortOrder
    email_verified?: SortOrder
    password?: SortOrder
    status_id?: SortOrder
    role?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
    last_login?: SortOrder
    last_login_device?: SortOrder
  }

  export type UserAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type UserMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    username?: SortOrder
    email?: SortOrder
    email_verified?: SortOrder
    password?: SortOrder
    status_id?: SortOrder
    role?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
    last_login?: SortOrder
    last_login_device?: SortOrder
  }

  export type UserMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    username?: SortOrder
    email?: SortOrder
    email_verified?: SortOrder
    password?: SortOrder
    status_id?: SortOrder
    role?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
    last_login?: SortOrder
    last_login_device?: SortOrder
  }

  export type UserSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type IntWithAggregatesFilter<$PrismaModel = never> = {
    equals?: number | IntFieldRefInput<$PrismaModel>
    in?: number[]
    notIn?: number[]
    lt?: number | IntFieldRefInput<$PrismaModel>
    lte?: number | IntFieldRefInput<$PrismaModel>
    gt?: number | IntFieldRefInput<$PrismaModel>
    gte?: number | IntFieldRefInput<$PrismaModel>
    not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
    _count?: NestedIntFilter<$PrismaModel>
    _avg?: NestedFloatFilter<$PrismaModel>
    _sum?: NestedIntFilter<$PrismaModel>
    _min?: NestedIntFilter<$PrismaModel>
    _max?: NestedIntFilter<$PrismaModel>
  }

  export type StringWithAggregatesFilter<$PrismaModel = never> = {
    equals?: string | StringFieldRefInput<$PrismaModel>
    in?: string[]
    notIn?: string[]
    lt?: string | StringFieldRefInput<$PrismaModel>
    lte?: string | StringFieldRefInput<$PrismaModel>
    gt?: string | StringFieldRefInput<$PrismaModel>
    gte?: string | StringFieldRefInput<$PrismaModel>
    contains?: string | StringFieldRefInput<$PrismaModel>
    startsWith?: string | StringFieldRefInput<$PrismaModel>
    endsWith?: string | StringFieldRefInput<$PrismaModel>
    not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
    _count?: NestedIntFilter<$PrismaModel>
    _min?: NestedStringFilter<$PrismaModel>
    _max?: NestedStringFilter<$PrismaModel>
  }

  export type BoolWithAggregatesFilter<$PrismaModel = never> = {
    equals?: boolean | BooleanFieldRefInput<$PrismaModel>
    not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
    _count?: NestedIntFilter<$PrismaModel>
    _min?: NestedBoolFilter<$PrismaModel>
    _max?: NestedBoolFilter<$PrismaModel>
  }

  export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
    equals?: string | StringFieldRefInput<$PrismaModel> | null
    in?: string[] | null
    notIn?: string[] | null
    lt?: string | StringFieldRefInput<$PrismaModel>
    lte?: string | StringFieldRefInput<$PrismaModel>
    gt?: string | StringFieldRefInput<$PrismaModel>
    gte?: string | StringFieldRefInput<$PrismaModel>
    contains?: string | StringFieldRefInput<$PrismaModel>
    startsWith?: string | StringFieldRefInput<$PrismaModel>
    endsWith?: string | StringFieldRefInput<$PrismaModel>
    not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
    _count?: NestedIntNullableFilter<$PrismaModel>
    _min?: NestedStringNullableFilter<$PrismaModel>
    _max?: NestedStringNullableFilter<$PrismaModel>
  }

  export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
    equals?: number | IntFieldRefInput<$PrismaModel> | null
    in?: number[] | null
    notIn?: number[] | null
    lt?: number | IntFieldRefInput<$PrismaModel>
    lte?: number | IntFieldRefInput<$PrismaModel>
    gt?: number | IntFieldRefInput<$PrismaModel>
    gte?: number | IntFieldRefInput<$PrismaModel>
    not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
    _count?: NestedIntNullableFilter<$PrismaModel>
    _avg?: NestedFloatNullableFilter<$PrismaModel>
    _sum?: NestedIntNullableFilter<$PrismaModel>
    _min?: NestedIntNullableFilter<$PrismaModel>
    _max?: NestedIntNullableFilter<$PrismaModel>
  }

  export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
    equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    in?: Date[] | string[]
    notIn?: Date[] | string[]
    lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
    _count?: NestedIntFilter<$PrismaModel>
    _min?: NestedDateTimeFilter<$PrismaModel>
    _max?: NestedDateTimeFilter<$PrismaModel>
  }

  export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
    equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
    in?: Date[] | string[] | null
    notIn?: Date[] | string[] | null
    lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
    _count?: NestedIntNullableFilter<$PrismaModel>
    _min?: NestedDateTimeNullableFilter<$PrismaModel>
    _max?: NestedDateTimeNullableFilter<$PrismaModel>
  }

  export type DesignationNullableRelationFilter = {
    is?: DesignationWhereInput | null
    isNot?: DesignationWhereInput | null
  }

  export type DepartmentNullableRelationFilter = {
    is?: DepartmentWhereInput | null
    isNot?: DepartmentWhereInput | null
  }

  export type UserRelationFilter = {
    is?: UserWhereInput
    isNot?: UserWhereInput
  }

  export type UserDetailCompany_idUser_idCompoundUniqueInput = {
    company_id: number
    user_id: number
  }

  export type UserDetailCompany_idCodeCompoundUniqueInput = {
    company_id: number
    code: string
  }

  export type UserDetailCountOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    code?: SortOrder
    first_name?: SortOrder
    last_name?: SortOrder
    designation_id?: SortOrder
    department_id?: SortOrder
    profile_pic?: SortOrder
    dob?: SortOrder
    country_code?: SortOrder
    phone_number?: SortOrder
    gender?: SortOrder
    user_time_zone?: SortOrder
    address?: SortOrder
    culture?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type UserDetailAvgOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    designation_id?: SortOrder
    department_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type UserDetailMaxOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    code?: SortOrder
    first_name?: SortOrder
    last_name?: SortOrder
    designation_id?: SortOrder
    department_id?: SortOrder
    profile_pic?: SortOrder
    dob?: SortOrder
    country_code?: SortOrder
    phone_number?: SortOrder
    gender?: SortOrder
    user_time_zone?: SortOrder
    address?: SortOrder
    culture?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type UserDetailMinOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    code?: SortOrder
    first_name?: SortOrder
    last_name?: SortOrder
    designation_id?: SortOrder
    department_id?: SortOrder
    profile_pic?: SortOrder
    dob?: SortOrder
    country_code?: SortOrder
    phone_number?: SortOrder
    gender?: SortOrder
    user_time_zone?: SortOrder
    address?: SortOrder
    culture?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type UserDetailSumOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    designation_id?: SortOrder
    department_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type DesignationCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type DesignationCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type DesignationCompany_idCodeCompoundUniqueInput = {
    company_id: number
    code: string
  }

  export type DesignationCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type DesignationAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type DesignationMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type DesignationMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type DesignationSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type DepartmentCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type DepartmentCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type DepartmentCompany_idCodeCompoundUniqueInput = {
    company_id: number
    code: string
  }

  export type DepartmentCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    department_head_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type DepartmentAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    department_head_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type DepartmentMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    department_head_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type DepartmentMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    code?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    department_head_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type DepartmentSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    department_head_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type BigIntFilter<$PrismaModel = never> = {
    equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
    in?: bigint[] | number[]
    notIn?: bigint[] | number[]
    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 RequestLogCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    user_id?: SortOrder
    req_method?: SortOrder
    req_url?: SortOrder
    req_body?: SortOrder
    res_status?: SortOrder
    res_code?: SortOrder
    res_message?: SortOrder
    req_response?: SortOrder
    req_headers?: SortOrder
    req_ip?: SortOrder
    req_device?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type RequestLogAvgOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    res_code?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type RequestLogMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    user_id?: SortOrder
    req_method?: SortOrder
    req_url?: SortOrder
    req_body?: SortOrder
    res_status?: SortOrder
    res_code?: SortOrder
    res_message?: SortOrder
    req_response?: SortOrder
    req_headers?: SortOrder
    req_ip?: SortOrder
    req_device?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type RequestLogMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    user_id?: SortOrder
    req_method?: SortOrder
    req_url?: SortOrder
    req_body?: SortOrder
    res_status?: SortOrder
    res_code?: SortOrder
    res_message?: SortOrder
    req_response?: SortOrder
    req_headers?: SortOrder
    req_ip?: SortOrder
    req_device?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type RequestLogSumOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    res_code?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
    equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
    in?: bigint[] | number[]
    notIn?: bigint[] | number[]
    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 FinancialYearCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type FinancialYearCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type FinancialYearCompany_idCodeCompoundUniqueInput = {
    company_id: number
    code: string
  }

  export type FinancialYearCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    code?: SortOrder
    is_freezed?: SortOrder
    start_date?: SortOrder
    end_date?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type FinancialYearAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type FinancialYearMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    code?: SortOrder
    is_freezed?: SortOrder
    start_date?: SortOrder
    end_date?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type FinancialYearMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    code?: SortOrder
    is_freezed?: SortOrder
    start_date?: SortOrder
    end_date?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type FinancialYearSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type FinancialYearNullableRelationFilter = {
    is?: FinancialYearWhereInput | null
    isNot?: FinancialYearWhereInput | null
  }

  export type DocumentSequenceCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type DocumentSequenceCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type DocumentSequenceCompany_idFinancial_year_idModule_nameCompoundUniqueInput = {
    company_id: number
    financial_year_id: number
    module_name: string
  }

  export type DocumentSequenceCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    module_name?: SortOrder
    financial_year_id?: SortOrder
    current_sequence_no?: SortOrder
    start_sequence_no?: SortOrder
    end_sequence_no?: SortOrder
    sequence_length?: SortOrder
    status_id?: SortOrder
    code_format?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type DocumentSequenceAvgOrderByAggregateInput = {
    id?: SortOrder
    financial_year_id?: SortOrder
    current_sequence_no?: SortOrder
    start_sequence_no?: SortOrder
    end_sequence_no?: SortOrder
    sequence_length?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type DocumentSequenceMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    module_name?: SortOrder
    financial_year_id?: SortOrder
    current_sequence_no?: SortOrder
    start_sequence_no?: SortOrder
    end_sequence_no?: SortOrder
    sequence_length?: SortOrder
    status_id?: SortOrder
    code_format?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type DocumentSequenceMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    module_name?: SortOrder
    financial_year_id?: SortOrder
    current_sequence_no?: SortOrder
    start_sequence_no?: SortOrder
    end_sequence_no?: SortOrder
    sequence_length?: SortOrder
    status_id?: SortOrder
    code_format?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type DocumentSequenceSumOrderByAggregateInput = {
    id?: SortOrder
    financial_year_id?: SortOrder
    current_sequence_no?: SortOrder
    start_sequence_no?: SortOrder
    end_sequence_no?: SortOrder
    sequence_length?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type AuditLogCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type AuditLogCountOrderByAggregateInput = {
    id?: SortOrder
    operation_type?: SortOrder
    table_name?: SortOrder
    field_name?: SortOrder
    old_value?: SortOrder
    new_value?: SortOrder
    entity_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type AuditLogAvgOrderByAggregateInput = {
    id?: SortOrder
    entity_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type AuditLogMaxOrderByAggregateInput = {
    id?: SortOrder
    operation_type?: SortOrder
    table_name?: SortOrder
    field_name?: SortOrder
    old_value?: SortOrder
    new_value?: SortOrder
    entity_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type AuditLogMinOrderByAggregateInput = {
    id?: SortOrder
    operation_type?: SortOrder
    table_name?: SortOrder
    field_name?: SortOrder
    old_value?: SortOrder
    new_value?: SortOrder
    entity_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type AuditLogSumOrderByAggregateInput = {
    id?: SortOrder
    entity_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type DecimalFilter<$PrismaModel = never> = {
    equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    in?: Decimal[] | DecimalJsLike[] | number[] | string[]
    notIn?: Decimal[] | DecimalJsLike[] | number[] | string[]
    lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string
  }

  export type MasterEntityNullableRelationFilter = {
    is?: MasterEntityWhereInput | null
    isNot?: MasterEntityWhereInput | null
  }

  export type RolePermissionsListRelationFilter = {
    every?: RolePermissionsWhereInput
    some?: RolePermissionsWhereInput
    none?: RolePermissionsWhereInput
  }

  export type RolePermissionsOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type PermissionsCompany_idSlugCompoundUniqueInput = {
    company_id: number
    slug: string
  }

  export type PermissionsCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type PermissionsCountOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    entity_id?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type PermissionsAvgOrderByAggregateInput = {
    id?: SortOrder
    entity_id?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type PermissionsMaxOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    entity_id?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type PermissionsMinOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    entity_id?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type PermissionsSumOrderByAggregateInput = {
    id?: SortOrder
    entity_id?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type DecimalWithAggregatesFilter<$PrismaModel = never> = {
    equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    in?: Decimal[] | DecimalJsLike[] | number[] | string[]
    notIn?: Decimal[] | DecimalJsLike[] | number[] | string[]
    lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string
    _count?: NestedIntFilter<$PrismaModel>
    _avg?: NestedDecimalFilter<$PrismaModel>
    _sum?: NestedDecimalFilter<$PrismaModel>
    _min?: NestedDecimalFilter<$PrismaModel>
    _max?: NestedDecimalFilter<$PrismaModel>
  }

  export type RoleCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type RoleCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type RoleCompany_idNameCompoundUniqueInput = {
    company_id: number
    name: string
  }

  export type RoleCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type RoleAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type RoleMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type RoleMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type RoleSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type RoleRelationFilter = {
    is?: RoleWhereInput
    isNot?: RoleWhereInput
  }

  export type PermissionsRelationFilter = {
    is?: PermissionsWhereInput
    isNot?: PermissionsWhereInput
  }

  export type RolePermissionsCompany_idRole_idPermission_idCompoundUniqueInput = {
    company_id: number
    role_id: number
    permission_id: number
  }

  export type RolePermissionsCountOrderByAggregateInput = {
    role_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type RolePermissionsAvgOrderByAggregateInput = {
    role_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type RolePermissionsMaxOrderByAggregateInput = {
    role_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type RolePermissionsMinOrderByAggregateInput = {
    role_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type RolePermissionsSumOrderByAggregateInput = {
    role_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserRolesCompany_idUser_idRole_idCompoundUniqueInput = {
    company_id: number
    user_id: number
    role_id: number
  }

  export type UserRolesCountOrderByAggregateInput = {
    user_id?: SortOrder
    role_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserRolesAvgOrderByAggregateInput = {
    user_id?: SortOrder
    role_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserRolesMaxOrderByAggregateInput = {
    user_id?: SortOrder
    role_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserRolesMinOrderByAggregateInput = {
    user_id?: SortOrder
    role_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserRolesSumOrderByAggregateInput = {
    user_id?: SortOrder
    role_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserPermissionsCompany_idUser_idPermission_idCompoundUniqueInput = {
    company_id: number
    user_id: number
    permission_id: number
  }

  export type UserPermissionsCountOrderByAggregateInput = {
    user_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserPermissionsAvgOrderByAggregateInput = {
    user_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserPermissionsMaxOrderByAggregateInput = {
    user_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserPermissionsMinOrderByAggregateInput = {
    user_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type UserPermissionsSumOrderByAggregateInput = {
    user_id?: SortOrder
    permission_id?: SortOrder
    company_id?: SortOrder
  }

  export type OtpCountOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    otp?: SortOrder
    purpose?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type OtpAvgOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    company_id?: SortOrder
  }

  export type OtpMaxOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    otp?: SortOrder
    purpose?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type OtpMinOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    otp?: SortOrder
    purpose?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type OtpSumOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    company_id?: SortOrder
  }

  export type LanguageContentListRelationFilter = {
    every?: LanguageContentWhereInput
    some?: LanguageContentWhereInput
    none?: LanguageContentWhereInput
  }

  export type LanguageContentOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type LanguageCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type LanguageCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type LanguageCompany_idCodeCompoundUniqueInput = {
    company_id: number
    code: string
  }

  export type LanguageCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    name_in_english?: SortOrder
    flag?: SortOrder
    code?: SortOrder
    rtl?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type LanguageAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type LanguageMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    name_in_english?: SortOrder
    flag?: SortOrder
    code?: SortOrder
    rtl?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type LanguageMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    name_in_english?: SortOrder
    flag?: SortOrder
    code?: SortOrder
    rtl?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type LanguageSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type LanguageNullableRelationFilter = {
    is?: LanguageWhereInput | null
    isNot?: LanguageWhereInput | null
  }

  export type LanguageContentCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type LanguageContentCountOrderByAggregateInput = {
    id?: SortOrder
    language_id?: SortOrder
    key_content?: SortOrder
    values?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type LanguageContentAvgOrderByAggregateInput = {
    id?: SortOrder
    language_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type LanguageContentMaxOrderByAggregateInput = {
    id?: SortOrder
    language_id?: SortOrder
    key_content?: SortOrder
    values?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type LanguageContentMinOrderByAggregateInput = {
    id?: SortOrder
    language_id?: SortOrder
    key_content?: SortOrder
    values?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type LanguageContentSumOrderByAggregateInput = {
    id?: SortOrder
    language_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type MenusCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type MenusCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type MenusCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    menu_type?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type MenusAvgOrderByAggregateInput = {
    id?: SortOrder
    menu_type?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type MenusMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    menu_type?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type MenusMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    menu_type?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type MenusSumOrderByAggregateInput = {
    id?: SortOrder
    menu_type?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type MenusNullableRelationFilter = {
    is?: MenusWhereInput | null
    isNot?: MenusWhereInput | null
  }

  export type PermissionsNullableRelationFilter = {
    is?: PermissionsWhereInput | null
    isNot?: PermissionsWhereInput | null
  }

  export type MenuItemsNullableRelationFilter = {
    is?: MenuItemsWhereInput | null
    isNot?: MenuItemsWhereInput | null
  }

  export type MenuItemsCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type MenuItemsCompany_idMenu_idNameCompoundUniqueInput = {
    company_id: number
    menu_id: number
    name: string
  }

  export type MenuItemsCountOrderByAggregateInput = {
    id?: SortOrder
    menu_id?: SortOrder
    name?: SortOrder
    target?: SortOrder
    parent_id?: SortOrder
    permission_id?: SortOrder
    entity_id?: SortOrder
    link_type?: SortOrder
    order_no?: SortOrder
    menu_img?: SortOrder
    short_cut_keys?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type MenuItemsAvgOrderByAggregateInput = {
    id?: SortOrder
    menu_id?: SortOrder
    parent_id?: SortOrder
    permission_id?: SortOrder
    entity_id?: SortOrder
    link_type?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type MenuItemsMaxOrderByAggregateInput = {
    id?: SortOrder
    menu_id?: SortOrder
    name?: SortOrder
    target?: SortOrder
    parent_id?: SortOrder
    permission_id?: SortOrder
    entity_id?: SortOrder
    link_type?: SortOrder
    order_no?: SortOrder
    menu_img?: SortOrder
    short_cut_keys?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type MenuItemsMinOrderByAggregateInput = {
    id?: SortOrder
    menu_id?: SortOrder
    name?: SortOrder
    target?: SortOrder
    parent_id?: SortOrder
    permission_id?: SortOrder
    entity_id?: SortOrder
    link_type?: SortOrder
    order_no?: SortOrder
    menu_img?: SortOrder
    short_cut_keys?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type MenuItemsSumOrderByAggregateInput = {
    id?: SortOrder
    menu_id?: SortOrder
    parent_id?: SortOrder
    permission_id?: SortOrder
    entity_id?: SortOrder
    link_type?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type ActionTypeCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ActionTypeCountOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type ActionTypeAvgOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
  }

  export type ActionTypeMaxOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type ActionTypeMinOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type ActionTypeSumOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
  }

  export type EntityTypeCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type EntityTypeCountOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type EntityTypeAvgOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
  }

  export type EntityTypeMaxOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type EntityTypeMinOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type EntityTypeSumOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
  }

  export type WizardGroupCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type WizardGroupCompany_idSlugCompoundUniqueInput = {
    company_id: number
    slug: string
  }

  export type WizardGroupCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    company_id?: SortOrder
  }

  export type WizardGroupAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type WizardGroupMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    company_id?: SortOrder
  }

  export type WizardGroupMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    company_id?: SortOrder
  }

  export type WizardGroupSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type WizardTypeCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type WizardTypeCompany_idNameCompoundUniqueInput = {
    company_id: number
    name: string
  }

  export type WizardTypeCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type WizardTypeAvgOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
  }

  export type WizardTypeMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type WizardTypeMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
  }

  export type WizardTypeSumOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
  }

  export type DecimalNullableFilter<$PrismaModel = never> = {
    equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
    in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
    notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
    lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
  }

  export type PermissionsListRelationFilter = {
    every?: PermissionsWhereInput
    some?: PermissionsWhereInput
    none?: PermissionsWhereInput
  }

  export type MasterEntityLineItemListRelationFilter = {
    every?: MasterEntityLineItemWhereInput
    some?: MasterEntityLineItemWhereInput
    none?: MasterEntityLineItemWhereInput
  }

  export type PermissionsOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type MasterEntityLineItemOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type MasterEntityCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type MasterEntityCompany_idEntity_nameCompoundUniqueInput = {
    company_id: number
    entity_name: string
  }

  export type MasterEntityCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    entity_name?: SortOrder
    entity_type?: SortOrder
    primary_table?: SortOrder
    is_admin_module?: SortOrder
    associated_tables?: SortOrder
    query_information?: SortOrder
    form_information?: SortOrder
    add_query_information?: SortOrder
    edit_query_information?: SortOrder
    preset_query_information?: SortOrder
    static_page_content?: SortOrder
    export_template_id?: SortOrder
    dashboard_wizard_group_id?: SortOrder
    dashboard_wizard_type?: SortOrder
    dashboard_wizard_rows?: SortOrder
    dashboard_wizard_columns?: SortOrder
    dashboard_wizard_order_no?: SortOrder
    dashboard_wizard_options?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type MasterEntityAvgOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    dashboard_wizard_group_id?: SortOrder
    dashboard_wizard_rows?: SortOrder
    dashboard_wizard_columns?: SortOrder
    dashboard_wizard_order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type MasterEntityMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    entity_name?: SortOrder
    entity_type?: SortOrder
    primary_table?: SortOrder
    is_admin_module?: SortOrder
    associated_tables?: SortOrder
    query_information?: SortOrder
    form_information?: SortOrder
    add_query_information?: SortOrder
    edit_query_information?: SortOrder
    preset_query_information?: SortOrder
    static_page_content?: SortOrder
    export_template_id?: SortOrder
    dashboard_wizard_group_id?: SortOrder
    dashboard_wizard_type?: SortOrder
    dashboard_wizard_rows?: SortOrder
    dashboard_wizard_columns?: SortOrder
    dashboard_wizard_order_no?: SortOrder
    dashboard_wizard_options?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type MasterEntityMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    entity_name?: SortOrder
    entity_type?: SortOrder
    primary_table?: SortOrder
    is_admin_module?: SortOrder
    associated_tables?: SortOrder
    query_information?: SortOrder
    form_information?: SortOrder
    add_query_information?: SortOrder
    edit_query_information?: SortOrder
    preset_query_information?: SortOrder
    static_page_content?: SortOrder
    export_template_id?: SortOrder
    dashboard_wizard_group_id?: SortOrder
    dashboard_wizard_type?: SortOrder
    dashboard_wizard_rows?: SortOrder
    dashboard_wizard_columns?: SortOrder
    dashboard_wizard_order_no?: SortOrder
    dashboard_wizard_options?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type MasterEntitySumOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    dashboard_wizard_group_id?: SortOrder
    dashboard_wizard_rows?: SortOrder
    dashboard_wizard_columns?: SortOrder
    dashboard_wizard_order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type DecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
    equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
    in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
    notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
    lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
    _count?: NestedIntNullableFilter<$PrismaModel>
    _avg?: NestedDecimalNullableFilter<$PrismaModel>
    _sum?: NestedDecimalNullableFilter<$PrismaModel>
    _min?: NestedDecimalNullableFilter<$PrismaModel>
    _max?: NestedDecimalNullableFilter<$PrismaModel>
  }

  export type MasterEntityRelationFilter = {
    is?: MasterEntityWhereInput
    isNot?: MasterEntityWhereInput
  }

  export type FieldTypeNullableRelationFilter = {
    is?: FieldTypeWhereInput | null
    isNot?: FieldTypeWhereInput | null
  }

  export type MasterEntityLineItemCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type MasterEntityLineItemCompany_idMaster_grid_idField_nameDisplay_nameCompoundUniqueInput = {
    company_id: number
    master_grid_id: number
    field_name: string
    display_name: string
  }

  export type MasterEntityLineItemCountOrderByAggregateInput = {
    id?: SortOrder
    master_grid_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    order_no?: SortOrder
    is_grid_column?: SortOrder
    is_searchable?: SortOrder
    clause_type?: SortOrder
    is_sortable?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type MasterEntityLineItemAvgOrderByAggregateInput = {
    id?: SortOrder
    master_grid_id?: SortOrder
    order_no?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type MasterEntityLineItemMaxOrderByAggregateInput = {
    id?: SortOrder
    master_grid_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    order_no?: SortOrder
    is_grid_column?: SortOrder
    is_searchable?: SortOrder
    clause_type?: SortOrder
    is_sortable?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type MasterEntityLineItemMinOrderByAggregateInput = {
    id?: SortOrder
    master_grid_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    order_no?: SortOrder
    is_grid_column?: SortOrder
    is_searchable?: SortOrder
    clause_type?: SortOrder
    is_sortable?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type MasterEntityLineItemSumOrderByAggregateInput = {
    id?: SortOrder
    master_grid_id?: SortOrder
    order_no?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ImportTemplateLineItemListRelationFilter = {
    every?: ImportTemplateLineItemWhereInput
    some?: ImportTemplateLineItemWhereInput
    none?: ImportTemplateLineItemWhereInput
  }

  export type ExportTemplateLineItemListRelationFilter = {
    every?: ExportTemplateLineItemWhereInput
    some?: ExportTemplateLineItemWhereInput
    none?: ExportTemplateLineItemWhereInput
  }

  export type ImportTemplateLineItemOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type ExportTemplateLineItemOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type FieldTypeCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type FieldTypeCountOrderByAggregateInput = {
    id?: SortOrder
    field_type?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
  }

  export type FieldTypeAvgOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
  }

  export type FieldTypeMaxOrderByAggregateInput = {
    id?: SortOrder
    field_type?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
  }

  export type FieldTypeMinOrderByAggregateInput = {
    id?: SortOrder
    field_type?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
  }

  export type FieldTypeSumOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
  }

  export type menuTypeCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type menuTypeCountOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type menuTypeAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type menuTypeMaxOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type menuTypeMinOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type menuTypeSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessTagsMappingListRelationFilter = {
    every?: EmailTemplateProcessTagsMappingWhereInput
    some?: EmailTemplateProcessTagsMappingWhereInput
    none?: EmailTemplateProcessTagsMappingWhereInput
  }

  export type EmailTemplateProcessTagsMappingOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type EmailTemplateProcessCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type EmailTemplateProcessCompany_idSlugCompoundUniqueInput = {
    company_id: number
    slug: string
  }

  export type EmailTemplateProcessIdCompany_idCompoundUniqueInput = {
    id: number
    company_id: number
  }

  export type EmailTemplateProcessCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    query_information?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    query_information?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    query_information?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateTagCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type EmailTemplateTagCompany_idSlugCompoundUniqueInput = {
    company_id: number
    slug: string
  }

  export type EmailTemplateTagCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateTagAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateTagMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateTagMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateTagSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateRecipientTagCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type EmailTemplateRecipientTagCompany_idSlugCompoundUniqueInput = {
    company_id: number
    slug: string
  }

  export type EmailTemplateRecipientTagCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    description?: SortOrder
    query_information?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateRecipientTagAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateRecipientTagMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    description?: SortOrder
    query_information?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateRecipientTagMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    description?: SortOrder
    query_information?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateRecipientTagSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessRelationFilter = {
    is?: EmailTemplateProcessWhereInput
    isNot?: EmailTemplateProcessWhereInput
  }

  export type EmailTemplateTagRelationFilter = {
    is?: EmailTemplateTagWhereInput
    isNot?: EmailTemplateTagWhereInput
  }

  export type EmailTemplateProcessTagsMappingEmail_template_process_idEmail_template_tag_idCompany_idCompoundUniqueInput = {
    email_template_process_id: number
    email_template_tag_id: number
    company_id: number
  }

  export type EmailTemplateProcessTagsMappingCountOrderByAggregateInput = {
    email_template_process_id?: SortOrder
    email_template_tag_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessTagsMappingAvgOrderByAggregateInput = {
    email_template_process_id?: SortOrder
    email_template_tag_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessTagsMappingMaxOrderByAggregateInput = {
    email_template_process_id?: SortOrder
    email_template_tag_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessTagsMappingMinOrderByAggregateInput = {
    email_template_process_id?: SortOrder
    email_template_tag_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateProcessTagsMappingSumOrderByAggregateInput = {
    email_template_process_id?: SortOrder
    email_template_tag_id?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type EmailTemplateCompany_idSlugCompoundUniqueInput = {
    company_id: number
    slug: string
  }

  export type EmailTemplateCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    subject?: SortOrder
    template_body?: SortOrder
    email_template_process_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
    updated_at?: SortOrder
    updated_by?: SortOrder
    deleted_at?: SortOrder
    deleted_by?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateAvgOrderByAggregateInput = {
    id?: SortOrder
    email_template_process_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    subject?: SortOrder
    template_body?: SortOrder
    email_template_process_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
    updated_at?: SortOrder
    updated_by?: SortOrder
    deleted_at?: SortOrder
    deleted_by?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    slug?: SortOrder
    name?: SortOrder
    subject?: SortOrder
    template_body?: SortOrder
    email_template_process_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
    updated_at?: SortOrder
    updated_by?: SortOrder
    deleted_at?: SortOrder
    deleted_by?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateSumOrderByAggregateInput = {
    id?: SortOrder
    email_template_process_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    company_id?: SortOrder
  }

  export type EmailTemplateRelationFilter = {
    is?: EmailTemplateWhereInput
    isNot?: EmailTemplateWhereInput
  }

  export type EmailTemplateAssignmentCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_id?: SortOrder
    template_id?: SortOrder
    recipient_type?: SortOrder
    email_to?: SortOrder
    mail_cc?: SortOrder
    mail_bcc?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
  }

  export type EmailTemplateAssignmentAvgOrderByAggregateInput = {
    id?: SortOrder
    email_template_process_id?: SortOrder
    template_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
  }

  export type EmailTemplateAssignmentMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_id?: SortOrder
    template_id?: SortOrder
    recipient_type?: SortOrder
    email_to?: SortOrder
    mail_cc?: SortOrder
    mail_bcc?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
  }

  export type EmailTemplateAssignmentMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_id?: SortOrder
    template_id?: SortOrder
    recipient_type?: SortOrder
    email_to?: SortOrder
    mail_cc?: SortOrder
    mail_bcc?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
  }

  export type EmailTemplateAssignmentSumOrderByAggregateInput = {
    id?: SortOrder
    email_template_process_id?: SortOrder
    template_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
  }

  export type EmailProcessJobCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_slug?: SortOrder
    unique_id?: SortOrder
    user_id?: SortOrder
    prefill_data?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
  }

  export type EmailProcessJobAvgOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
  }

  export type EmailProcessJobMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_slug?: SortOrder
    unique_id?: SortOrder
    user_id?: SortOrder
    prefill_data?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
  }

  export type EmailProcessJobMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    email_template_process_slug?: SortOrder
    unique_id?: SortOrder
    user_id?: SortOrder
    prefill_data?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
  }

  export type EmailProcessJobSumOrderByAggregateInput = {
    id?: SortOrder
    user_id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
  }

  export type NotificationJobCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    process_slug?: SortOrder
    notification_to?: SortOrder
    notification_subject?: SortOrder
    notification_content?: SortOrder
    notification_cc?: SortOrder
    notification_bcc?: SortOrder
    notification_type_id?: SortOrder
    notification_status_id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
    sent_at?: SortOrder
    read_at?: SortOrder
  }

  export type NotificationJobAvgOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
  }

  export type NotificationJobMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    process_slug?: SortOrder
    notification_to?: SortOrder
    notification_subject?: SortOrder
    notification_content?: SortOrder
    notification_cc?: SortOrder
    notification_bcc?: SortOrder
    notification_type_id?: SortOrder
    notification_status_id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
    sent_at?: SortOrder
    read_at?: SortOrder
  }

  export type NotificationJobMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    process_slug?: SortOrder
    notification_to?: SortOrder
    notification_subject?: SortOrder
    notification_content?: SortOrder
    notification_cc?: SortOrder
    notification_bcc?: SortOrder
    notification_type_id?: SortOrder
    notification_status_id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_at?: SortOrder
    created_by?: SortOrder
    sent_at?: SortOrder
    read_at?: SortOrder
  }

  export type NotificationJobSumOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
  }

  export type ImportTemplateQueriesListRelationFilter = {
    every?: ImportTemplateQueriesWhereInput
    some?: ImportTemplateQueriesWhereInput
    none?: ImportTemplateQueriesWhereInput
  }

  export type ImportTemplateQueriesOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type ImportTemplateCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ImportTemplateCompany_idSlugCompoundUniqueInput = {
    company_id: number
    slug: string
  }

  export type ImportTemplateCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    ignore_error_rows?: SortOrder
    is_admin_module?: SortOrder
    job_type?: SortOrder
    batch_process_count?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type ImportTemplateAvgOrderByAggregateInput = {
    id?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    batch_process_count?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type ImportTemplateMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    ignore_error_rows?: SortOrder
    is_admin_module?: SortOrder
    job_type?: SortOrder
    batch_process_count?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type ImportTemplateMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    ignore_error_rows?: SortOrder
    is_admin_module?: SortOrder
    job_type?: SortOrder
    batch_process_count?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type ImportTemplateSumOrderByAggregateInput = {
    id?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    batch_process_count?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type ImportTemplateRelationFilter = {
    is?: ImportTemplateWhereInput
    isNot?: ImportTemplateWhereInput
  }

  export type ImportTemplateLineItemCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ImportTemplateLineItemCompany_idImport_template_idField_tableField_nameCompoundUniqueInput = {
    company_id: number
    import_template_id: number
    field_table: string
    field_name: string
  }

  export type ImportTemplateLineItemCompany_idImport_template_idDisplay_nameCompoundUniqueInput = {
    company_id: number
    import_template_id: number
    display_name: string
  }

  export type ImportTemplateLineItemCountOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    width?: SortOrder
    default_value?: SortOrder
    check_reg_exp?: SortOrder
    is_nullable?: SortOrder
    is_unique?: SortOrder
    is_foreign?: SortOrder
    unique_query?: SortOrder
    foreign_query?: SortOrder
    is_enum?: SortOrder
    is_multiple?: SortOrder
    enum_values?: SortOrder
    foreign_table?: SortOrder
    foreign_column?: SortOrder
    foreign_can_create?: SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ImportTemplateLineItemAvgOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    order_no?: SortOrder
    width?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ImportTemplateLineItemMaxOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    width?: SortOrder
    default_value?: SortOrder
    check_reg_exp?: SortOrder
    is_nullable?: SortOrder
    is_unique?: SortOrder
    is_foreign?: SortOrder
    unique_query?: SortOrder
    foreign_query?: SortOrder
    is_enum?: SortOrder
    is_multiple?: SortOrder
    enum_values?: SortOrder
    foreign_table?: SortOrder
    foreign_column?: SortOrder
    foreign_can_create?: SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ImportTemplateLineItemMinOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    width?: SortOrder
    default_value?: SortOrder
    check_reg_exp?: SortOrder
    is_nullable?: SortOrder
    is_unique?: SortOrder
    is_foreign?: SortOrder
    unique_query?: SortOrder
    foreign_query?: SortOrder
    is_enum?: SortOrder
    is_multiple?: SortOrder
    enum_values?: SortOrder
    foreign_table?: SortOrder
    foreign_column?: SortOrder
    foreign_can_create?: SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ImportTemplateLineItemSumOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    order_no?: SortOrder
    width?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ImportTemplateQueriesCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ImportTemplateQueriesCountOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    query_string?: SortOrder
    query_name?: SortOrder
    allow_multiple?: SortOrder
    is_individual?: SortOrder
    before_lineitems?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ImportTemplateQueriesAvgOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ImportTemplateQueriesMaxOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    query_string?: SortOrder
    query_name?: SortOrder
    allow_multiple?: SortOrder
    is_individual?: SortOrder
    before_lineitems?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ImportTemplateQueriesMinOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    query_string?: SortOrder
    query_name?: SortOrder
    allow_multiple?: SortOrder
    is_individual?: SortOrder
    before_lineitems?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ImportTemplateQueriesSumOrderByAggregateInput = {
    id?: SortOrder
    import_template_id?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ImportJobLineItemListRelationFilter = {
    every?: ImportJobLineItemWhereInput
    some?: ImportJobLineItemWhereInput
    none?: ImportJobLineItemWhereInput
  }

  export type ImportJobLineItemOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type ImportJobCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ImportJobCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrder
    sequence_number?: SortOrder
    header_details?: SortOrder
    table_config?: SortOrder
    total_rows?: SortOrder
    completed_rows?: SortOrder
    error_rows?: SortOrder
    batch_process_count?: SortOrder
    job_status?: SortOrder
    last_processed_row_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type ImportJobAvgOrderByAggregateInput = {
    id?: SortOrder
    total_rows?: SortOrder
    completed_rows?: SortOrder
    error_rows?: SortOrder
    batch_process_count?: SortOrder
    last_processed_row_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type ImportJobMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrder
    sequence_number?: SortOrder
    header_details?: SortOrder
    table_config?: SortOrder
    total_rows?: SortOrder
    completed_rows?: SortOrder
    error_rows?: SortOrder
    batch_process_count?: SortOrder
    job_status?: SortOrder
    last_processed_row_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type ImportJobMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    description?: SortOrder
    sequence_number?: SortOrder
    header_details?: SortOrder
    table_config?: SortOrder
    total_rows?: SortOrder
    completed_rows?: SortOrder
    error_rows?: SortOrder
    batch_process_count?: SortOrder
    job_status?: SortOrder
    last_processed_row_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type ImportJobSumOrderByAggregateInput = {
    id?: SortOrder
    total_rows?: SortOrder
    completed_rows?: SortOrder
    error_rows?: SortOrder
    batch_process_count?: SortOrder
    last_processed_row_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type ImportJobRelationFilter = {
    is?: ImportJobWhereInput
    isNot?: ImportJobWhereInput
  }

  export type ImportJobLineItemCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ImportJobLineItemCountOrderByAggregateInput = {
    id?: SortOrder
    import_job_id?: SortOrder
    row_object?: SortOrder
    job_status?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ImportJobLineItemAvgOrderByAggregateInput = {
    id?: SortOrder
    import_job_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ImportJobLineItemMaxOrderByAggregateInput = {
    id?: SortOrder
    import_job_id?: SortOrder
    row_object?: SortOrder
    job_status?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ImportJobLineItemMinOrderByAggregateInput = {
    id?: SortOrder
    import_job_id?: SortOrder
    row_object?: SortOrder
    job_status?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ImportJobLineItemSumOrderByAggregateInput = {
    id?: SortOrder
    import_job_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ExportTemplateQueriesListRelationFilter = {
    every?: ExportTemplateQueriesWhereInput
    some?: ExportTemplateQueriesWhereInput
    none?: ExportTemplateQueriesWhereInput
  }

  export type ExportTemplateQueriesOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type ExportTemplateCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ExportTemplateCompany_idSlugCompoundUniqueInput = {
    company_id: number
    slug: string
  }

  export type ExportTemplateCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    data_filepath?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type ExportTemplateAvgOrderByAggregateInput = {
    id?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type ExportTemplateMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    data_filepath?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type ExportTemplateMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    data_filepath?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type ExportTemplateSumOrderByAggregateInput = {
    id?: SortOrder
    max_row_count?: SortOrder
    header_row?: SortOrder
    data_start_row?: SortOrder
    data_end_row?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type ExportTemplateRelationFilter = {
    is?: ExportTemplateWhereInput
    isNot?: ExportTemplateWhereInput
  }

  export type ExportTemplateLineItemCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ExportTemplateLineItemCompany_idExport_template_idField_tableField_nameCompoundUniqueInput = {
    company_id: number
    export_template_id: number
    field_table: string
    field_name: string
  }

  export type ExportTemplateLineItemCompany_idExport_template_idDisplay_nameCompoundUniqueInput = {
    company_id: number
    export_template_id: number
    display_name: string
  }

  export type ExportTemplateLineItemCountOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    default_value?: SortOrder
    column_name?: SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ExportTemplateLineItemAvgOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    order_no?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ExportTemplateLineItemMaxOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    default_value?: SortOrder
    column_name?: SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ExportTemplateLineItemMinOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    field_name?: SortOrder
    display_name?: SortOrder
    field_table?: SortOrder
    order_no?: SortOrder
    default_value?: SortOrder
    column_name?: SortOrder
    is_individual?: SortOrder
    individual_column?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ExportTemplateLineItemSumOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    order_no?: SortOrder
    field_type_id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ExportTemplateQueriesCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ExportTemplateQueriesCountOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    query_string?: SortOrder
    query_name?: SortOrder
    query_procedure?: SortOrder
    is_individual?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ExportTemplateQueriesAvgOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type ExportTemplateQueriesMaxOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    query_string?: SortOrder
    query_name?: SortOrder
    query_procedure?: SortOrder
    is_individual?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ExportTemplateQueriesMinOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    query_string?: SortOrder
    query_name?: SortOrder
    query_procedure?: SortOrder
    is_individual?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type ExportTemplateQueriesSumOrderByAggregateInput = {
    id?: SortOrder
    export_template_id?: SortOrder
    order_no?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type StatusNullableRelationFilter = {
    is?: StatusWhereInput | null
    isNot?: StatusWhereInput | null
  }

  export type StatusListRelationFilter = {
    every?: StatusWhereInput
    some?: StatusWhereInput
    none?: StatusWhereInput
  }

  export type MasterEntityListRelationFilter = {
    every?: MasterEntityWhereInput
    some?: MasterEntityWhereInput
    none?: MasterEntityWhereInput
  }

  export type FieldTypeListRelationFilter = {
    every?: FieldTypeWhereInput
    some?: FieldTypeWhereInput
    none?: FieldTypeWhereInput
  }

  export type MenuTypeListRelationFilter = {
    every?: menuTypeWhereInput
    some?: menuTypeWhereInput
    none?: menuTypeWhereInput
  }

  export type EmailTemplateProcessListRelationFilter = {
    every?: EmailTemplateProcessWhereInput
    some?: EmailTemplateProcessWhereInput
    none?: EmailTemplateProcessWhereInput
  }

  export type EmailTemplateTagListRelationFilter = {
    every?: EmailTemplateTagWhereInput
    some?: EmailTemplateTagWhereInput
    none?: EmailTemplateTagWhereInput
  }

  export type EmailTemplateRecipientTagListRelationFilter = {
    every?: EmailTemplateRecipientTagWhereInput
    some?: EmailTemplateRecipientTagWhereInput
    none?: EmailTemplateRecipientTagWhereInput
  }

  export type FileUploadLogListRelationFilter = {
    every?: FileUploadLogWhereInput
    some?: FileUploadLogWhereInput
    none?: FileUploadLogWhereInput
  }

  export type StatusOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type MasterEntityOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type FieldTypeOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type menuTypeOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type EmailTemplateProcessOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type EmailTemplateTagOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type EmailTemplateRecipientTagOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type FileUploadLogOrderByRelationAggregateInput = {
    _count?: SortOrder
  }

  export type StatusCountOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
  }

  export type StatusAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
  }

  export type StatusMaxOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
  }

  export type StatusMinOrderByAggregateInput = {
    id?: SortOrder
    name?: SortOrder
    slug?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
  }

  export type StatusSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
  }

  export type CategoryTypesCompany_idCategory_type_idCompoundUniqueInput = {
    company_id: number
    category_type_id: string
  }

  export type CategoryTypesCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type CategoryTypesCompany_idNameCompoundUniqueInput = {
    company_id: number
    name: string
  }

  export type CategoryTypesCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type CategoryTypesAvgOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type CategoryTypesMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type CategoryTypesMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type CategoryTypesSumOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type CategoriesNullableRelationFilter = {
    is?: CategoriesWhereInput | null
    isNot?: CategoriesWhereInput | null
  }

  export type CategoryTypesRelationFilter = {
    is?: CategoryTypesWhereInput
    isNot?: CategoryTypesWhereInput
  }

  export type CategoriesCompany_idCategory_idCompoundUniqueInput = {
    company_id: number
    category_id: string
  }

  export type CategoriesCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type CategoriesCompany_idNameCompoundUniqueInput = {
    company_id: number
    name: string
  }

  export type CategoriesCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    category_id?: SortOrder
    parent_id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type CategoriesAvgOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type CategoriesMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    category_id?: SortOrder
    parent_id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type CategoriesMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    category_type_id?: SortOrder
    category_id?: SortOrder
    parent_id?: SortOrder
    name?: SortOrder
    description?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type CategoriesSumOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type CategoriesRelationFilter = {
    is?: CategoriesWhereInput
    isNot?: CategoriesWhereInput
  }

  export type ConfigurationsCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type ConfigurationsCompany_idConfig_keyCompoundUniqueInput = {
    company_id: number
    config_key: string
  }

  export type ConfigurationsCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    order_no?: SortOrder
    config_key?: SortOrder
    category_id?: SortOrder
    config_value?: SortOrder
    config_file_value?: SortOrder
    config_value_type?: SortOrder
    config_field_type?: SortOrder
    display_config?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type ConfigurationsAvgOrderByAggregateInput = {
    id?: SortOrder
    order_no?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type ConfigurationsMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    order_no?: SortOrder
    config_key?: SortOrder
    category_id?: SortOrder
    config_value?: SortOrder
    config_file_value?: SortOrder
    config_value_type?: SortOrder
    config_field_type?: SortOrder
    display_config?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type ConfigurationsMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    order_no?: SortOrder
    config_key?: SortOrder
    category_id?: SortOrder
    config_value?: SortOrder
    config_file_value?: SortOrder
    config_value_type?: SortOrder
    config_field_type?: SortOrder
    display_config?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
    created_at?: SortOrder
    updated_at?: SortOrder
    deleted_at?: SortOrder
  }

  export type ConfigurationsSumOrderByAggregateInput = {
    id?: SortOrder
    order_no?: SortOrder
    company_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type FileUploadLogCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type FileUploadLogCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    doc_name?: SortOrder
    org_name?: SortOrder
    extension?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type FileUploadLogAvgOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type FileUploadLogMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    doc_name?: SortOrder
    org_name?: SortOrder
    extension?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type FileUploadLogMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    doc_name?: SortOrder
    org_name?: SortOrder
    extension?: SortOrder
    description?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
    created_at?: SortOrder
  }

  export type FileUploadLogSumOrderByAggregateInput = {
    id?: SortOrder
    status_id?: SortOrder
    company_id?: SortOrder
  }

  export type DataTransferQueriesCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type DataTransferQueriesCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type DataTransferQueriesCompany_idTransfer_typeJob_nameCompoundUniqueInput = {
    company_id: number
    transfer_type: string
    job_name: string
  }

  export type DataTransferQueriesCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    select_query?: SortOrder
    insert_query?: SortOrder
    transfer_type?: SortOrder
    job_name?: SortOrder
    destination_table?: SortOrder
    clear_destination_table?: SortOrder
    execution_order?: SortOrder
    command_type?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    company_id?: SortOrder
  }

  export type DataTransferQueriesAvgOrderByAggregateInput = {
    id?: SortOrder
    execution_order?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    company_id?: SortOrder
  }

  export type DataTransferQueriesMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    select_query?: SortOrder
    insert_query?: SortOrder
    transfer_type?: SortOrder
    job_name?: SortOrder
    destination_table?: SortOrder
    clear_destination_table?: SortOrder
    execution_order?: SortOrder
    command_type?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    company_id?: SortOrder
  }

  export type DataTransferQueriesMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    select_query?: SortOrder
    insert_query?: SortOrder
    transfer_type?: SortOrder
    job_name?: SortOrder
    destination_table?: SortOrder
    clear_destination_table?: SortOrder
    execution_order?: SortOrder
    command_type?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    company_id?: SortOrder
  }

  export type DataTransferQueriesSumOrderByAggregateInput = {
    id?: SortOrder
    execution_order?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    company_id?: SortOrder
  }

  export type DeviceRegistrationCompany_idIdCompoundUniqueInput = {
    company_id: number
    id: number
  }

  export type DeviceRegistrationCompany_idUuidCompoundUniqueInput = {
    company_id: number
    uuid: string
  }

  export type DeviceRegistrationCompany_idDevice_unique_idCompoundUniqueInput = {
    company_id: number
    device_unique_id: string
  }

  export type DeviceRegistrationCountOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    company_id?: SortOrder
    device_name?: SortOrder
    device_unique_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type DeviceRegistrationAvgOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type DeviceRegistrationMaxOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    company_id?: SortOrder
    device_name?: SortOrder
    device_unique_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type DeviceRegistrationMinOrderByAggregateInput = {
    id?: SortOrder
    uuid?: SortOrder
    company_id?: SortOrder
    device_name?: SortOrder
    device_unique_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    created_at?: SortOrder
    updated_by?: SortOrder
    updated_at?: SortOrder
    deleted_by?: SortOrder
    deleted_at?: SortOrder
  }

  export type DeviceRegistrationSumOrderByAggregateInput = {
    id?: SortOrder
    company_id?: SortOrder
    user_id?: SortOrder
    status_id?: SortOrder
    created_by?: SortOrder
    updated_by?: SortOrder
    deleted_by?: SortOrder
  }

  export type StatusCreateNestedOneWithoutUsersInput = {
    create?: XOR<StatusCreateWithoutUsersInput, StatusUncheckedCreateWithoutUsersInput>
    connectOrCreate?: StatusCreateOrConnectWithoutUsersInput
    connect?: StatusWhereUniqueInput
  }

  export type UserDetailCreateNestedOneWithoutUserInput = {
    create?: XOR<UserDetailCreateWithoutUserInput, UserDetailUncheckedCreateWithoutUserInput>
    connectOrCreate?: UserDetailCreateOrConnectWithoutUserInput
    connect?: UserDetailWhereUniqueInput
  }

  export type RequestLogCreateNestedManyWithoutUserInput = {
    create?: XOR<RequestLogCreateWithoutUserInput, RequestLogUncheckedCreateWithoutUserInput> | RequestLogCreateWithoutUserInput[] | RequestLogUncheckedCreateWithoutUserInput[]
    connectOrCreate?: RequestLogCreateOrConnectWithoutUserInput | RequestLogCreateOrConnectWithoutUserInput[]
    createMany?: RequestLogCreateManyUserInputEnvelope
    connect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
  }

  export type UserRolesCreateNestedManyWithoutUserInput = {
    create?: XOR<UserRolesCreateWithoutUserInput, UserRolesUncheckedCreateWithoutUserInput> | UserRolesCreateWithoutUserInput[] | UserRolesUncheckedCreateWithoutUserInput[]
    connectOrCreate?: UserRolesCreateOrConnectWithoutUserInput | UserRolesCreateOrConnectWithoutUserInput[]
    createMany?: UserRolesCreateManyUserInputEnvelope
    connect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
  }

  export type UserPermissionsCreateNestedManyWithoutUserInput = {
    create?: XOR<UserPermissionsCreateWithoutUserInput, UserPermissionsUncheckedCreateWithoutUserInput> | UserPermissionsCreateWithoutUserInput[] | UserPermissionsUncheckedCreateWithoutUserInput[]
    connectOrCreate?: UserPermissionsCreateOrConnectWithoutUserInput | UserPermissionsCreateOrConnectWithoutUserInput[]
    createMany?: UserPermissionsCreateManyUserInputEnvelope
    connect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
  }

  export type OtpCreateNestedManyWithoutUserInput = {
    create?: XOR<OtpCreateWithoutUserInput, OtpUncheckedCreateWithoutUserInput> | OtpCreateWithoutUserInput[] | OtpUncheckedCreateWithoutUserInput[]
    connectOrCreate?: OtpCreateOrConnectWithoutUserInput | OtpCreateOrConnectWithoutUserInput[]
    createMany?: OtpCreateManyUserInputEnvelope
    connect?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
  }

  export type UserCreateNestedOneWithoutCreated_usersInput = {
    create?: XOR<UserCreateWithoutCreated_usersInput, UserUncheckedCreateWithoutCreated_usersInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_usersInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_usersInput = {
    create?: XOR<UserCreateWithoutUpdated_usersInput, UserUncheckedCreateWithoutUpdated_usersInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_usersInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_usersInput = {
    create?: XOR<UserCreateWithoutDeleted_usersInput, UserUncheckedCreateWithoutDeleted_usersInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_usersInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedManyWithoutCreatedInput = {
    create?: XOR<UserCreateWithoutCreatedInput, UserUncheckedCreateWithoutCreatedInput> | UserCreateWithoutCreatedInput[] | UserUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutCreatedInput | UserCreateOrConnectWithoutCreatedInput[]
    createMany?: UserCreateManyCreatedInputEnvelope
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
  }

  export type UserCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<UserCreateWithoutUpdatedInput, UserUncheckedCreateWithoutUpdatedInput> | UserCreateWithoutUpdatedInput[] | UserUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutUpdatedInput | UserCreateOrConnectWithoutUpdatedInput[]
    createMany?: UserCreateManyUpdatedInputEnvelope
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
  }

  export type UserCreateNestedManyWithoutDeletedInput = {
    create?: XOR<UserCreateWithoutDeletedInput, UserUncheckedCreateWithoutDeletedInput> | UserCreateWithoutDeletedInput[] | UserUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutDeletedInput | UserCreateOrConnectWithoutDeletedInput[]
    createMany?: UserCreateManyDeletedInputEnvelope
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
  }

  export type UserDetailCreateNestedManyWithoutCreatedInput = {
    create?: XOR<UserDetailCreateWithoutCreatedInput, UserDetailUncheckedCreateWithoutCreatedInput> | UserDetailCreateWithoutCreatedInput[] | UserDetailUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutCreatedInput | UserDetailCreateOrConnectWithoutCreatedInput[]
    createMany?: UserDetailCreateManyCreatedInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type UserDetailCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<UserDetailCreateWithoutUpdatedInput, UserDetailUncheckedCreateWithoutUpdatedInput> | UserDetailCreateWithoutUpdatedInput[] | UserDetailUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutUpdatedInput | UserDetailCreateOrConnectWithoutUpdatedInput[]
    createMany?: UserDetailCreateManyUpdatedInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type UserDetailCreateNestedManyWithoutDeletedInput = {
    create?: XOR<UserDetailCreateWithoutDeletedInput, UserDetailUncheckedCreateWithoutDeletedInput> | UserDetailCreateWithoutDeletedInput[] | UserDetailUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDeletedInput | UserDetailCreateOrConnectWithoutDeletedInput[]
    createMany?: UserDetailCreateManyDeletedInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type RoleCreateNestedManyWithoutCreatedInput = {
    create?: XOR<RoleCreateWithoutCreatedInput, RoleUncheckedCreateWithoutCreatedInput> | RoleCreateWithoutCreatedInput[] | RoleUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutCreatedInput | RoleCreateOrConnectWithoutCreatedInput[]
    createMany?: RoleCreateManyCreatedInputEnvelope
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
  }

  export type RoleCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<RoleCreateWithoutUpdatedInput, RoleUncheckedCreateWithoutUpdatedInput> | RoleCreateWithoutUpdatedInput[] | RoleUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutUpdatedInput | RoleCreateOrConnectWithoutUpdatedInput[]
    createMany?: RoleCreateManyUpdatedInputEnvelope
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
  }

  export type RoleCreateNestedManyWithoutDeletedInput = {
    create?: XOR<RoleCreateWithoutDeletedInput, RoleUncheckedCreateWithoutDeletedInput> | RoleCreateWithoutDeletedInput[] | RoleUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutDeletedInput | RoleCreateOrConnectWithoutDeletedInput[]
    createMany?: RoleCreateManyDeletedInputEnvelope
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
  }

  export type LanguageCreateNestedManyWithoutCreatedInput = {
    create?: XOR<LanguageCreateWithoutCreatedInput, LanguageUncheckedCreateWithoutCreatedInput> | LanguageCreateWithoutCreatedInput[] | LanguageUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutCreatedInput | LanguageCreateOrConnectWithoutCreatedInput[]
    createMany?: LanguageCreateManyCreatedInputEnvelope
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
  }

  export type LanguageCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<LanguageCreateWithoutUpdatedInput, LanguageUncheckedCreateWithoutUpdatedInput> | LanguageCreateWithoutUpdatedInput[] | LanguageUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutUpdatedInput | LanguageCreateOrConnectWithoutUpdatedInput[]
    createMany?: LanguageCreateManyUpdatedInputEnvelope
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
  }

  export type LanguageCreateNestedManyWithoutDeletedInput = {
    create?: XOR<LanguageCreateWithoutDeletedInput, LanguageUncheckedCreateWithoutDeletedInput> | LanguageCreateWithoutDeletedInput[] | LanguageUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutDeletedInput | LanguageCreateOrConnectWithoutDeletedInput[]
    createMany?: LanguageCreateManyDeletedInputEnvelope
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
  }

  export type MenusCreateNestedManyWithoutCreatedInput = {
    create?: XOR<MenusCreateWithoutCreatedInput, MenusUncheckedCreateWithoutCreatedInput> | MenusCreateWithoutCreatedInput[] | MenusUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutCreatedInput | MenusCreateOrConnectWithoutCreatedInput[]
    createMany?: MenusCreateManyCreatedInputEnvelope
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
  }

  export type MenusCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<MenusCreateWithoutUpdatedInput, MenusUncheckedCreateWithoutUpdatedInput> | MenusCreateWithoutUpdatedInput[] | MenusUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutUpdatedInput | MenusCreateOrConnectWithoutUpdatedInput[]
    createMany?: MenusCreateManyUpdatedInputEnvelope
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
  }

  export type MenusCreateNestedManyWithoutDeletedInput = {
    create?: XOR<MenusCreateWithoutDeletedInput, MenusUncheckedCreateWithoutDeletedInput> | MenusCreateWithoutDeletedInput[] | MenusUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutDeletedInput | MenusCreateOrConnectWithoutDeletedInput[]
    createMany?: MenusCreateManyDeletedInputEnvelope
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
  }

  export type MenuItemsCreateNestedManyWithoutCreatedInput = {
    create?: XOR<MenuItemsCreateWithoutCreatedInput, MenuItemsUncheckedCreateWithoutCreatedInput> | MenuItemsCreateWithoutCreatedInput[] | MenuItemsUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutCreatedInput | MenuItemsCreateOrConnectWithoutCreatedInput[]
    createMany?: MenuItemsCreateManyCreatedInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type MenuItemsCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<MenuItemsCreateWithoutUpdatedInput, MenuItemsUncheckedCreateWithoutUpdatedInput> | MenuItemsCreateWithoutUpdatedInput[] | MenuItemsUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutUpdatedInput | MenuItemsCreateOrConnectWithoutUpdatedInput[]
    createMany?: MenuItemsCreateManyUpdatedInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type MenuItemsCreateNestedManyWithoutDeletedInput = {
    create?: XOR<MenuItemsCreateWithoutDeletedInput, MenuItemsUncheckedCreateWithoutDeletedInput> | MenuItemsCreateWithoutDeletedInput[] | MenuItemsUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutDeletedInput | MenuItemsCreateOrConnectWithoutDeletedInput[]
    createMany?: MenuItemsCreateManyDeletedInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type EmailTemplateCreateNestedManyWithoutCreatedInput = {
    create?: XOR<EmailTemplateCreateWithoutCreatedInput, EmailTemplateUncheckedCreateWithoutCreatedInput> | EmailTemplateCreateWithoutCreatedInput[] | EmailTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutCreatedInput | EmailTemplateCreateOrConnectWithoutCreatedInput[]
    createMany?: EmailTemplateCreateManyCreatedInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailTemplateCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<EmailTemplateCreateWithoutUpdatedInput, EmailTemplateUncheckedCreateWithoutUpdatedInput> | EmailTemplateCreateWithoutUpdatedInput[] | EmailTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutUpdatedInput | EmailTemplateCreateOrConnectWithoutUpdatedInput[]
    createMany?: EmailTemplateCreateManyUpdatedInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailTemplateCreateNestedManyWithoutDeletedInput = {
    create?: XOR<EmailTemplateCreateWithoutDeletedInput, EmailTemplateUncheckedCreateWithoutDeletedInput> | EmailTemplateCreateWithoutDeletedInput[] | EmailTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutDeletedInput | EmailTemplateCreateOrConnectWithoutDeletedInput[]
    createMany?: EmailTemplateCreateManyDeletedInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutCreatedInput, EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput> | EmailTemplateAssignmentCreateWithoutCreatedInput[] | EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutCreatedInput | EmailTemplateAssignmentCreateOrConnectWithoutCreatedInput[]
    createMany?: EmailTemplateAssignmentCreateManyCreatedInputEnvelope
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
  }

  export type EmailProcessJobCreateNestedManyWithoutCreatedInput = {
    create?: XOR<EmailProcessJobCreateWithoutCreatedInput, EmailProcessJobUncheckedCreateWithoutCreatedInput> | EmailProcessJobCreateWithoutCreatedInput[] | EmailProcessJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailProcessJobCreateOrConnectWithoutCreatedInput | EmailProcessJobCreateOrConnectWithoutCreatedInput[]
    createMany?: EmailProcessJobCreateManyCreatedInputEnvelope
    connect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
  }

  export type NotificationJobCreateNestedManyWithoutCreatedInput = {
    create?: XOR<NotificationJobCreateWithoutCreatedInput, NotificationJobUncheckedCreateWithoutCreatedInput> | NotificationJobCreateWithoutCreatedInput[] | NotificationJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: NotificationJobCreateOrConnectWithoutCreatedInput | NotificationJobCreateOrConnectWithoutCreatedInput[]
    createMany?: NotificationJobCreateManyCreatedInputEnvelope
    connect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
  }

  export type ImportTemplateCreateNestedManyWithoutCreatedInput = {
    create?: XOR<ImportTemplateCreateWithoutCreatedInput, ImportTemplateUncheckedCreateWithoutCreatedInput> | ImportTemplateCreateWithoutCreatedInput[] | ImportTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutCreatedInput | ImportTemplateCreateOrConnectWithoutCreatedInput[]
    createMany?: ImportTemplateCreateManyCreatedInputEnvelope
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
  }

  export type ImportTemplateCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<ImportTemplateCreateWithoutUpdatedInput, ImportTemplateUncheckedCreateWithoutUpdatedInput> | ImportTemplateCreateWithoutUpdatedInput[] | ImportTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutUpdatedInput | ImportTemplateCreateOrConnectWithoutUpdatedInput[]
    createMany?: ImportTemplateCreateManyUpdatedInputEnvelope
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
  }

  export type ImportTemplateCreateNestedManyWithoutDeletedInput = {
    create?: XOR<ImportTemplateCreateWithoutDeletedInput, ImportTemplateUncheckedCreateWithoutDeletedInput> | ImportTemplateCreateWithoutDeletedInput[] | ImportTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutDeletedInput | ImportTemplateCreateOrConnectWithoutDeletedInput[]
    createMany?: ImportTemplateCreateManyDeletedInputEnvelope
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
  }

  export type ExportTemplateCreateNestedManyWithoutCreatedInput = {
    create?: XOR<ExportTemplateCreateWithoutCreatedInput, ExportTemplateUncheckedCreateWithoutCreatedInput> | ExportTemplateCreateWithoutCreatedInput[] | ExportTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutCreatedInput | ExportTemplateCreateOrConnectWithoutCreatedInput[]
    createMany?: ExportTemplateCreateManyCreatedInputEnvelope
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
  }

  export type ExportTemplateCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<ExportTemplateCreateWithoutUpdatedInput, ExportTemplateUncheckedCreateWithoutUpdatedInput> | ExportTemplateCreateWithoutUpdatedInput[] | ExportTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutUpdatedInput | ExportTemplateCreateOrConnectWithoutUpdatedInput[]
    createMany?: ExportTemplateCreateManyUpdatedInputEnvelope
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
  }

  export type ExportTemplateCreateNestedManyWithoutDeletedInput = {
    create?: XOR<ExportTemplateCreateWithoutDeletedInput, ExportTemplateUncheckedCreateWithoutDeletedInput> | ExportTemplateCreateWithoutDeletedInput[] | ExportTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutDeletedInput | ExportTemplateCreateOrConnectWithoutDeletedInput[]
    createMany?: ExportTemplateCreateManyDeletedInputEnvelope
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
  }

  export type DepartmentCreateNestedManyWithoutCreatedInput = {
    create?: XOR<DepartmentCreateWithoutCreatedInput, DepartmentUncheckedCreateWithoutCreatedInput> | DepartmentCreateWithoutCreatedInput[] | DepartmentUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutCreatedInput | DepartmentCreateOrConnectWithoutCreatedInput[]
    createMany?: DepartmentCreateManyCreatedInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type DepartmentCreateNestedManyWithoutDepartment_headInput = {
    create?: XOR<DepartmentCreateWithoutDepartment_headInput, DepartmentUncheckedCreateWithoutDepartment_headInput> | DepartmentCreateWithoutDepartment_headInput[] | DepartmentUncheckedCreateWithoutDepartment_headInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutDepartment_headInput | DepartmentCreateOrConnectWithoutDepartment_headInput[]
    createMany?: DepartmentCreateManyDepartment_headInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type DepartmentCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<DepartmentCreateWithoutUpdatedInput, DepartmentUncheckedCreateWithoutUpdatedInput> | DepartmentCreateWithoutUpdatedInput[] | DepartmentUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutUpdatedInput | DepartmentCreateOrConnectWithoutUpdatedInput[]
    createMany?: DepartmentCreateManyUpdatedInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type DepartmentCreateNestedManyWithoutDeletedInput = {
    create?: XOR<DepartmentCreateWithoutDeletedInput, DepartmentUncheckedCreateWithoutDeletedInput> | DepartmentCreateWithoutDeletedInput[] | DepartmentUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutDeletedInput | DepartmentCreateOrConnectWithoutDeletedInput[]
    createMany?: DepartmentCreateManyDeletedInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type DesignationCreateNestedManyWithoutCreatedInput = {
    create?: XOR<DesignationCreateWithoutCreatedInput, DesignationUncheckedCreateWithoutCreatedInput> | DesignationCreateWithoutCreatedInput[] | DesignationUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutCreatedInput | DesignationCreateOrConnectWithoutCreatedInput[]
    createMany?: DesignationCreateManyCreatedInputEnvelope
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
  }

  export type DesignationCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<DesignationCreateWithoutUpdatedInput, DesignationUncheckedCreateWithoutUpdatedInput> | DesignationCreateWithoutUpdatedInput[] | DesignationUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutUpdatedInput | DesignationCreateOrConnectWithoutUpdatedInput[]
    createMany?: DesignationCreateManyUpdatedInputEnvelope
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
  }

  export type DesignationCreateNestedManyWithoutDeletedInput = {
    create?: XOR<DesignationCreateWithoutDeletedInput, DesignationUncheckedCreateWithoutDeletedInput> | DesignationCreateWithoutDeletedInput[] | DesignationUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutDeletedInput | DesignationCreateOrConnectWithoutDeletedInput[]
    createMany?: DesignationCreateManyDeletedInputEnvelope
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
  }

  export type AuditLogCreateNestedManyWithoutUserInput = {
    create?: XOR<AuditLogCreateWithoutUserInput, AuditLogUncheckedCreateWithoutUserInput> | AuditLogCreateWithoutUserInput[] | AuditLogUncheckedCreateWithoutUserInput[]
    connectOrCreate?: AuditLogCreateOrConnectWithoutUserInput | AuditLogCreateOrConnectWithoutUserInput[]
    createMany?: AuditLogCreateManyUserInputEnvelope
    connect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
  }

  export type CategoryTypesCreateNestedManyWithoutCreated_category_typesInput = {
    create?: XOR<CategoryTypesCreateWithoutCreated_category_typesInput, CategoryTypesUncheckedCreateWithoutCreated_category_typesInput> | CategoryTypesCreateWithoutCreated_category_typesInput[] | CategoryTypesUncheckedCreateWithoutCreated_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutCreated_category_typesInput | CategoryTypesCreateOrConnectWithoutCreated_category_typesInput[]
    createMany?: CategoryTypesCreateManyCreated_category_typesInputEnvelope
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
  }

  export type CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput = {
    create?: XOR<CategoryTypesCreateWithoutUpdated_category_typesInput, CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput> | CategoryTypesCreateWithoutUpdated_category_typesInput[] | CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutUpdated_category_typesInput | CategoryTypesCreateOrConnectWithoutUpdated_category_typesInput[]
    createMany?: CategoryTypesCreateManyUpdated_category_typesInputEnvelope
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
  }

  export type CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput = {
    create?: XOR<CategoryTypesCreateWithoutDeleted_category_typesInput, CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput> | CategoryTypesCreateWithoutDeleted_category_typesInput[] | CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutDeleted_category_typesInput | CategoryTypesCreateOrConnectWithoutDeleted_category_typesInput[]
    createMany?: CategoryTypesCreateManyDeleted_category_typesInputEnvelope
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
  }

  export type CategoriesCreateNestedManyWithoutCreated_categoriesInput = {
    create?: XOR<CategoriesCreateWithoutCreated_categoriesInput, CategoriesUncheckedCreateWithoutCreated_categoriesInput> | CategoriesCreateWithoutCreated_categoriesInput[] | CategoriesUncheckedCreateWithoutCreated_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutCreated_categoriesInput | CategoriesCreateOrConnectWithoutCreated_categoriesInput[]
    createMany?: CategoriesCreateManyCreated_categoriesInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type CategoriesCreateNestedManyWithoutUpdated_categoriesInput = {
    create?: XOR<CategoriesCreateWithoutUpdated_categoriesInput, CategoriesUncheckedCreateWithoutUpdated_categoriesInput> | CategoriesCreateWithoutUpdated_categoriesInput[] | CategoriesUncheckedCreateWithoutUpdated_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutUpdated_categoriesInput | CategoriesCreateOrConnectWithoutUpdated_categoriesInput[]
    createMany?: CategoriesCreateManyUpdated_categoriesInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type CategoriesCreateNestedManyWithoutDeleted_categoriesInput = {
    create?: XOR<CategoriesCreateWithoutDeleted_categoriesInput, CategoriesUncheckedCreateWithoutDeleted_categoriesInput> | CategoriesCreateWithoutDeleted_categoriesInput[] | CategoriesUncheckedCreateWithoutDeleted_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutDeleted_categoriesInput | CategoriesCreateOrConnectWithoutDeleted_categoriesInput[]
    createMany?: CategoriesCreateManyDeleted_categoriesInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type ConfigurationsCreateNestedManyWithoutCreated_configurationsInput = {
    create?: XOR<ConfigurationsCreateWithoutCreated_configurationsInput, ConfigurationsUncheckedCreateWithoutCreated_configurationsInput> | ConfigurationsCreateWithoutCreated_configurationsInput[] | ConfigurationsUncheckedCreateWithoutCreated_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutCreated_configurationsInput | ConfigurationsCreateOrConnectWithoutCreated_configurationsInput[]
    createMany?: ConfigurationsCreateManyCreated_configurationsInputEnvelope
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
  }

  export type ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput = {
    create?: XOR<ConfigurationsCreateWithoutUpdated_configurationsInput, ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput> | ConfigurationsCreateWithoutUpdated_configurationsInput[] | ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutUpdated_configurationsInput | ConfigurationsCreateOrConnectWithoutUpdated_configurationsInput[]
    createMany?: ConfigurationsCreateManyUpdated_configurationsInputEnvelope
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
  }

  export type ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput = {
    create?: XOR<ConfigurationsCreateWithoutDeleted_configurationsInput, ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput> | ConfigurationsCreateWithoutDeleted_configurationsInput[] | ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutDeleted_configurationsInput | ConfigurationsCreateOrConnectWithoutDeleted_configurationsInput[]
    createMany?: ConfigurationsCreateManyDeleted_configurationsInputEnvelope
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
  }

  export type FinancialYearCreateNestedManyWithoutCreatedInput = {
    create?: XOR<FinancialYearCreateWithoutCreatedInput, FinancialYearUncheckedCreateWithoutCreatedInput> | FinancialYearCreateWithoutCreatedInput[] | FinancialYearUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutCreatedInput | FinancialYearCreateOrConnectWithoutCreatedInput[]
    createMany?: FinancialYearCreateManyCreatedInputEnvelope
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
  }

  export type FinancialYearCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<FinancialYearCreateWithoutUpdatedInput, FinancialYearUncheckedCreateWithoutUpdatedInput> | FinancialYearCreateWithoutUpdatedInput[] | FinancialYearUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutUpdatedInput | FinancialYearCreateOrConnectWithoutUpdatedInput[]
    createMany?: FinancialYearCreateManyUpdatedInputEnvelope
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
  }

  export type FinancialYearCreateNestedManyWithoutDeletedInput = {
    create?: XOR<FinancialYearCreateWithoutDeletedInput, FinancialYearUncheckedCreateWithoutDeletedInput> | FinancialYearCreateWithoutDeletedInput[] | FinancialYearUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutDeletedInput | FinancialYearCreateOrConnectWithoutDeletedInput[]
    createMany?: FinancialYearCreateManyDeletedInputEnvelope
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
  }

  export type DocumentSequenceCreateNestedManyWithoutCreatedInput = {
    create?: XOR<DocumentSequenceCreateWithoutCreatedInput, DocumentSequenceUncheckedCreateWithoutCreatedInput> | DocumentSequenceCreateWithoutCreatedInput[] | DocumentSequenceUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutCreatedInput | DocumentSequenceCreateOrConnectWithoutCreatedInput[]
    createMany?: DocumentSequenceCreateManyCreatedInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type DocumentSequenceCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<DocumentSequenceCreateWithoutUpdatedInput, DocumentSequenceUncheckedCreateWithoutUpdatedInput> | DocumentSequenceCreateWithoutUpdatedInput[] | DocumentSequenceUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutUpdatedInput | DocumentSequenceCreateOrConnectWithoutUpdatedInput[]
    createMany?: DocumentSequenceCreateManyUpdatedInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type DocumentSequenceCreateNestedManyWithoutDeletedInput = {
    create?: XOR<DocumentSequenceCreateWithoutDeletedInput, DocumentSequenceUncheckedCreateWithoutDeletedInput> | DocumentSequenceCreateWithoutDeletedInput[] | DocumentSequenceUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutDeletedInput | DocumentSequenceCreateOrConnectWithoutDeletedInput[]
    createMany?: DocumentSequenceCreateManyDeletedInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput = {
    create?: XOR<DeviceRegistrationCreateWithoutCreated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput> | DeviceRegistrationCreateWithoutCreated_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutCreated_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutCreated_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyCreated_device_registrationInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput = {
    create?: XOR<DeviceRegistrationCreateWithoutUpdated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput> | DeviceRegistrationCreateWithoutUpdated_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutUpdated_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutUpdated_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyUpdated_device_registrationInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput = {
    create?: XOR<DeviceRegistrationCreateWithoutDeleted_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput> | DeviceRegistrationCreateWithoutDeleted_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutDeleted_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutDeleted_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyDeleted_device_registrationInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type DeviceRegistrationCreateNestedManyWithoutUserInput = {
    create?: XOR<DeviceRegistrationCreateWithoutUserInput, DeviceRegistrationUncheckedCreateWithoutUserInput> | DeviceRegistrationCreateWithoutUserInput[] | DeviceRegistrationUncheckedCreateWithoutUserInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutUserInput | DeviceRegistrationCreateOrConnectWithoutUserInput[]
    createMany?: DeviceRegistrationCreateManyUserInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type ImportJobCreateNestedManyWithoutCreatedInput = {
    create?: XOR<ImportJobCreateWithoutCreatedInput, ImportJobUncheckedCreateWithoutCreatedInput> | ImportJobCreateWithoutCreatedInput[] | ImportJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutCreatedInput | ImportJobCreateOrConnectWithoutCreatedInput[]
    createMany?: ImportJobCreateManyCreatedInputEnvelope
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
  }

  export type ImportJobCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<ImportJobCreateWithoutUpdatedInput, ImportJobUncheckedCreateWithoutUpdatedInput> | ImportJobCreateWithoutUpdatedInput[] | ImportJobUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutUpdatedInput | ImportJobCreateOrConnectWithoutUpdatedInput[]
    createMany?: ImportJobCreateManyUpdatedInputEnvelope
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
  }

  export type ImportJobCreateNestedManyWithoutDeletedInput = {
    create?: XOR<ImportJobCreateWithoutDeletedInput, ImportJobUncheckedCreateWithoutDeletedInput> | ImportJobCreateWithoutDeletedInput[] | ImportJobUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutDeletedInput | ImportJobCreateOrConnectWithoutDeletedInput[]
    createMany?: ImportJobCreateManyDeletedInputEnvelope
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
  }

  export type UserDetailUncheckedCreateNestedOneWithoutUserInput = {
    create?: XOR<UserDetailCreateWithoutUserInput, UserDetailUncheckedCreateWithoutUserInput>
    connectOrCreate?: UserDetailCreateOrConnectWithoutUserInput
    connect?: UserDetailWhereUniqueInput
  }

  export type RequestLogUncheckedCreateNestedManyWithoutUserInput = {
    create?: XOR<RequestLogCreateWithoutUserInput, RequestLogUncheckedCreateWithoutUserInput> | RequestLogCreateWithoutUserInput[] | RequestLogUncheckedCreateWithoutUserInput[]
    connectOrCreate?: RequestLogCreateOrConnectWithoutUserInput | RequestLogCreateOrConnectWithoutUserInput[]
    createMany?: RequestLogCreateManyUserInputEnvelope
    connect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
  }

  export type UserRolesUncheckedCreateNestedManyWithoutUserInput = {
    create?: XOR<UserRolesCreateWithoutUserInput, UserRolesUncheckedCreateWithoutUserInput> | UserRolesCreateWithoutUserInput[] | UserRolesUncheckedCreateWithoutUserInput[]
    connectOrCreate?: UserRolesCreateOrConnectWithoutUserInput | UserRolesCreateOrConnectWithoutUserInput[]
    createMany?: UserRolesCreateManyUserInputEnvelope
    connect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
  }

  export type UserPermissionsUncheckedCreateNestedManyWithoutUserInput = {
    create?: XOR<UserPermissionsCreateWithoutUserInput, UserPermissionsUncheckedCreateWithoutUserInput> | UserPermissionsCreateWithoutUserInput[] | UserPermissionsUncheckedCreateWithoutUserInput[]
    connectOrCreate?: UserPermissionsCreateOrConnectWithoutUserInput | UserPermissionsCreateOrConnectWithoutUserInput[]
    createMany?: UserPermissionsCreateManyUserInputEnvelope
    connect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
  }

  export type OtpUncheckedCreateNestedManyWithoutUserInput = {
    create?: XOR<OtpCreateWithoutUserInput, OtpUncheckedCreateWithoutUserInput> | OtpCreateWithoutUserInput[] | OtpUncheckedCreateWithoutUserInput[]
    connectOrCreate?: OtpCreateOrConnectWithoutUserInput | OtpCreateOrConnectWithoutUserInput[]
    createMany?: OtpCreateManyUserInputEnvelope
    connect?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
  }

  export type UserUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<UserCreateWithoutCreatedInput, UserUncheckedCreateWithoutCreatedInput> | UserCreateWithoutCreatedInput[] | UserUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutCreatedInput | UserCreateOrConnectWithoutCreatedInput[]
    createMany?: UserCreateManyCreatedInputEnvelope
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
  }

  export type UserUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<UserCreateWithoutUpdatedInput, UserUncheckedCreateWithoutUpdatedInput> | UserCreateWithoutUpdatedInput[] | UserUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutUpdatedInput | UserCreateOrConnectWithoutUpdatedInput[]
    createMany?: UserCreateManyUpdatedInputEnvelope
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
  }

  export type UserUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<UserCreateWithoutDeletedInput, UserUncheckedCreateWithoutDeletedInput> | UserCreateWithoutDeletedInput[] | UserUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutDeletedInput | UserCreateOrConnectWithoutDeletedInput[]
    createMany?: UserCreateManyDeletedInputEnvelope
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
  }

  export type UserDetailUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<UserDetailCreateWithoutCreatedInput, UserDetailUncheckedCreateWithoutCreatedInput> | UserDetailCreateWithoutCreatedInput[] | UserDetailUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutCreatedInput | UserDetailCreateOrConnectWithoutCreatedInput[]
    createMany?: UserDetailCreateManyCreatedInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type UserDetailUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<UserDetailCreateWithoutUpdatedInput, UserDetailUncheckedCreateWithoutUpdatedInput> | UserDetailCreateWithoutUpdatedInput[] | UserDetailUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutUpdatedInput | UserDetailCreateOrConnectWithoutUpdatedInput[]
    createMany?: UserDetailCreateManyUpdatedInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type UserDetailUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<UserDetailCreateWithoutDeletedInput, UserDetailUncheckedCreateWithoutDeletedInput> | UserDetailCreateWithoutDeletedInput[] | UserDetailUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDeletedInput | UserDetailCreateOrConnectWithoutDeletedInput[]
    createMany?: UserDetailCreateManyDeletedInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type RoleUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<RoleCreateWithoutCreatedInput, RoleUncheckedCreateWithoutCreatedInput> | RoleCreateWithoutCreatedInput[] | RoleUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutCreatedInput | RoleCreateOrConnectWithoutCreatedInput[]
    createMany?: RoleCreateManyCreatedInputEnvelope
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
  }

  export type RoleUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<RoleCreateWithoutUpdatedInput, RoleUncheckedCreateWithoutUpdatedInput> | RoleCreateWithoutUpdatedInput[] | RoleUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutUpdatedInput | RoleCreateOrConnectWithoutUpdatedInput[]
    createMany?: RoleCreateManyUpdatedInputEnvelope
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
  }

  export type RoleUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<RoleCreateWithoutDeletedInput, RoleUncheckedCreateWithoutDeletedInput> | RoleCreateWithoutDeletedInput[] | RoleUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutDeletedInput | RoleCreateOrConnectWithoutDeletedInput[]
    createMany?: RoleCreateManyDeletedInputEnvelope
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
  }

  export type LanguageUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<LanguageCreateWithoutCreatedInput, LanguageUncheckedCreateWithoutCreatedInput> | LanguageCreateWithoutCreatedInput[] | LanguageUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutCreatedInput | LanguageCreateOrConnectWithoutCreatedInput[]
    createMany?: LanguageCreateManyCreatedInputEnvelope
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
  }

  export type LanguageUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<LanguageCreateWithoutUpdatedInput, LanguageUncheckedCreateWithoutUpdatedInput> | LanguageCreateWithoutUpdatedInput[] | LanguageUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutUpdatedInput | LanguageCreateOrConnectWithoutUpdatedInput[]
    createMany?: LanguageCreateManyUpdatedInputEnvelope
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
  }

  export type LanguageUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<LanguageCreateWithoutDeletedInput, LanguageUncheckedCreateWithoutDeletedInput> | LanguageCreateWithoutDeletedInput[] | LanguageUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutDeletedInput | LanguageCreateOrConnectWithoutDeletedInput[]
    createMany?: LanguageCreateManyDeletedInputEnvelope
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
  }

  export type MenusUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<MenusCreateWithoutCreatedInput, MenusUncheckedCreateWithoutCreatedInput> | MenusCreateWithoutCreatedInput[] | MenusUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutCreatedInput | MenusCreateOrConnectWithoutCreatedInput[]
    createMany?: MenusCreateManyCreatedInputEnvelope
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
  }

  export type MenusUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<MenusCreateWithoutUpdatedInput, MenusUncheckedCreateWithoutUpdatedInput> | MenusCreateWithoutUpdatedInput[] | MenusUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutUpdatedInput | MenusCreateOrConnectWithoutUpdatedInput[]
    createMany?: MenusCreateManyUpdatedInputEnvelope
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
  }

  export type MenusUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<MenusCreateWithoutDeletedInput, MenusUncheckedCreateWithoutDeletedInput> | MenusCreateWithoutDeletedInput[] | MenusUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutDeletedInput | MenusCreateOrConnectWithoutDeletedInput[]
    createMany?: MenusCreateManyDeletedInputEnvelope
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
  }

  export type MenuItemsUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<MenuItemsCreateWithoutCreatedInput, MenuItemsUncheckedCreateWithoutCreatedInput> | MenuItemsCreateWithoutCreatedInput[] | MenuItemsUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutCreatedInput | MenuItemsCreateOrConnectWithoutCreatedInput[]
    createMany?: MenuItemsCreateManyCreatedInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<MenuItemsCreateWithoutUpdatedInput, MenuItemsUncheckedCreateWithoutUpdatedInput> | MenuItemsCreateWithoutUpdatedInput[] | MenuItemsUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutUpdatedInput | MenuItemsCreateOrConnectWithoutUpdatedInput[]
    createMany?: MenuItemsCreateManyUpdatedInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type MenuItemsUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<MenuItemsCreateWithoutDeletedInput, MenuItemsUncheckedCreateWithoutDeletedInput> | MenuItemsCreateWithoutDeletedInput[] | MenuItemsUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutDeletedInput | MenuItemsCreateOrConnectWithoutDeletedInput[]
    createMany?: MenuItemsCreateManyDeletedInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<EmailTemplateCreateWithoutCreatedInput, EmailTemplateUncheckedCreateWithoutCreatedInput> | EmailTemplateCreateWithoutCreatedInput[] | EmailTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutCreatedInput | EmailTemplateCreateOrConnectWithoutCreatedInput[]
    createMany?: EmailTemplateCreateManyCreatedInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<EmailTemplateCreateWithoutUpdatedInput, EmailTemplateUncheckedCreateWithoutUpdatedInput> | EmailTemplateCreateWithoutUpdatedInput[] | EmailTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutUpdatedInput | EmailTemplateCreateOrConnectWithoutUpdatedInput[]
    createMany?: EmailTemplateCreateManyUpdatedInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<EmailTemplateCreateWithoutDeletedInput, EmailTemplateUncheckedCreateWithoutDeletedInput> | EmailTemplateCreateWithoutDeletedInput[] | EmailTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutDeletedInput | EmailTemplateCreateOrConnectWithoutDeletedInput[]
    createMany?: EmailTemplateCreateManyDeletedInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutCreatedInput, EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput> | EmailTemplateAssignmentCreateWithoutCreatedInput[] | EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutCreatedInput | EmailTemplateAssignmentCreateOrConnectWithoutCreatedInput[]
    createMany?: EmailTemplateAssignmentCreateManyCreatedInputEnvelope
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
  }

  export type EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<EmailProcessJobCreateWithoutCreatedInput, EmailProcessJobUncheckedCreateWithoutCreatedInput> | EmailProcessJobCreateWithoutCreatedInput[] | EmailProcessJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailProcessJobCreateOrConnectWithoutCreatedInput | EmailProcessJobCreateOrConnectWithoutCreatedInput[]
    createMany?: EmailProcessJobCreateManyCreatedInputEnvelope
    connect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
  }

  export type NotificationJobUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<NotificationJobCreateWithoutCreatedInput, NotificationJobUncheckedCreateWithoutCreatedInput> | NotificationJobCreateWithoutCreatedInput[] | NotificationJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: NotificationJobCreateOrConnectWithoutCreatedInput | NotificationJobCreateOrConnectWithoutCreatedInput[]
    createMany?: NotificationJobCreateManyCreatedInputEnvelope
    connect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
  }

  export type ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<ImportTemplateCreateWithoutCreatedInput, ImportTemplateUncheckedCreateWithoutCreatedInput> | ImportTemplateCreateWithoutCreatedInput[] | ImportTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutCreatedInput | ImportTemplateCreateOrConnectWithoutCreatedInput[]
    createMany?: ImportTemplateCreateManyCreatedInputEnvelope
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
  }

  export type ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<ImportTemplateCreateWithoutUpdatedInput, ImportTemplateUncheckedCreateWithoutUpdatedInput> | ImportTemplateCreateWithoutUpdatedInput[] | ImportTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutUpdatedInput | ImportTemplateCreateOrConnectWithoutUpdatedInput[]
    createMany?: ImportTemplateCreateManyUpdatedInputEnvelope
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
  }

  export type ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<ImportTemplateCreateWithoutDeletedInput, ImportTemplateUncheckedCreateWithoutDeletedInput> | ImportTemplateCreateWithoutDeletedInput[] | ImportTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutDeletedInput | ImportTemplateCreateOrConnectWithoutDeletedInput[]
    createMany?: ImportTemplateCreateManyDeletedInputEnvelope
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
  }

  export type ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<ExportTemplateCreateWithoutCreatedInput, ExportTemplateUncheckedCreateWithoutCreatedInput> | ExportTemplateCreateWithoutCreatedInput[] | ExportTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutCreatedInput | ExportTemplateCreateOrConnectWithoutCreatedInput[]
    createMany?: ExportTemplateCreateManyCreatedInputEnvelope
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
  }

  export type ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<ExportTemplateCreateWithoutUpdatedInput, ExportTemplateUncheckedCreateWithoutUpdatedInput> | ExportTemplateCreateWithoutUpdatedInput[] | ExportTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutUpdatedInput | ExportTemplateCreateOrConnectWithoutUpdatedInput[]
    createMany?: ExportTemplateCreateManyUpdatedInputEnvelope
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
  }

  export type ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<ExportTemplateCreateWithoutDeletedInput, ExportTemplateUncheckedCreateWithoutDeletedInput> | ExportTemplateCreateWithoutDeletedInput[] | ExportTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutDeletedInput | ExportTemplateCreateOrConnectWithoutDeletedInput[]
    createMany?: ExportTemplateCreateManyDeletedInputEnvelope
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
  }

  export type DepartmentUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<DepartmentCreateWithoutCreatedInput, DepartmentUncheckedCreateWithoutCreatedInput> | DepartmentCreateWithoutCreatedInput[] | DepartmentUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutCreatedInput | DepartmentCreateOrConnectWithoutCreatedInput[]
    createMany?: DepartmentCreateManyCreatedInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput = {
    create?: XOR<DepartmentCreateWithoutDepartment_headInput, DepartmentUncheckedCreateWithoutDepartment_headInput> | DepartmentCreateWithoutDepartment_headInput[] | DepartmentUncheckedCreateWithoutDepartment_headInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutDepartment_headInput | DepartmentCreateOrConnectWithoutDepartment_headInput[]
    createMany?: DepartmentCreateManyDepartment_headInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type DepartmentUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<DepartmentCreateWithoutUpdatedInput, DepartmentUncheckedCreateWithoutUpdatedInput> | DepartmentCreateWithoutUpdatedInput[] | DepartmentUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutUpdatedInput | DepartmentCreateOrConnectWithoutUpdatedInput[]
    createMany?: DepartmentCreateManyUpdatedInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type DepartmentUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<DepartmentCreateWithoutDeletedInput, DepartmentUncheckedCreateWithoutDeletedInput> | DepartmentCreateWithoutDeletedInput[] | DepartmentUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutDeletedInput | DepartmentCreateOrConnectWithoutDeletedInput[]
    createMany?: DepartmentCreateManyDeletedInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type DesignationUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<DesignationCreateWithoutCreatedInput, DesignationUncheckedCreateWithoutCreatedInput> | DesignationCreateWithoutCreatedInput[] | DesignationUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutCreatedInput | DesignationCreateOrConnectWithoutCreatedInput[]
    createMany?: DesignationCreateManyCreatedInputEnvelope
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
  }

  export type DesignationUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<DesignationCreateWithoutUpdatedInput, DesignationUncheckedCreateWithoutUpdatedInput> | DesignationCreateWithoutUpdatedInput[] | DesignationUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutUpdatedInput | DesignationCreateOrConnectWithoutUpdatedInput[]
    createMany?: DesignationCreateManyUpdatedInputEnvelope
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
  }

  export type DesignationUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<DesignationCreateWithoutDeletedInput, DesignationUncheckedCreateWithoutDeletedInput> | DesignationCreateWithoutDeletedInput[] | DesignationUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutDeletedInput | DesignationCreateOrConnectWithoutDeletedInput[]
    createMany?: DesignationCreateManyDeletedInputEnvelope
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
  }

  export type AuditLogUncheckedCreateNestedManyWithoutUserInput = {
    create?: XOR<AuditLogCreateWithoutUserInput, AuditLogUncheckedCreateWithoutUserInput> | AuditLogCreateWithoutUserInput[] | AuditLogUncheckedCreateWithoutUserInput[]
    connectOrCreate?: AuditLogCreateOrConnectWithoutUserInput | AuditLogCreateOrConnectWithoutUserInput[]
    createMany?: AuditLogCreateManyUserInputEnvelope
    connect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
  }

  export type CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput = {
    create?: XOR<CategoryTypesCreateWithoutCreated_category_typesInput, CategoryTypesUncheckedCreateWithoutCreated_category_typesInput> | CategoryTypesCreateWithoutCreated_category_typesInput[] | CategoryTypesUncheckedCreateWithoutCreated_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutCreated_category_typesInput | CategoryTypesCreateOrConnectWithoutCreated_category_typesInput[]
    createMany?: CategoryTypesCreateManyCreated_category_typesInputEnvelope
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
  }

  export type CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput = {
    create?: XOR<CategoryTypesCreateWithoutUpdated_category_typesInput, CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput> | CategoryTypesCreateWithoutUpdated_category_typesInput[] | CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutUpdated_category_typesInput | CategoryTypesCreateOrConnectWithoutUpdated_category_typesInput[]
    createMany?: CategoryTypesCreateManyUpdated_category_typesInputEnvelope
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
  }

  export type CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput = {
    create?: XOR<CategoryTypesCreateWithoutDeleted_category_typesInput, CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput> | CategoryTypesCreateWithoutDeleted_category_typesInput[] | CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutDeleted_category_typesInput | CategoryTypesCreateOrConnectWithoutDeleted_category_typesInput[]
    createMany?: CategoryTypesCreateManyDeleted_category_typesInputEnvelope
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
  }

  export type CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput = {
    create?: XOR<CategoriesCreateWithoutCreated_categoriesInput, CategoriesUncheckedCreateWithoutCreated_categoriesInput> | CategoriesCreateWithoutCreated_categoriesInput[] | CategoriesUncheckedCreateWithoutCreated_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutCreated_categoriesInput | CategoriesCreateOrConnectWithoutCreated_categoriesInput[]
    createMany?: CategoriesCreateManyCreated_categoriesInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput = {
    create?: XOR<CategoriesCreateWithoutUpdated_categoriesInput, CategoriesUncheckedCreateWithoutUpdated_categoriesInput> | CategoriesCreateWithoutUpdated_categoriesInput[] | CategoriesUncheckedCreateWithoutUpdated_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutUpdated_categoriesInput | CategoriesCreateOrConnectWithoutUpdated_categoriesInput[]
    createMany?: CategoriesCreateManyUpdated_categoriesInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput = {
    create?: XOR<CategoriesCreateWithoutDeleted_categoriesInput, CategoriesUncheckedCreateWithoutDeleted_categoriesInput> | CategoriesCreateWithoutDeleted_categoriesInput[] | CategoriesUncheckedCreateWithoutDeleted_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutDeleted_categoriesInput | CategoriesCreateOrConnectWithoutDeleted_categoriesInput[]
    createMany?: CategoriesCreateManyDeleted_categoriesInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput = {
    create?: XOR<ConfigurationsCreateWithoutCreated_configurationsInput, ConfigurationsUncheckedCreateWithoutCreated_configurationsInput> | ConfigurationsCreateWithoutCreated_configurationsInput[] | ConfigurationsUncheckedCreateWithoutCreated_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutCreated_configurationsInput | ConfigurationsCreateOrConnectWithoutCreated_configurationsInput[]
    createMany?: ConfigurationsCreateManyCreated_configurationsInputEnvelope
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
  }

  export type ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput = {
    create?: XOR<ConfigurationsCreateWithoutUpdated_configurationsInput, ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput> | ConfigurationsCreateWithoutUpdated_configurationsInput[] | ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutUpdated_configurationsInput | ConfigurationsCreateOrConnectWithoutUpdated_configurationsInput[]
    createMany?: ConfigurationsCreateManyUpdated_configurationsInputEnvelope
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
  }

  export type ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput = {
    create?: XOR<ConfigurationsCreateWithoutDeleted_configurationsInput, ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput> | ConfigurationsCreateWithoutDeleted_configurationsInput[] | ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutDeleted_configurationsInput | ConfigurationsCreateOrConnectWithoutDeleted_configurationsInput[]
    createMany?: ConfigurationsCreateManyDeleted_configurationsInputEnvelope
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
  }

  export type FinancialYearUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<FinancialYearCreateWithoutCreatedInput, FinancialYearUncheckedCreateWithoutCreatedInput> | FinancialYearCreateWithoutCreatedInput[] | FinancialYearUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutCreatedInput | FinancialYearCreateOrConnectWithoutCreatedInput[]
    createMany?: FinancialYearCreateManyCreatedInputEnvelope
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
  }

  export type FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<FinancialYearCreateWithoutUpdatedInput, FinancialYearUncheckedCreateWithoutUpdatedInput> | FinancialYearCreateWithoutUpdatedInput[] | FinancialYearUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutUpdatedInput | FinancialYearCreateOrConnectWithoutUpdatedInput[]
    createMany?: FinancialYearCreateManyUpdatedInputEnvelope
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
  }

  export type FinancialYearUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<FinancialYearCreateWithoutDeletedInput, FinancialYearUncheckedCreateWithoutDeletedInput> | FinancialYearCreateWithoutDeletedInput[] | FinancialYearUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutDeletedInput | FinancialYearCreateOrConnectWithoutDeletedInput[]
    createMany?: FinancialYearCreateManyDeletedInputEnvelope
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
  }

  export type DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<DocumentSequenceCreateWithoutCreatedInput, DocumentSequenceUncheckedCreateWithoutCreatedInput> | DocumentSequenceCreateWithoutCreatedInput[] | DocumentSequenceUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutCreatedInput | DocumentSequenceCreateOrConnectWithoutCreatedInput[]
    createMany?: DocumentSequenceCreateManyCreatedInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<DocumentSequenceCreateWithoutUpdatedInput, DocumentSequenceUncheckedCreateWithoutUpdatedInput> | DocumentSequenceCreateWithoutUpdatedInput[] | DocumentSequenceUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutUpdatedInput | DocumentSequenceCreateOrConnectWithoutUpdatedInput[]
    createMany?: DocumentSequenceCreateManyUpdatedInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<DocumentSequenceCreateWithoutDeletedInput, DocumentSequenceUncheckedCreateWithoutDeletedInput> | DocumentSequenceCreateWithoutDeletedInput[] | DocumentSequenceUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutDeletedInput | DocumentSequenceCreateOrConnectWithoutDeletedInput[]
    createMany?: DocumentSequenceCreateManyDeletedInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput = {
    create?: XOR<DeviceRegistrationCreateWithoutCreated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput> | DeviceRegistrationCreateWithoutCreated_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutCreated_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutCreated_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyCreated_device_registrationInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput = {
    create?: XOR<DeviceRegistrationCreateWithoutUpdated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput> | DeviceRegistrationCreateWithoutUpdated_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutUpdated_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutUpdated_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyUpdated_device_registrationInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput = {
    create?: XOR<DeviceRegistrationCreateWithoutDeleted_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput> | DeviceRegistrationCreateWithoutDeleted_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutDeleted_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutDeleted_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyDeleted_device_registrationInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput = {
    create?: XOR<DeviceRegistrationCreateWithoutUserInput, DeviceRegistrationUncheckedCreateWithoutUserInput> | DeviceRegistrationCreateWithoutUserInput[] | DeviceRegistrationUncheckedCreateWithoutUserInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutUserInput | DeviceRegistrationCreateOrConnectWithoutUserInput[]
    createMany?: DeviceRegistrationCreateManyUserInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type ImportJobUncheckedCreateNestedManyWithoutCreatedInput = {
    create?: XOR<ImportJobCreateWithoutCreatedInput, ImportJobUncheckedCreateWithoutCreatedInput> | ImportJobCreateWithoutCreatedInput[] | ImportJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutCreatedInput | ImportJobCreateOrConnectWithoutCreatedInput[]
    createMany?: ImportJobCreateManyCreatedInputEnvelope
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
  }

  export type ImportJobUncheckedCreateNestedManyWithoutUpdatedInput = {
    create?: XOR<ImportJobCreateWithoutUpdatedInput, ImportJobUncheckedCreateWithoutUpdatedInput> | ImportJobCreateWithoutUpdatedInput[] | ImportJobUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutUpdatedInput | ImportJobCreateOrConnectWithoutUpdatedInput[]
    createMany?: ImportJobCreateManyUpdatedInputEnvelope
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
  }

  export type ImportJobUncheckedCreateNestedManyWithoutDeletedInput = {
    create?: XOR<ImportJobCreateWithoutDeletedInput, ImportJobUncheckedCreateWithoutDeletedInput> | ImportJobCreateWithoutDeletedInput[] | ImportJobUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutDeletedInput | ImportJobCreateOrConnectWithoutDeletedInput[]
    createMany?: ImportJobCreateManyDeletedInputEnvelope
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
  }

  export type StringFieldUpdateOperationsInput = {
    set?: string
  }

  export type BoolFieldUpdateOperationsInput = {
    set?: boolean
  }

  export type NullableStringFieldUpdateOperationsInput = {
    set?: string | null
  }

  export type DateTimeFieldUpdateOperationsInput = {
    set?: Date | string
  }

  export type NullableDateTimeFieldUpdateOperationsInput = {
    set?: Date | string | null
  }

  export type StatusUpdateOneRequiredWithoutUsersNestedInput = {
    create?: XOR<StatusCreateWithoutUsersInput, StatusUncheckedCreateWithoutUsersInput>
    connectOrCreate?: StatusCreateOrConnectWithoutUsersInput
    upsert?: StatusUpsertWithoutUsersInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutUsersInput, StatusUpdateWithoutUsersInput>, StatusUncheckedUpdateWithoutUsersInput>
  }

  export type UserDetailUpdateOneWithoutUserNestedInput = {
    create?: XOR<UserDetailCreateWithoutUserInput, UserDetailUncheckedCreateWithoutUserInput>
    connectOrCreate?: UserDetailCreateOrConnectWithoutUserInput
    upsert?: UserDetailUpsertWithoutUserInput
    disconnect?: UserDetailWhereInput | boolean
    delete?: UserDetailWhereInput | boolean
    connect?: UserDetailWhereUniqueInput
    update?: XOR<XOR<UserDetailUpdateToOneWithWhereWithoutUserInput, UserDetailUpdateWithoutUserInput>, UserDetailUncheckedUpdateWithoutUserInput>
  }

  export type RequestLogUpdateManyWithoutUserNestedInput = {
    create?: XOR<RequestLogCreateWithoutUserInput, RequestLogUncheckedCreateWithoutUserInput> | RequestLogCreateWithoutUserInput[] | RequestLogUncheckedCreateWithoutUserInput[]
    connectOrCreate?: RequestLogCreateOrConnectWithoutUserInput | RequestLogCreateOrConnectWithoutUserInput[]
    upsert?: RequestLogUpsertWithWhereUniqueWithoutUserInput | RequestLogUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: RequestLogCreateManyUserInputEnvelope
    set?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    disconnect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    delete?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    connect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    update?: RequestLogUpdateWithWhereUniqueWithoutUserInput | RequestLogUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: RequestLogUpdateManyWithWhereWithoutUserInput | RequestLogUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: RequestLogScalarWhereInput | RequestLogScalarWhereInput[]
  }

  export type UserRolesUpdateManyWithoutUserNestedInput = {
    create?: XOR<UserRolesCreateWithoutUserInput, UserRolesUncheckedCreateWithoutUserInput> | UserRolesCreateWithoutUserInput[] | UserRolesUncheckedCreateWithoutUserInput[]
    connectOrCreate?: UserRolesCreateOrConnectWithoutUserInput | UserRolesCreateOrConnectWithoutUserInput[]
    upsert?: UserRolesUpsertWithWhereUniqueWithoutUserInput | UserRolesUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: UserRolesCreateManyUserInputEnvelope
    set?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    disconnect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    delete?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    connect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    update?: UserRolesUpdateWithWhereUniqueWithoutUserInput | UserRolesUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: UserRolesUpdateManyWithWhereWithoutUserInput | UserRolesUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: UserRolesScalarWhereInput | UserRolesScalarWhereInput[]
  }

  export type UserPermissionsUpdateManyWithoutUserNestedInput = {
    create?: XOR<UserPermissionsCreateWithoutUserInput, UserPermissionsUncheckedCreateWithoutUserInput> | UserPermissionsCreateWithoutUserInput[] | UserPermissionsUncheckedCreateWithoutUserInput[]
    connectOrCreate?: UserPermissionsCreateOrConnectWithoutUserInput | UserPermissionsCreateOrConnectWithoutUserInput[]
    upsert?: UserPermissionsUpsertWithWhereUniqueWithoutUserInput | UserPermissionsUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: UserPermissionsCreateManyUserInputEnvelope
    set?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    disconnect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    delete?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    connect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    update?: UserPermissionsUpdateWithWhereUniqueWithoutUserInput | UserPermissionsUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: UserPermissionsUpdateManyWithWhereWithoutUserInput | UserPermissionsUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: UserPermissionsScalarWhereInput | UserPermissionsScalarWhereInput[]
  }

  export type OtpUpdateManyWithoutUserNestedInput = {
    create?: XOR<OtpCreateWithoutUserInput, OtpUncheckedCreateWithoutUserInput> | OtpCreateWithoutUserInput[] | OtpUncheckedCreateWithoutUserInput[]
    connectOrCreate?: OtpCreateOrConnectWithoutUserInput | OtpCreateOrConnectWithoutUserInput[]
    upsert?: OtpUpsertWithWhereUniqueWithoutUserInput | OtpUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: OtpCreateManyUserInputEnvelope
    set?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
    disconnect?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
    delete?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
    connect?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
    update?: OtpUpdateWithWhereUniqueWithoutUserInput | OtpUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: OtpUpdateManyWithWhereWithoutUserInput | OtpUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: OtpScalarWhereInput | OtpScalarWhereInput[]
  }

  export type UserUpdateOneWithoutCreated_usersNestedInput = {
    create?: XOR<UserCreateWithoutCreated_usersInput, UserUncheckedCreateWithoutCreated_usersInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_usersInput
    upsert?: UserUpsertWithoutCreated_usersInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_usersInput, UserUpdateWithoutCreated_usersInput>, UserUncheckedUpdateWithoutCreated_usersInput>
  }

  export type UserUpdateOneWithoutUpdated_usersNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_usersInput, UserUncheckedCreateWithoutUpdated_usersInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_usersInput
    upsert?: UserUpsertWithoutUpdated_usersInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_usersInput, UserUpdateWithoutUpdated_usersInput>, UserUncheckedUpdateWithoutUpdated_usersInput>
  }

  export type UserUpdateOneWithoutDeleted_usersNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_usersInput, UserUncheckedCreateWithoutDeleted_usersInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_usersInput
    upsert?: UserUpsertWithoutDeleted_usersInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_usersInput, UserUpdateWithoutDeleted_usersInput>, UserUncheckedUpdateWithoutDeleted_usersInput>
  }

  export type UserUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<UserCreateWithoutCreatedInput, UserUncheckedCreateWithoutCreatedInput> | UserCreateWithoutCreatedInput[] | UserUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutCreatedInput | UserCreateOrConnectWithoutCreatedInput[]
    upsert?: UserUpsertWithWhereUniqueWithoutCreatedInput | UserUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: UserCreateManyCreatedInputEnvelope
    set?: UserWhereUniqueInput | UserWhereUniqueInput[]
    disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    update?: UserUpdateWithWhereUniqueWithoutCreatedInput | UserUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: UserUpdateManyWithWhereWithoutCreatedInput | UserUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
  }

  export type UserUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<UserCreateWithoutUpdatedInput, UserUncheckedCreateWithoutUpdatedInput> | UserCreateWithoutUpdatedInput[] | UserUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutUpdatedInput | UserCreateOrConnectWithoutUpdatedInput[]
    upsert?: UserUpsertWithWhereUniqueWithoutUpdatedInput | UserUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: UserCreateManyUpdatedInputEnvelope
    set?: UserWhereUniqueInput | UserWhereUniqueInput[]
    disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    update?: UserUpdateWithWhereUniqueWithoutUpdatedInput | UserUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: UserUpdateManyWithWhereWithoutUpdatedInput | UserUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
  }

  export type UserUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<UserCreateWithoutDeletedInput, UserUncheckedCreateWithoutDeletedInput> | UserCreateWithoutDeletedInput[] | UserUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutDeletedInput | UserCreateOrConnectWithoutDeletedInput[]
    upsert?: UserUpsertWithWhereUniqueWithoutDeletedInput | UserUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: UserCreateManyDeletedInputEnvelope
    set?: UserWhereUniqueInput | UserWhereUniqueInput[]
    disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    update?: UserUpdateWithWhereUniqueWithoutDeletedInput | UserUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: UserUpdateManyWithWhereWithoutDeletedInput | UserUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
  }

  export type UserDetailUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<UserDetailCreateWithoutCreatedInput, UserDetailUncheckedCreateWithoutCreatedInput> | UserDetailCreateWithoutCreatedInput[] | UserDetailUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutCreatedInput | UserDetailCreateOrConnectWithoutCreatedInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutCreatedInput | UserDetailUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: UserDetailCreateManyCreatedInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutCreatedInput | UserDetailUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutCreatedInput | UserDetailUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type UserDetailUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<UserDetailCreateWithoutUpdatedInput, UserDetailUncheckedCreateWithoutUpdatedInput> | UserDetailCreateWithoutUpdatedInput[] | UserDetailUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutUpdatedInput | UserDetailCreateOrConnectWithoutUpdatedInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutUpdatedInput | UserDetailUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: UserDetailCreateManyUpdatedInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutUpdatedInput | UserDetailUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutUpdatedInput | UserDetailUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type UserDetailUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<UserDetailCreateWithoutDeletedInput, UserDetailUncheckedCreateWithoutDeletedInput> | UserDetailCreateWithoutDeletedInput[] | UserDetailUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDeletedInput | UserDetailCreateOrConnectWithoutDeletedInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutDeletedInput | UserDetailUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: UserDetailCreateManyDeletedInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutDeletedInput | UserDetailUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutDeletedInput | UserDetailUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type RoleUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<RoleCreateWithoutCreatedInput, RoleUncheckedCreateWithoutCreatedInput> | RoleCreateWithoutCreatedInput[] | RoleUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutCreatedInput | RoleCreateOrConnectWithoutCreatedInput[]
    upsert?: RoleUpsertWithWhereUniqueWithoutCreatedInput | RoleUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: RoleCreateManyCreatedInputEnvelope
    set?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    disconnect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    delete?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    update?: RoleUpdateWithWhereUniqueWithoutCreatedInput | RoleUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: RoleUpdateManyWithWhereWithoutCreatedInput | RoleUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: RoleScalarWhereInput | RoleScalarWhereInput[]
  }

  export type RoleUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<RoleCreateWithoutUpdatedInput, RoleUncheckedCreateWithoutUpdatedInput> | RoleCreateWithoutUpdatedInput[] | RoleUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutUpdatedInput | RoleCreateOrConnectWithoutUpdatedInput[]
    upsert?: RoleUpsertWithWhereUniqueWithoutUpdatedInput | RoleUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: RoleCreateManyUpdatedInputEnvelope
    set?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    disconnect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    delete?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    update?: RoleUpdateWithWhereUniqueWithoutUpdatedInput | RoleUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: RoleUpdateManyWithWhereWithoutUpdatedInput | RoleUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: RoleScalarWhereInput | RoleScalarWhereInput[]
  }

  export type RoleUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<RoleCreateWithoutDeletedInput, RoleUncheckedCreateWithoutDeletedInput> | RoleCreateWithoutDeletedInput[] | RoleUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutDeletedInput | RoleCreateOrConnectWithoutDeletedInput[]
    upsert?: RoleUpsertWithWhereUniqueWithoutDeletedInput | RoleUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: RoleCreateManyDeletedInputEnvelope
    set?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    disconnect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    delete?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    update?: RoleUpdateWithWhereUniqueWithoutDeletedInput | RoleUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: RoleUpdateManyWithWhereWithoutDeletedInput | RoleUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: RoleScalarWhereInput | RoleScalarWhereInput[]
  }

  export type LanguageUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<LanguageCreateWithoutCreatedInput, LanguageUncheckedCreateWithoutCreatedInput> | LanguageCreateWithoutCreatedInput[] | LanguageUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutCreatedInput | LanguageCreateOrConnectWithoutCreatedInput[]
    upsert?: LanguageUpsertWithWhereUniqueWithoutCreatedInput | LanguageUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: LanguageCreateManyCreatedInputEnvelope
    set?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    disconnect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    delete?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    update?: LanguageUpdateWithWhereUniqueWithoutCreatedInput | LanguageUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: LanguageUpdateManyWithWhereWithoutCreatedInput | LanguageUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
  }

  export type LanguageUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<LanguageCreateWithoutUpdatedInput, LanguageUncheckedCreateWithoutUpdatedInput> | LanguageCreateWithoutUpdatedInput[] | LanguageUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutUpdatedInput | LanguageCreateOrConnectWithoutUpdatedInput[]
    upsert?: LanguageUpsertWithWhereUniqueWithoutUpdatedInput | LanguageUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: LanguageCreateManyUpdatedInputEnvelope
    set?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    disconnect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    delete?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    update?: LanguageUpdateWithWhereUniqueWithoutUpdatedInput | LanguageUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: LanguageUpdateManyWithWhereWithoutUpdatedInput | LanguageUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
  }

  export type LanguageUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<LanguageCreateWithoutDeletedInput, LanguageUncheckedCreateWithoutDeletedInput> | LanguageCreateWithoutDeletedInput[] | LanguageUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutDeletedInput | LanguageCreateOrConnectWithoutDeletedInput[]
    upsert?: LanguageUpsertWithWhereUniqueWithoutDeletedInput | LanguageUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: LanguageCreateManyDeletedInputEnvelope
    set?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    disconnect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    delete?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    update?: LanguageUpdateWithWhereUniqueWithoutDeletedInput | LanguageUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: LanguageUpdateManyWithWhereWithoutDeletedInput | LanguageUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
  }

  export type MenusUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<MenusCreateWithoutCreatedInput, MenusUncheckedCreateWithoutCreatedInput> | MenusCreateWithoutCreatedInput[] | MenusUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutCreatedInput | MenusCreateOrConnectWithoutCreatedInput[]
    upsert?: MenusUpsertWithWhereUniqueWithoutCreatedInput | MenusUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: MenusCreateManyCreatedInputEnvelope
    set?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    disconnect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    delete?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    update?: MenusUpdateWithWhereUniqueWithoutCreatedInput | MenusUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: MenusUpdateManyWithWhereWithoutCreatedInput | MenusUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: MenusScalarWhereInput | MenusScalarWhereInput[]
  }

  export type MenusUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<MenusCreateWithoutUpdatedInput, MenusUncheckedCreateWithoutUpdatedInput> | MenusCreateWithoutUpdatedInput[] | MenusUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutUpdatedInput | MenusCreateOrConnectWithoutUpdatedInput[]
    upsert?: MenusUpsertWithWhereUniqueWithoutUpdatedInput | MenusUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: MenusCreateManyUpdatedInputEnvelope
    set?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    disconnect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    delete?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    update?: MenusUpdateWithWhereUniqueWithoutUpdatedInput | MenusUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: MenusUpdateManyWithWhereWithoutUpdatedInput | MenusUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: MenusScalarWhereInput | MenusScalarWhereInput[]
  }

  export type MenusUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<MenusCreateWithoutDeletedInput, MenusUncheckedCreateWithoutDeletedInput> | MenusCreateWithoutDeletedInput[] | MenusUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutDeletedInput | MenusCreateOrConnectWithoutDeletedInput[]
    upsert?: MenusUpsertWithWhereUniqueWithoutDeletedInput | MenusUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: MenusCreateManyDeletedInputEnvelope
    set?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    disconnect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    delete?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    update?: MenusUpdateWithWhereUniqueWithoutDeletedInput | MenusUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: MenusUpdateManyWithWhereWithoutDeletedInput | MenusUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: MenusScalarWhereInput | MenusScalarWhereInput[]
  }

  export type MenuItemsUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<MenuItemsCreateWithoutCreatedInput, MenuItemsUncheckedCreateWithoutCreatedInput> | MenuItemsCreateWithoutCreatedInput[] | MenuItemsUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutCreatedInput | MenuItemsCreateOrConnectWithoutCreatedInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutCreatedInput | MenuItemsUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: MenuItemsCreateManyCreatedInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutCreatedInput | MenuItemsUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutCreatedInput | MenuItemsUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type MenuItemsUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<MenuItemsCreateWithoutUpdatedInput, MenuItemsUncheckedCreateWithoutUpdatedInput> | MenuItemsCreateWithoutUpdatedInput[] | MenuItemsUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutUpdatedInput | MenuItemsCreateOrConnectWithoutUpdatedInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutUpdatedInput | MenuItemsUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: MenuItemsCreateManyUpdatedInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutUpdatedInput | MenuItemsUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutUpdatedInput | MenuItemsUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type MenuItemsUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<MenuItemsCreateWithoutDeletedInput, MenuItemsUncheckedCreateWithoutDeletedInput> | MenuItemsCreateWithoutDeletedInput[] | MenuItemsUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutDeletedInput | MenuItemsCreateOrConnectWithoutDeletedInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutDeletedInput | MenuItemsUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: MenuItemsCreateManyDeletedInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutDeletedInput | MenuItemsUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutDeletedInput | MenuItemsUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type EmailTemplateUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutCreatedInput, EmailTemplateUncheckedCreateWithoutCreatedInput> | EmailTemplateCreateWithoutCreatedInput[] | EmailTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutCreatedInput | EmailTemplateCreateOrConnectWithoutCreatedInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutCreatedInput | EmailTemplateUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: EmailTemplateCreateManyCreatedInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutCreatedInput | EmailTemplateUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutCreatedInput | EmailTemplateUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailTemplateUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutUpdatedInput, EmailTemplateUncheckedCreateWithoutUpdatedInput> | EmailTemplateCreateWithoutUpdatedInput[] | EmailTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutUpdatedInput | EmailTemplateCreateOrConnectWithoutUpdatedInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutUpdatedInput | EmailTemplateUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: EmailTemplateCreateManyUpdatedInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutUpdatedInput | EmailTemplateUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutUpdatedInput | EmailTemplateUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailTemplateUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutDeletedInput, EmailTemplateUncheckedCreateWithoutDeletedInput> | EmailTemplateCreateWithoutDeletedInput[] | EmailTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutDeletedInput | EmailTemplateCreateOrConnectWithoutDeletedInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutDeletedInput | EmailTemplateUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: EmailTemplateCreateManyDeletedInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutDeletedInput | EmailTemplateUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutDeletedInput | EmailTemplateUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutCreatedInput, EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput> | EmailTemplateAssignmentCreateWithoutCreatedInput[] | EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutCreatedInput | EmailTemplateAssignmentCreateOrConnectWithoutCreatedInput[]
    upsert?: EmailTemplateAssignmentUpsertWithWhereUniqueWithoutCreatedInput | EmailTemplateAssignmentUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: EmailTemplateAssignmentCreateManyCreatedInputEnvelope
    set?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    disconnect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    delete?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    update?: EmailTemplateAssignmentUpdateWithWhereUniqueWithoutCreatedInput | EmailTemplateAssignmentUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: EmailTemplateAssignmentUpdateManyWithWhereWithoutCreatedInput | EmailTemplateAssignmentUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: EmailTemplateAssignmentScalarWhereInput | EmailTemplateAssignmentScalarWhereInput[]
  }

  export type EmailProcessJobUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<EmailProcessJobCreateWithoutCreatedInput, EmailProcessJobUncheckedCreateWithoutCreatedInput> | EmailProcessJobCreateWithoutCreatedInput[] | EmailProcessJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailProcessJobCreateOrConnectWithoutCreatedInput | EmailProcessJobCreateOrConnectWithoutCreatedInput[]
    upsert?: EmailProcessJobUpsertWithWhereUniqueWithoutCreatedInput | EmailProcessJobUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: EmailProcessJobCreateManyCreatedInputEnvelope
    set?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    disconnect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    delete?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    connect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    update?: EmailProcessJobUpdateWithWhereUniqueWithoutCreatedInput | EmailProcessJobUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: EmailProcessJobUpdateManyWithWhereWithoutCreatedInput | EmailProcessJobUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: EmailProcessJobScalarWhereInput | EmailProcessJobScalarWhereInput[]
  }

  export type NotificationJobUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<NotificationJobCreateWithoutCreatedInput, NotificationJobUncheckedCreateWithoutCreatedInput> | NotificationJobCreateWithoutCreatedInput[] | NotificationJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: NotificationJobCreateOrConnectWithoutCreatedInput | NotificationJobCreateOrConnectWithoutCreatedInput[]
    upsert?: NotificationJobUpsertWithWhereUniqueWithoutCreatedInput | NotificationJobUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: NotificationJobCreateManyCreatedInputEnvelope
    set?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    disconnect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    delete?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    connect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    update?: NotificationJobUpdateWithWhereUniqueWithoutCreatedInput | NotificationJobUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: NotificationJobUpdateManyWithWhereWithoutCreatedInput | NotificationJobUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: NotificationJobScalarWhereInput | NotificationJobScalarWhereInput[]
  }

  export type ImportTemplateUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutCreatedInput, ImportTemplateUncheckedCreateWithoutCreatedInput> | ImportTemplateCreateWithoutCreatedInput[] | ImportTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutCreatedInput | ImportTemplateCreateOrConnectWithoutCreatedInput[]
    upsert?: ImportTemplateUpsertWithWhereUniqueWithoutCreatedInput | ImportTemplateUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: ImportTemplateCreateManyCreatedInputEnvelope
    set?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    disconnect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    delete?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    update?: ImportTemplateUpdateWithWhereUniqueWithoutCreatedInput | ImportTemplateUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: ImportTemplateUpdateManyWithWhereWithoutCreatedInput | ImportTemplateUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
  }

  export type ImportTemplateUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutUpdatedInput, ImportTemplateUncheckedCreateWithoutUpdatedInput> | ImportTemplateCreateWithoutUpdatedInput[] | ImportTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutUpdatedInput | ImportTemplateCreateOrConnectWithoutUpdatedInput[]
    upsert?: ImportTemplateUpsertWithWhereUniqueWithoutUpdatedInput | ImportTemplateUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: ImportTemplateCreateManyUpdatedInputEnvelope
    set?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    disconnect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    delete?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    update?: ImportTemplateUpdateWithWhereUniqueWithoutUpdatedInput | ImportTemplateUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: ImportTemplateUpdateManyWithWhereWithoutUpdatedInput | ImportTemplateUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
  }

  export type ImportTemplateUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutDeletedInput, ImportTemplateUncheckedCreateWithoutDeletedInput> | ImportTemplateCreateWithoutDeletedInput[] | ImportTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutDeletedInput | ImportTemplateCreateOrConnectWithoutDeletedInput[]
    upsert?: ImportTemplateUpsertWithWhereUniqueWithoutDeletedInput | ImportTemplateUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: ImportTemplateCreateManyDeletedInputEnvelope
    set?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    disconnect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    delete?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    update?: ImportTemplateUpdateWithWhereUniqueWithoutDeletedInput | ImportTemplateUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: ImportTemplateUpdateManyWithWhereWithoutDeletedInput | ImportTemplateUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
  }

  export type ExportTemplateUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutCreatedInput, ExportTemplateUncheckedCreateWithoutCreatedInput> | ExportTemplateCreateWithoutCreatedInput[] | ExportTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutCreatedInput | ExportTemplateCreateOrConnectWithoutCreatedInput[]
    upsert?: ExportTemplateUpsertWithWhereUniqueWithoutCreatedInput | ExportTemplateUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: ExportTemplateCreateManyCreatedInputEnvelope
    set?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    disconnect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    delete?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    update?: ExportTemplateUpdateWithWhereUniqueWithoutCreatedInput | ExportTemplateUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: ExportTemplateUpdateManyWithWhereWithoutCreatedInput | ExportTemplateUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
  }

  export type ExportTemplateUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutUpdatedInput, ExportTemplateUncheckedCreateWithoutUpdatedInput> | ExportTemplateCreateWithoutUpdatedInput[] | ExportTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutUpdatedInput | ExportTemplateCreateOrConnectWithoutUpdatedInput[]
    upsert?: ExportTemplateUpsertWithWhereUniqueWithoutUpdatedInput | ExportTemplateUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: ExportTemplateCreateManyUpdatedInputEnvelope
    set?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    disconnect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    delete?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    update?: ExportTemplateUpdateWithWhereUniqueWithoutUpdatedInput | ExportTemplateUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: ExportTemplateUpdateManyWithWhereWithoutUpdatedInput | ExportTemplateUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
  }

  export type ExportTemplateUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutDeletedInput, ExportTemplateUncheckedCreateWithoutDeletedInput> | ExportTemplateCreateWithoutDeletedInput[] | ExportTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutDeletedInput | ExportTemplateCreateOrConnectWithoutDeletedInput[]
    upsert?: ExportTemplateUpsertWithWhereUniqueWithoutDeletedInput | ExportTemplateUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: ExportTemplateCreateManyDeletedInputEnvelope
    set?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    disconnect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    delete?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    update?: ExportTemplateUpdateWithWhereUniqueWithoutDeletedInput | ExportTemplateUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: ExportTemplateUpdateManyWithWhereWithoutDeletedInput | ExportTemplateUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
  }

  export type DepartmentUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<DepartmentCreateWithoutCreatedInput, DepartmentUncheckedCreateWithoutCreatedInput> | DepartmentCreateWithoutCreatedInput[] | DepartmentUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutCreatedInput | DepartmentCreateOrConnectWithoutCreatedInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutCreatedInput | DepartmentUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: DepartmentCreateManyCreatedInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutCreatedInput | DepartmentUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutCreatedInput | DepartmentUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type DepartmentUpdateManyWithoutDepartment_headNestedInput = {
    create?: XOR<DepartmentCreateWithoutDepartment_headInput, DepartmentUncheckedCreateWithoutDepartment_headInput> | DepartmentCreateWithoutDepartment_headInput[] | DepartmentUncheckedCreateWithoutDepartment_headInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutDepartment_headInput | DepartmentCreateOrConnectWithoutDepartment_headInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutDepartment_headInput | DepartmentUpsertWithWhereUniqueWithoutDepartment_headInput[]
    createMany?: DepartmentCreateManyDepartment_headInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutDepartment_headInput | DepartmentUpdateWithWhereUniqueWithoutDepartment_headInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutDepartment_headInput | DepartmentUpdateManyWithWhereWithoutDepartment_headInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type DepartmentUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<DepartmentCreateWithoutUpdatedInput, DepartmentUncheckedCreateWithoutUpdatedInput> | DepartmentCreateWithoutUpdatedInput[] | DepartmentUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutUpdatedInput | DepartmentCreateOrConnectWithoutUpdatedInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutUpdatedInput | DepartmentUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: DepartmentCreateManyUpdatedInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutUpdatedInput | DepartmentUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutUpdatedInput | DepartmentUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type DepartmentUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<DepartmentCreateWithoutDeletedInput, DepartmentUncheckedCreateWithoutDeletedInput> | DepartmentCreateWithoutDeletedInput[] | DepartmentUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutDeletedInput | DepartmentCreateOrConnectWithoutDeletedInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutDeletedInput | DepartmentUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: DepartmentCreateManyDeletedInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutDeletedInput | DepartmentUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutDeletedInput | DepartmentUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type DesignationUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<DesignationCreateWithoutCreatedInput, DesignationUncheckedCreateWithoutCreatedInput> | DesignationCreateWithoutCreatedInput[] | DesignationUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutCreatedInput | DesignationCreateOrConnectWithoutCreatedInput[]
    upsert?: DesignationUpsertWithWhereUniqueWithoutCreatedInput | DesignationUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: DesignationCreateManyCreatedInputEnvelope
    set?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    disconnect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    delete?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    update?: DesignationUpdateWithWhereUniqueWithoutCreatedInput | DesignationUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: DesignationUpdateManyWithWhereWithoutCreatedInput | DesignationUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
  }

  export type DesignationUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<DesignationCreateWithoutUpdatedInput, DesignationUncheckedCreateWithoutUpdatedInput> | DesignationCreateWithoutUpdatedInput[] | DesignationUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutUpdatedInput | DesignationCreateOrConnectWithoutUpdatedInput[]
    upsert?: DesignationUpsertWithWhereUniqueWithoutUpdatedInput | DesignationUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: DesignationCreateManyUpdatedInputEnvelope
    set?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    disconnect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    delete?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    update?: DesignationUpdateWithWhereUniqueWithoutUpdatedInput | DesignationUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: DesignationUpdateManyWithWhereWithoutUpdatedInput | DesignationUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
  }

  export type DesignationUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<DesignationCreateWithoutDeletedInput, DesignationUncheckedCreateWithoutDeletedInput> | DesignationCreateWithoutDeletedInput[] | DesignationUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutDeletedInput | DesignationCreateOrConnectWithoutDeletedInput[]
    upsert?: DesignationUpsertWithWhereUniqueWithoutDeletedInput | DesignationUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: DesignationCreateManyDeletedInputEnvelope
    set?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    disconnect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    delete?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    update?: DesignationUpdateWithWhereUniqueWithoutDeletedInput | DesignationUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: DesignationUpdateManyWithWhereWithoutDeletedInput | DesignationUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
  }

  export type AuditLogUpdateManyWithoutUserNestedInput = {
    create?: XOR<AuditLogCreateWithoutUserInput, AuditLogUncheckedCreateWithoutUserInput> | AuditLogCreateWithoutUserInput[] | AuditLogUncheckedCreateWithoutUserInput[]
    connectOrCreate?: AuditLogCreateOrConnectWithoutUserInput | AuditLogCreateOrConnectWithoutUserInput[]
    upsert?: AuditLogUpsertWithWhereUniqueWithoutUserInput | AuditLogUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: AuditLogCreateManyUserInputEnvelope
    set?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    disconnect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    delete?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    connect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    update?: AuditLogUpdateWithWhereUniqueWithoutUserInput | AuditLogUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: AuditLogUpdateManyWithWhereWithoutUserInput | AuditLogUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: AuditLogScalarWhereInput | AuditLogScalarWhereInput[]
  }

  export type CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput = {
    create?: XOR<CategoryTypesCreateWithoutCreated_category_typesInput, CategoryTypesUncheckedCreateWithoutCreated_category_typesInput> | CategoryTypesCreateWithoutCreated_category_typesInput[] | CategoryTypesUncheckedCreateWithoutCreated_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutCreated_category_typesInput | CategoryTypesCreateOrConnectWithoutCreated_category_typesInput[]
    upsert?: CategoryTypesUpsertWithWhereUniqueWithoutCreated_category_typesInput | CategoryTypesUpsertWithWhereUniqueWithoutCreated_category_typesInput[]
    createMany?: CategoryTypesCreateManyCreated_category_typesInputEnvelope
    set?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    disconnect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    delete?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    update?: CategoryTypesUpdateWithWhereUniqueWithoutCreated_category_typesInput | CategoryTypesUpdateWithWhereUniqueWithoutCreated_category_typesInput[]
    updateMany?: CategoryTypesUpdateManyWithWhereWithoutCreated_category_typesInput | CategoryTypesUpdateManyWithWhereWithoutCreated_category_typesInput[]
    deleteMany?: CategoryTypesScalarWhereInput | CategoryTypesScalarWhereInput[]
  }

  export type CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput = {
    create?: XOR<CategoryTypesCreateWithoutUpdated_category_typesInput, CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput> | CategoryTypesCreateWithoutUpdated_category_typesInput[] | CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutUpdated_category_typesInput | CategoryTypesCreateOrConnectWithoutUpdated_category_typesInput[]
    upsert?: CategoryTypesUpsertWithWhereUniqueWithoutUpdated_category_typesInput | CategoryTypesUpsertWithWhereUniqueWithoutUpdated_category_typesInput[]
    createMany?: CategoryTypesCreateManyUpdated_category_typesInputEnvelope
    set?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    disconnect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    delete?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    update?: CategoryTypesUpdateWithWhereUniqueWithoutUpdated_category_typesInput | CategoryTypesUpdateWithWhereUniqueWithoutUpdated_category_typesInput[]
    updateMany?: CategoryTypesUpdateManyWithWhereWithoutUpdated_category_typesInput | CategoryTypesUpdateManyWithWhereWithoutUpdated_category_typesInput[]
    deleteMany?: CategoryTypesScalarWhereInput | CategoryTypesScalarWhereInput[]
  }

  export type CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput = {
    create?: XOR<CategoryTypesCreateWithoutDeleted_category_typesInput, CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput> | CategoryTypesCreateWithoutDeleted_category_typesInput[] | CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutDeleted_category_typesInput | CategoryTypesCreateOrConnectWithoutDeleted_category_typesInput[]
    upsert?: CategoryTypesUpsertWithWhereUniqueWithoutDeleted_category_typesInput | CategoryTypesUpsertWithWhereUniqueWithoutDeleted_category_typesInput[]
    createMany?: CategoryTypesCreateManyDeleted_category_typesInputEnvelope
    set?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    disconnect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    delete?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    update?: CategoryTypesUpdateWithWhereUniqueWithoutDeleted_category_typesInput | CategoryTypesUpdateWithWhereUniqueWithoutDeleted_category_typesInput[]
    updateMany?: CategoryTypesUpdateManyWithWhereWithoutDeleted_category_typesInput | CategoryTypesUpdateManyWithWhereWithoutDeleted_category_typesInput[]
    deleteMany?: CategoryTypesScalarWhereInput | CategoryTypesScalarWhereInput[]
  }

  export type CategoriesUpdateManyWithoutCreated_categoriesNestedInput = {
    create?: XOR<CategoriesCreateWithoutCreated_categoriesInput, CategoriesUncheckedCreateWithoutCreated_categoriesInput> | CategoriesCreateWithoutCreated_categoriesInput[] | CategoriesUncheckedCreateWithoutCreated_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutCreated_categoriesInput | CategoriesCreateOrConnectWithoutCreated_categoriesInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutCreated_categoriesInput | CategoriesUpsertWithWhereUniqueWithoutCreated_categoriesInput[]
    createMany?: CategoriesCreateManyCreated_categoriesInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutCreated_categoriesInput | CategoriesUpdateWithWhereUniqueWithoutCreated_categoriesInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutCreated_categoriesInput | CategoriesUpdateManyWithWhereWithoutCreated_categoriesInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type CategoriesUpdateManyWithoutUpdated_categoriesNestedInput = {
    create?: XOR<CategoriesCreateWithoutUpdated_categoriesInput, CategoriesUncheckedCreateWithoutUpdated_categoriesInput> | CategoriesCreateWithoutUpdated_categoriesInput[] | CategoriesUncheckedCreateWithoutUpdated_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutUpdated_categoriesInput | CategoriesCreateOrConnectWithoutUpdated_categoriesInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutUpdated_categoriesInput | CategoriesUpsertWithWhereUniqueWithoutUpdated_categoriesInput[]
    createMany?: CategoriesCreateManyUpdated_categoriesInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutUpdated_categoriesInput | CategoriesUpdateWithWhereUniqueWithoutUpdated_categoriesInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutUpdated_categoriesInput | CategoriesUpdateManyWithWhereWithoutUpdated_categoriesInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type CategoriesUpdateManyWithoutDeleted_categoriesNestedInput = {
    create?: XOR<CategoriesCreateWithoutDeleted_categoriesInput, CategoriesUncheckedCreateWithoutDeleted_categoriesInput> | CategoriesCreateWithoutDeleted_categoriesInput[] | CategoriesUncheckedCreateWithoutDeleted_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutDeleted_categoriesInput | CategoriesCreateOrConnectWithoutDeleted_categoriesInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutDeleted_categoriesInput | CategoriesUpsertWithWhereUniqueWithoutDeleted_categoriesInput[]
    createMany?: CategoriesCreateManyDeleted_categoriesInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutDeleted_categoriesInput | CategoriesUpdateWithWhereUniqueWithoutDeleted_categoriesInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutDeleted_categoriesInput | CategoriesUpdateManyWithWhereWithoutDeleted_categoriesInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput = {
    create?: XOR<ConfigurationsCreateWithoutCreated_configurationsInput, ConfigurationsUncheckedCreateWithoutCreated_configurationsInput> | ConfigurationsCreateWithoutCreated_configurationsInput[] | ConfigurationsUncheckedCreateWithoutCreated_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutCreated_configurationsInput | ConfigurationsCreateOrConnectWithoutCreated_configurationsInput[]
    upsert?: ConfigurationsUpsertWithWhereUniqueWithoutCreated_configurationsInput | ConfigurationsUpsertWithWhereUniqueWithoutCreated_configurationsInput[]
    createMany?: ConfigurationsCreateManyCreated_configurationsInputEnvelope
    set?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    disconnect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    delete?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    update?: ConfigurationsUpdateWithWhereUniqueWithoutCreated_configurationsInput | ConfigurationsUpdateWithWhereUniqueWithoutCreated_configurationsInput[]
    updateMany?: ConfigurationsUpdateManyWithWhereWithoutCreated_configurationsInput | ConfigurationsUpdateManyWithWhereWithoutCreated_configurationsInput[]
    deleteMany?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
  }

  export type ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput = {
    create?: XOR<ConfigurationsCreateWithoutUpdated_configurationsInput, ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput> | ConfigurationsCreateWithoutUpdated_configurationsInput[] | ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutUpdated_configurationsInput | ConfigurationsCreateOrConnectWithoutUpdated_configurationsInput[]
    upsert?: ConfigurationsUpsertWithWhereUniqueWithoutUpdated_configurationsInput | ConfigurationsUpsertWithWhereUniqueWithoutUpdated_configurationsInput[]
    createMany?: ConfigurationsCreateManyUpdated_configurationsInputEnvelope
    set?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    disconnect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    delete?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    update?: ConfigurationsUpdateWithWhereUniqueWithoutUpdated_configurationsInput | ConfigurationsUpdateWithWhereUniqueWithoutUpdated_configurationsInput[]
    updateMany?: ConfigurationsUpdateManyWithWhereWithoutUpdated_configurationsInput | ConfigurationsUpdateManyWithWhereWithoutUpdated_configurationsInput[]
    deleteMany?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
  }

  export type ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput = {
    create?: XOR<ConfigurationsCreateWithoutDeleted_configurationsInput, ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput> | ConfigurationsCreateWithoutDeleted_configurationsInput[] | ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutDeleted_configurationsInput | ConfigurationsCreateOrConnectWithoutDeleted_configurationsInput[]
    upsert?: ConfigurationsUpsertWithWhereUniqueWithoutDeleted_configurationsInput | ConfigurationsUpsertWithWhereUniqueWithoutDeleted_configurationsInput[]
    createMany?: ConfigurationsCreateManyDeleted_configurationsInputEnvelope
    set?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    disconnect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    delete?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    update?: ConfigurationsUpdateWithWhereUniqueWithoutDeleted_configurationsInput | ConfigurationsUpdateWithWhereUniqueWithoutDeleted_configurationsInput[]
    updateMany?: ConfigurationsUpdateManyWithWhereWithoutDeleted_configurationsInput | ConfigurationsUpdateManyWithWhereWithoutDeleted_configurationsInput[]
    deleteMany?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
  }

  export type FinancialYearUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<FinancialYearCreateWithoutCreatedInput, FinancialYearUncheckedCreateWithoutCreatedInput> | FinancialYearCreateWithoutCreatedInput[] | FinancialYearUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutCreatedInput | FinancialYearCreateOrConnectWithoutCreatedInput[]
    upsert?: FinancialYearUpsertWithWhereUniqueWithoutCreatedInput | FinancialYearUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: FinancialYearCreateManyCreatedInputEnvelope
    set?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    disconnect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    delete?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    update?: FinancialYearUpdateWithWhereUniqueWithoutCreatedInput | FinancialYearUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: FinancialYearUpdateManyWithWhereWithoutCreatedInput | FinancialYearUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
  }

  export type FinancialYearUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<FinancialYearCreateWithoutUpdatedInput, FinancialYearUncheckedCreateWithoutUpdatedInput> | FinancialYearCreateWithoutUpdatedInput[] | FinancialYearUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutUpdatedInput | FinancialYearCreateOrConnectWithoutUpdatedInput[]
    upsert?: FinancialYearUpsertWithWhereUniqueWithoutUpdatedInput | FinancialYearUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: FinancialYearCreateManyUpdatedInputEnvelope
    set?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    disconnect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    delete?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    update?: FinancialYearUpdateWithWhereUniqueWithoutUpdatedInput | FinancialYearUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: FinancialYearUpdateManyWithWhereWithoutUpdatedInput | FinancialYearUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
  }

  export type FinancialYearUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<FinancialYearCreateWithoutDeletedInput, FinancialYearUncheckedCreateWithoutDeletedInput> | FinancialYearCreateWithoutDeletedInput[] | FinancialYearUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutDeletedInput | FinancialYearCreateOrConnectWithoutDeletedInput[]
    upsert?: FinancialYearUpsertWithWhereUniqueWithoutDeletedInput | FinancialYearUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: FinancialYearCreateManyDeletedInputEnvelope
    set?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    disconnect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    delete?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    update?: FinancialYearUpdateWithWhereUniqueWithoutDeletedInput | FinancialYearUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: FinancialYearUpdateManyWithWhereWithoutDeletedInput | FinancialYearUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
  }

  export type DocumentSequenceUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutCreatedInput, DocumentSequenceUncheckedCreateWithoutCreatedInput> | DocumentSequenceCreateWithoutCreatedInput[] | DocumentSequenceUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutCreatedInput | DocumentSequenceCreateOrConnectWithoutCreatedInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutCreatedInput | DocumentSequenceUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: DocumentSequenceCreateManyCreatedInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutCreatedInput | DocumentSequenceUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutCreatedInput | DocumentSequenceUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type DocumentSequenceUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutUpdatedInput, DocumentSequenceUncheckedCreateWithoutUpdatedInput> | DocumentSequenceCreateWithoutUpdatedInput[] | DocumentSequenceUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutUpdatedInput | DocumentSequenceCreateOrConnectWithoutUpdatedInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutUpdatedInput | DocumentSequenceUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: DocumentSequenceCreateManyUpdatedInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutUpdatedInput | DocumentSequenceUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutUpdatedInput | DocumentSequenceUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type DocumentSequenceUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutDeletedInput, DocumentSequenceUncheckedCreateWithoutDeletedInput> | DocumentSequenceCreateWithoutDeletedInput[] | DocumentSequenceUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutDeletedInput | DocumentSequenceCreateOrConnectWithoutDeletedInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutDeletedInput | DocumentSequenceUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: DocumentSequenceCreateManyDeletedInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutDeletedInput | DocumentSequenceUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutDeletedInput | DocumentSequenceUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutCreated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput> | DeviceRegistrationCreateWithoutCreated_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutCreated_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutCreated_device_registrationInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutCreated_device_registrationInput | DeviceRegistrationUpsertWithWhereUniqueWithoutCreated_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyCreated_device_registrationInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutCreated_device_registrationInput | DeviceRegistrationUpdateWithWhereUniqueWithoutCreated_device_registrationInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutCreated_device_registrationInput | DeviceRegistrationUpdateManyWithWhereWithoutCreated_device_registrationInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutUpdated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput> | DeviceRegistrationCreateWithoutUpdated_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutUpdated_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutUpdated_device_registrationInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutUpdated_device_registrationInput | DeviceRegistrationUpsertWithWhereUniqueWithoutUpdated_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyUpdated_device_registrationInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutUpdated_device_registrationInput | DeviceRegistrationUpdateWithWhereUniqueWithoutUpdated_device_registrationInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutUpdated_device_registrationInput | DeviceRegistrationUpdateManyWithWhereWithoutUpdated_device_registrationInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutDeleted_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput> | DeviceRegistrationCreateWithoutDeleted_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutDeleted_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutDeleted_device_registrationInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutDeleted_device_registrationInput | DeviceRegistrationUpsertWithWhereUniqueWithoutDeleted_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyDeleted_device_registrationInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutDeleted_device_registrationInput | DeviceRegistrationUpdateWithWhereUniqueWithoutDeleted_device_registrationInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutDeleted_device_registrationInput | DeviceRegistrationUpdateManyWithWhereWithoutDeleted_device_registrationInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type DeviceRegistrationUpdateManyWithoutUserNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutUserInput, DeviceRegistrationUncheckedCreateWithoutUserInput> | DeviceRegistrationCreateWithoutUserInput[] | DeviceRegistrationUncheckedCreateWithoutUserInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutUserInput | DeviceRegistrationCreateOrConnectWithoutUserInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutUserInput | DeviceRegistrationUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: DeviceRegistrationCreateManyUserInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutUserInput | DeviceRegistrationUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutUserInput | DeviceRegistrationUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type ImportJobUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<ImportJobCreateWithoutCreatedInput, ImportJobUncheckedCreateWithoutCreatedInput> | ImportJobCreateWithoutCreatedInput[] | ImportJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutCreatedInput | ImportJobCreateOrConnectWithoutCreatedInput[]
    upsert?: ImportJobUpsertWithWhereUniqueWithoutCreatedInput | ImportJobUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: ImportJobCreateManyCreatedInputEnvelope
    set?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    disconnect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    delete?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    update?: ImportJobUpdateWithWhereUniqueWithoutCreatedInput | ImportJobUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: ImportJobUpdateManyWithWhereWithoutCreatedInput | ImportJobUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
  }

  export type ImportJobUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<ImportJobCreateWithoutUpdatedInput, ImportJobUncheckedCreateWithoutUpdatedInput> | ImportJobCreateWithoutUpdatedInput[] | ImportJobUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutUpdatedInput | ImportJobCreateOrConnectWithoutUpdatedInput[]
    upsert?: ImportJobUpsertWithWhereUniqueWithoutUpdatedInput | ImportJobUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: ImportJobCreateManyUpdatedInputEnvelope
    set?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    disconnect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    delete?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    update?: ImportJobUpdateWithWhereUniqueWithoutUpdatedInput | ImportJobUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: ImportJobUpdateManyWithWhereWithoutUpdatedInput | ImportJobUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
  }

  export type ImportJobUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<ImportJobCreateWithoutDeletedInput, ImportJobUncheckedCreateWithoutDeletedInput> | ImportJobCreateWithoutDeletedInput[] | ImportJobUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutDeletedInput | ImportJobCreateOrConnectWithoutDeletedInput[]
    upsert?: ImportJobUpsertWithWhereUniqueWithoutDeletedInput | ImportJobUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: ImportJobCreateManyDeletedInputEnvelope
    set?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    disconnect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    delete?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    update?: ImportJobUpdateWithWhereUniqueWithoutDeletedInput | ImportJobUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: ImportJobUpdateManyWithWhereWithoutDeletedInput | ImportJobUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
  }

  export type IntFieldUpdateOperationsInput = {
    set?: number
    increment?: number
    decrement?: number
    multiply?: number
    divide?: number
  }

  export type NullableIntFieldUpdateOperationsInput = {
    set?: number | null
    increment?: number
    decrement?: number
    multiply?: number
    divide?: number
  }

  export type UserDetailUncheckedUpdateOneWithoutUserNestedInput = {
    create?: XOR<UserDetailCreateWithoutUserInput, UserDetailUncheckedCreateWithoutUserInput>
    connectOrCreate?: UserDetailCreateOrConnectWithoutUserInput
    upsert?: UserDetailUpsertWithoutUserInput
    disconnect?: UserDetailWhereInput | boolean
    delete?: UserDetailWhereInput | boolean
    connect?: UserDetailWhereUniqueInput
    update?: XOR<XOR<UserDetailUpdateToOneWithWhereWithoutUserInput, UserDetailUpdateWithoutUserInput>, UserDetailUncheckedUpdateWithoutUserInput>
  }

  export type RequestLogUncheckedUpdateManyWithoutUserNestedInput = {
    create?: XOR<RequestLogCreateWithoutUserInput, RequestLogUncheckedCreateWithoutUserInput> | RequestLogCreateWithoutUserInput[] | RequestLogUncheckedCreateWithoutUserInput[]
    connectOrCreate?: RequestLogCreateOrConnectWithoutUserInput | RequestLogCreateOrConnectWithoutUserInput[]
    upsert?: RequestLogUpsertWithWhereUniqueWithoutUserInput | RequestLogUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: RequestLogCreateManyUserInputEnvelope
    set?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    disconnect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    delete?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    connect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    update?: RequestLogUpdateWithWhereUniqueWithoutUserInput | RequestLogUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: RequestLogUpdateManyWithWhereWithoutUserInput | RequestLogUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: RequestLogScalarWhereInput | RequestLogScalarWhereInput[]
  }

  export type UserRolesUncheckedUpdateManyWithoutUserNestedInput = {
    create?: XOR<UserRolesCreateWithoutUserInput, UserRolesUncheckedCreateWithoutUserInput> | UserRolesCreateWithoutUserInput[] | UserRolesUncheckedCreateWithoutUserInput[]
    connectOrCreate?: UserRolesCreateOrConnectWithoutUserInput | UserRolesCreateOrConnectWithoutUserInput[]
    upsert?: UserRolesUpsertWithWhereUniqueWithoutUserInput | UserRolesUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: UserRolesCreateManyUserInputEnvelope
    set?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    disconnect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    delete?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    connect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    update?: UserRolesUpdateWithWhereUniqueWithoutUserInput | UserRolesUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: UserRolesUpdateManyWithWhereWithoutUserInput | UserRolesUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: UserRolesScalarWhereInput | UserRolesScalarWhereInput[]
  }

  export type UserPermissionsUncheckedUpdateManyWithoutUserNestedInput = {
    create?: XOR<UserPermissionsCreateWithoutUserInput, UserPermissionsUncheckedCreateWithoutUserInput> | UserPermissionsCreateWithoutUserInput[] | UserPermissionsUncheckedCreateWithoutUserInput[]
    connectOrCreate?: UserPermissionsCreateOrConnectWithoutUserInput | UserPermissionsCreateOrConnectWithoutUserInput[]
    upsert?: UserPermissionsUpsertWithWhereUniqueWithoutUserInput | UserPermissionsUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: UserPermissionsCreateManyUserInputEnvelope
    set?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    disconnect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    delete?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    connect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    update?: UserPermissionsUpdateWithWhereUniqueWithoutUserInput | UserPermissionsUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: UserPermissionsUpdateManyWithWhereWithoutUserInput | UserPermissionsUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: UserPermissionsScalarWhereInput | UserPermissionsScalarWhereInput[]
  }

  export type OtpUncheckedUpdateManyWithoutUserNestedInput = {
    create?: XOR<OtpCreateWithoutUserInput, OtpUncheckedCreateWithoutUserInput> | OtpCreateWithoutUserInput[] | OtpUncheckedCreateWithoutUserInput[]
    connectOrCreate?: OtpCreateOrConnectWithoutUserInput | OtpCreateOrConnectWithoutUserInput[]
    upsert?: OtpUpsertWithWhereUniqueWithoutUserInput | OtpUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: OtpCreateManyUserInputEnvelope
    set?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
    disconnect?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
    delete?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
    connect?: OtpWhereUniqueInput | OtpWhereUniqueInput[]
    update?: OtpUpdateWithWhereUniqueWithoutUserInput | OtpUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: OtpUpdateManyWithWhereWithoutUserInput | OtpUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: OtpScalarWhereInput | OtpScalarWhereInput[]
  }

  export type UserUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<UserCreateWithoutCreatedInput, UserUncheckedCreateWithoutCreatedInput> | UserCreateWithoutCreatedInput[] | UserUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutCreatedInput | UserCreateOrConnectWithoutCreatedInput[]
    upsert?: UserUpsertWithWhereUniqueWithoutCreatedInput | UserUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: UserCreateManyCreatedInputEnvelope
    set?: UserWhereUniqueInput | UserWhereUniqueInput[]
    disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    update?: UserUpdateWithWhereUniqueWithoutCreatedInput | UserUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: UserUpdateManyWithWhereWithoutCreatedInput | UserUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
  }

  export type UserUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<UserCreateWithoutUpdatedInput, UserUncheckedCreateWithoutUpdatedInput> | UserCreateWithoutUpdatedInput[] | UserUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutUpdatedInput | UserCreateOrConnectWithoutUpdatedInput[]
    upsert?: UserUpsertWithWhereUniqueWithoutUpdatedInput | UserUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: UserCreateManyUpdatedInputEnvelope
    set?: UserWhereUniqueInput | UserWhereUniqueInput[]
    disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    update?: UserUpdateWithWhereUniqueWithoutUpdatedInput | UserUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: UserUpdateManyWithWhereWithoutUpdatedInput | UserUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
  }

  export type UserUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<UserCreateWithoutDeletedInput, UserUncheckedCreateWithoutDeletedInput> | UserCreateWithoutDeletedInput[] | UserUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: UserCreateOrConnectWithoutDeletedInput | UserCreateOrConnectWithoutDeletedInput[]
    upsert?: UserUpsertWithWhereUniqueWithoutDeletedInput | UserUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: UserCreateManyDeletedInputEnvelope
    set?: UserWhereUniqueInput | UserWhereUniqueInput[]
    disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    update?: UserUpdateWithWhereUniqueWithoutDeletedInput | UserUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: UserUpdateManyWithWhereWithoutDeletedInput | UserUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
  }

  export type UserDetailUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<UserDetailCreateWithoutCreatedInput, UserDetailUncheckedCreateWithoutCreatedInput> | UserDetailCreateWithoutCreatedInput[] | UserDetailUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutCreatedInput | UserDetailCreateOrConnectWithoutCreatedInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutCreatedInput | UserDetailUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: UserDetailCreateManyCreatedInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutCreatedInput | UserDetailUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutCreatedInput | UserDetailUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<UserDetailCreateWithoutUpdatedInput, UserDetailUncheckedCreateWithoutUpdatedInput> | UserDetailCreateWithoutUpdatedInput[] | UserDetailUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutUpdatedInput | UserDetailCreateOrConnectWithoutUpdatedInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutUpdatedInput | UserDetailUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: UserDetailCreateManyUpdatedInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutUpdatedInput | UserDetailUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutUpdatedInput | UserDetailUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type UserDetailUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<UserDetailCreateWithoutDeletedInput, UserDetailUncheckedCreateWithoutDeletedInput> | UserDetailCreateWithoutDeletedInput[] | UserDetailUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDeletedInput | UserDetailCreateOrConnectWithoutDeletedInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutDeletedInput | UserDetailUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: UserDetailCreateManyDeletedInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutDeletedInput | UserDetailUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutDeletedInput | UserDetailUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type RoleUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<RoleCreateWithoutCreatedInput, RoleUncheckedCreateWithoutCreatedInput> | RoleCreateWithoutCreatedInput[] | RoleUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutCreatedInput | RoleCreateOrConnectWithoutCreatedInput[]
    upsert?: RoleUpsertWithWhereUniqueWithoutCreatedInput | RoleUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: RoleCreateManyCreatedInputEnvelope
    set?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    disconnect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    delete?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    update?: RoleUpdateWithWhereUniqueWithoutCreatedInput | RoleUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: RoleUpdateManyWithWhereWithoutCreatedInput | RoleUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: RoleScalarWhereInput | RoleScalarWhereInput[]
  }

  export type RoleUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<RoleCreateWithoutUpdatedInput, RoleUncheckedCreateWithoutUpdatedInput> | RoleCreateWithoutUpdatedInput[] | RoleUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutUpdatedInput | RoleCreateOrConnectWithoutUpdatedInput[]
    upsert?: RoleUpsertWithWhereUniqueWithoutUpdatedInput | RoleUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: RoleCreateManyUpdatedInputEnvelope
    set?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    disconnect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    delete?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    update?: RoleUpdateWithWhereUniqueWithoutUpdatedInput | RoleUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: RoleUpdateManyWithWhereWithoutUpdatedInput | RoleUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: RoleScalarWhereInput | RoleScalarWhereInput[]
  }

  export type RoleUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<RoleCreateWithoutDeletedInput, RoleUncheckedCreateWithoutDeletedInput> | RoleCreateWithoutDeletedInput[] | RoleUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutDeletedInput | RoleCreateOrConnectWithoutDeletedInput[]
    upsert?: RoleUpsertWithWhereUniqueWithoutDeletedInput | RoleUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: RoleCreateManyDeletedInputEnvelope
    set?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    disconnect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    delete?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    update?: RoleUpdateWithWhereUniqueWithoutDeletedInput | RoleUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: RoleUpdateManyWithWhereWithoutDeletedInput | RoleUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: RoleScalarWhereInput | RoleScalarWhereInput[]
  }

  export type LanguageUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<LanguageCreateWithoutCreatedInput, LanguageUncheckedCreateWithoutCreatedInput> | LanguageCreateWithoutCreatedInput[] | LanguageUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutCreatedInput | LanguageCreateOrConnectWithoutCreatedInput[]
    upsert?: LanguageUpsertWithWhereUniqueWithoutCreatedInput | LanguageUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: LanguageCreateManyCreatedInputEnvelope
    set?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    disconnect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    delete?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    update?: LanguageUpdateWithWhereUniqueWithoutCreatedInput | LanguageUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: LanguageUpdateManyWithWhereWithoutCreatedInput | LanguageUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
  }

  export type LanguageUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<LanguageCreateWithoutUpdatedInput, LanguageUncheckedCreateWithoutUpdatedInput> | LanguageCreateWithoutUpdatedInput[] | LanguageUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutUpdatedInput | LanguageCreateOrConnectWithoutUpdatedInput[]
    upsert?: LanguageUpsertWithWhereUniqueWithoutUpdatedInput | LanguageUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: LanguageCreateManyUpdatedInputEnvelope
    set?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    disconnect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    delete?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    update?: LanguageUpdateWithWhereUniqueWithoutUpdatedInput | LanguageUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: LanguageUpdateManyWithWhereWithoutUpdatedInput | LanguageUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
  }

  export type LanguageUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<LanguageCreateWithoutDeletedInput, LanguageUncheckedCreateWithoutDeletedInput> | LanguageCreateWithoutDeletedInput[] | LanguageUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutDeletedInput | LanguageCreateOrConnectWithoutDeletedInput[]
    upsert?: LanguageUpsertWithWhereUniqueWithoutDeletedInput | LanguageUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: LanguageCreateManyDeletedInputEnvelope
    set?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    disconnect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    delete?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    update?: LanguageUpdateWithWhereUniqueWithoutDeletedInput | LanguageUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: LanguageUpdateManyWithWhereWithoutDeletedInput | LanguageUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
  }

  export type MenusUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<MenusCreateWithoutCreatedInput, MenusUncheckedCreateWithoutCreatedInput> | MenusCreateWithoutCreatedInput[] | MenusUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutCreatedInput | MenusCreateOrConnectWithoutCreatedInput[]
    upsert?: MenusUpsertWithWhereUniqueWithoutCreatedInput | MenusUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: MenusCreateManyCreatedInputEnvelope
    set?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    disconnect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    delete?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    update?: MenusUpdateWithWhereUniqueWithoutCreatedInput | MenusUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: MenusUpdateManyWithWhereWithoutCreatedInput | MenusUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: MenusScalarWhereInput | MenusScalarWhereInput[]
  }

  export type MenusUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<MenusCreateWithoutUpdatedInput, MenusUncheckedCreateWithoutUpdatedInput> | MenusCreateWithoutUpdatedInput[] | MenusUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutUpdatedInput | MenusCreateOrConnectWithoutUpdatedInput[]
    upsert?: MenusUpsertWithWhereUniqueWithoutUpdatedInput | MenusUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: MenusCreateManyUpdatedInputEnvelope
    set?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    disconnect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    delete?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    update?: MenusUpdateWithWhereUniqueWithoutUpdatedInput | MenusUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: MenusUpdateManyWithWhereWithoutUpdatedInput | MenusUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: MenusScalarWhereInput | MenusScalarWhereInput[]
  }

  export type MenusUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<MenusCreateWithoutDeletedInput, MenusUncheckedCreateWithoutDeletedInput> | MenusCreateWithoutDeletedInput[] | MenusUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutDeletedInput | MenusCreateOrConnectWithoutDeletedInput[]
    upsert?: MenusUpsertWithWhereUniqueWithoutDeletedInput | MenusUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: MenusCreateManyDeletedInputEnvelope
    set?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    disconnect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    delete?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    update?: MenusUpdateWithWhereUniqueWithoutDeletedInput | MenusUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: MenusUpdateManyWithWhereWithoutDeletedInput | MenusUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: MenusScalarWhereInput | MenusScalarWhereInput[]
  }

  export type MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<MenuItemsCreateWithoutCreatedInput, MenuItemsUncheckedCreateWithoutCreatedInput> | MenuItemsCreateWithoutCreatedInput[] | MenuItemsUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutCreatedInput | MenuItemsCreateOrConnectWithoutCreatedInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutCreatedInput | MenuItemsUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: MenuItemsCreateManyCreatedInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutCreatedInput | MenuItemsUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutCreatedInput | MenuItemsUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<MenuItemsCreateWithoutUpdatedInput, MenuItemsUncheckedCreateWithoutUpdatedInput> | MenuItemsCreateWithoutUpdatedInput[] | MenuItemsUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutUpdatedInput | MenuItemsCreateOrConnectWithoutUpdatedInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutUpdatedInput | MenuItemsUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: MenuItemsCreateManyUpdatedInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutUpdatedInput | MenuItemsUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutUpdatedInput | MenuItemsUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<MenuItemsCreateWithoutDeletedInput, MenuItemsUncheckedCreateWithoutDeletedInput> | MenuItemsCreateWithoutDeletedInput[] | MenuItemsUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutDeletedInput | MenuItemsCreateOrConnectWithoutDeletedInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutDeletedInput | MenuItemsUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: MenuItemsCreateManyDeletedInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutDeletedInput | MenuItemsUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutDeletedInput | MenuItemsUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutCreatedInput, EmailTemplateUncheckedCreateWithoutCreatedInput> | EmailTemplateCreateWithoutCreatedInput[] | EmailTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutCreatedInput | EmailTemplateCreateOrConnectWithoutCreatedInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutCreatedInput | EmailTemplateUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: EmailTemplateCreateManyCreatedInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutCreatedInput | EmailTemplateUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutCreatedInput | EmailTemplateUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutUpdatedInput, EmailTemplateUncheckedCreateWithoutUpdatedInput> | EmailTemplateCreateWithoutUpdatedInput[] | EmailTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutUpdatedInput | EmailTemplateCreateOrConnectWithoutUpdatedInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutUpdatedInput | EmailTemplateUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: EmailTemplateCreateManyUpdatedInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutUpdatedInput | EmailTemplateUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutUpdatedInput | EmailTemplateUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutDeletedInput, EmailTemplateUncheckedCreateWithoutDeletedInput> | EmailTemplateCreateWithoutDeletedInput[] | EmailTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutDeletedInput | EmailTemplateCreateOrConnectWithoutDeletedInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutDeletedInput | EmailTemplateUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: EmailTemplateCreateManyDeletedInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutDeletedInput | EmailTemplateUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutDeletedInput | EmailTemplateUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutCreatedInput, EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput> | EmailTemplateAssignmentCreateWithoutCreatedInput[] | EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutCreatedInput | EmailTemplateAssignmentCreateOrConnectWithoutCreatedInput[]
    upsert?: EmailTemplateAssignmentUpsertWithWhereUniqueWithoutCreatedInput | EmailTemplateAssignmentUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: EmailTemplateAssignmentCreateManyCreatedInputEnvelope
    set?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    disconnect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    delete?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    update?: EmailTemplateAssignmentUpdateWithWhereUniqueWithoutCreatedInput | EmailTemplateAssignmentUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: EmailTemplateAssignmentUpdateManyWithWhereWithoutCreatedInput | EmailTemplateAssignmentUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: EmailTemplateAssignmentScalarWhereInput | EmailTemplateAssignmentScalarWhereInput[]
  }

  export type EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<EmailProcessJobCreateWithoutCreatedInput, EmailProcessJobUncheckedCreateWithoutCreatedInput> | EmailProcessJobCreateWithoutCreatedInput[] | EmailProcessJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: EmailProcessJobCreateOrConnectWithoutCreatedInput | EmailProcessJobCreateOrConnectWithoutCreatedInput[]
    upsert?: EmailProcessJobUpsertWithWhereUniqueWithoutCreatedInput | EmailProcessJobUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: EmailProcessJobCreateManyCreatedInputEnvelope
    set?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    disconnect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    delete?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    connect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    update?: EmailProcessJobUpdateWithWhereUniqueWithoutCreatedInput | EmailProcessJobUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: EmailProcessJobUpdateManyWithWhereWithoutCreatedInput | EmailProcessJobUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: EmailProcessJobScalarWhereInput | EmailProcessJobScalarWhereInput[]
  }

  export type NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<NotificationJobCreateWithoutCreatedInput, NotificationJobUncheckedCreateWithoutCreatedInput> | NotificationJobCreateWithoutCreatedInput[] | NotificationJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: NotificationJobCreateOrConnectWithoutCreatedInput | NotificationJobCreateOrConnectWithoutCreatedInput[]
    upsert?: NotificationJobUpsertWithWhereUniqueWithoutCreatedInput | NotificationJobUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: NotificationJobCreateManyCreatedInputEnvelope
    set?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    disconnect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    delete?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    connect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    update?: NotificationJobUpdateWithWhereUniqueWithoutCreatedInput | NotificationJobUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: NotificationJobUpdateManyWithWhereWithoutCreatedInput | NotificationJobUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: NotificationJobScalarWhereInput | NotificationJobScalarWhereInput[]
  }

  export type ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutCreatedInput, ImportTemplateUncheckedCreateWithoutCreatedInput> | ImportTemplateCreateWithoutCreatedInput[] | ImportTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutCreatedInput | ImportTemplateCreateOrConnectWithoutCreatedInput[]
    upsert?: ImportTemplateUpsertWithWhereUniqueWithoutCreatedInput | ImportTemplateUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: ImportTemplateCreateManyCreatedInputEnvelope
    set?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    disconnect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    delete?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    update?: ImportTemplateUpdateWithWhereUniqueWithoutCreatedInput | ImportTemplateUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: ImportTemplateUpdateManyWithWhereWithoutCreatedInput | ImportTemplateUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
  }

  export type ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutUpdatedInput, ImportTemplateUncheckedCreateWithoutUpdatedInput> | ImportTemplateCreateWithoutUpdatedInput[] | ImportTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutUpdatedInput | ImportTemplateCreateOrConnectWithoutUpdatedInput[]
    upsert?: ImportTemplateUpsertWithWhereUniqueWithoutUpdatedInput | ImportTemplateUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: ImportTemplateCreateManyUpdatedInputEnvelope
    set?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    disconnect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    delete?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    update?: ImportTemplateUpdateWithWhereUniqueWithoutUpdatedInput | ImportTemplateUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: ImportTemplateUpdateManyWithWhereWithoutUpdatedInput | ImportTemplateUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
  }

  export type ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutDeletedInput, ImportTemplateUncheckedCreateWithoutDeletedInput> | ImportTemplateCreateWithoutDeletedInput[] | ImportTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutDeletedInput | ImportTemplateCreateOrConnectWithoutDeletedInput[]
    upsert?: ImportTemplateUpsertWithWhereUniqueWithoutDeletedInput | ImportTemplateUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: ImportTemplateCreateManyDeletedInputEnvelope
    set?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    disconnect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    delete?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    update?: ImportTemplateUpdateWithWhereUniqueWithoutDeletedInput | ImportTemplateUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: ImportTemplateUpdateManyWithWhereWithoutDeletedInput | ImportTemplateUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
  }

  export type ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutCreatedInput, ExportTemplateUncheckedCreateWithoutCreatedInput> | ExportTemplateCreateWithoutCreatedInput[] | ExportTemplateUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutCreatedInput | ExportTemplateCreateOrConnectWithoutCreatedInput[]
    upsert?: ExportTemplateUpsertWithWhereUniqueWithoutCreatedInput | ExportTemplateUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: ExportTemplateCreateManyCreatedInputEnvelope
    set?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    disconnect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    delete?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    update?: ExportTemplateUpdateWithWhereUniqueWithoutCreatedInput | ExportTemplateUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: ExportTemplateUpdateManyWithWhereWithoutCreatedInput | ExportTemplateUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
  }

  export type ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutUpdatedInput, ExportTemplateUncheckedCreateWithoutUpdatedInput> | ExportTemplateCreateWithoutUpdatedInput[] | ExportTemplateUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutUpdatedInput | ExportTemplateCreateOrConnectWithoutUpdatedInput[]
    upsert?: ExportTemplateUpsertWithWhereUniqueWithoutUpdatedInput | ExportTemplateUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: ExportTemplateCreateManyUpdatedInputEnvelope
    set?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    disconnect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    delete?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    update?: ExportTemplateUpdateWithWhereUniqueWithoutUpdatedInput | ExportTemplateUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: ExportTemplateUpdateManyWithWhereWithoutUpdatedInput | ExportTemplateUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
  }

  export type ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutDeletedInput, ExportTemplateUncheckedCreateWithoutDeletedInput> | ExportTemplateCreateWithoutDeletedInput[] | ExportTemplateUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutDeletedInput | ExportTemplateCreateOrConnectWithoutDeletedInput[]
    upsert?: ExportTemplateUpsertWithWhereUniqueWithoutDeletedInput | ExportTemplateUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: ExportTemplateCreateManyDeletedInputEnvelope
    set?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    disconnect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    delete?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    update?: ExportTemplateUpdateWithWhereUniqueWithoutDeletedInput | ExportTemplateUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: ExportTemplateUpdateManyWithWhereWithoutDeletedInput | ExportTemplateUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
  }

  export type DepartmentUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<DepartmentCreateWithoutCreatedInput, DepartmentUncheckedCreateWithoutCreatedInput> | DepartmentCreateWithoutCreatedInput[] | DepartmentUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutCreatedInput | DepartmentCreateOrConnectWithoutCreatedInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutCreatedInput | DepartmentUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: DepartmentCreateManyCreatedInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutCreatedInput | DepartmentUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutCreatedInput | DepartmentUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput = {
    create?: XOR<DepartmentCreateWithoutDepartment_headInput, DepartmentUncheckedCreateWithoutDepartment_headInput> | DepartmentCreateWithoutDepartment_headInput[] | DepartmentUncheckedCreateWithoutDepartment_headInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutDepartment_headInput | DepartmentCreateOrConnectWithoutDepartment_headInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutDepartment_headInput | DepartmentUpsertWithWhereUniqueWithoutDepartment_headInput[]
    createMany?: DepartmentCreateManyDepartment_headInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutDepartment_headInput | DepartmentUpdateWithWhereUniqueWithoutDepartment_headInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutDepartment_headInput | DepartmentUpdateManyWithWhereWithoutDepartment_headInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<DepartmentCreateWithoutUpdatedInput, DepartmentUncheckedCreateWithoutUpdatedInput> | DepartmentCreateWithoutUpdatedInput[] | DepartmentUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutUpdatedInput | DepartmentCreateOrConnectWithoutUpdatedInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutUpdatedInput | DepartmentUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: DepartmentCreateManyUpdatedInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutUpdatedInput | DepartmentUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutUpdatedInput | DepartmentUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type DepartmentUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<DepartmentCreateWithoutDeletedInput, DepartmentUncheckedCreateWithoutDeletedInput> | DepartmentCreateWithoutDeletedInput[] | DepartmentUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutDeletedInput | DepartmentCreateOrConnectWithoutDeletedInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutDeletedInput | DepartmentUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: DepartmentCreateManyDeletedInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutDeletedInput | DepartmentUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutDeletedInput | DepartmentUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type DesignationUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<DesignationCreateWithoutCreatedInput, DesignationUncheckedCreateWithoutCreatedInput> | DesignationCreateWithoutCreatedInput[] | DesignationUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutCreatedInput | DesignationCreateOrConnectWithoutCreatedInput[]
    upsert?: DesignationUpsertWithWhereUniqueWithoutCreatedInput | DesignationUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: DesignationCreateManyCreatedInputEnvelope
    set?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    disconnect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    delete?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    update?: DesignationUpdateWithWhereUniqueWithoutCreatedInput | DesignationUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: DesignationUpdateManyWithWhereWithoutCreatedInput | DesignationUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
  }

  export type DesignationUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<DesignationCreateWithoutUpdatedInput, DesignationUncheckedCreateWithoutUpdatedInput> | DesignationCreateWithoutUpdatedInput[] | DesignationUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutUpdatedInput | DesignationCreateOrConnectWithoutUpdatedInput[]
    upsert?: DesignationUpsertWithWhereUniqueWithoutUpdatedInput | DesignationUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: DesignationCreateManyUpdatedInputEnvelope
    set?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    disconnect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    delete?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    update?: DesignationUpdateWithWhereUniqueWithoutUpdatedInput | DesignationUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: DesignationUpdateManyWithWhereWithoutUpdatedInput | DesignationUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
  }

  export type DesignationUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<DesignationCreateWithoutDeletedInput, DesignationUncheckedCreateWithoutDeletedInput> | DesignationCreateWithoutDeletedInput[] | DesignationUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutDeletedInput | DesignationCreateOrConnectWithoutDeletedInput[]
    upsert?: DesignationUpsertWithWhereUniqueWithoutDeletedInput | DesignationUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: DesignationCreateManyDeletedInputEnvelope
    set?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    disconnect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    delete?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    update?: DesignationUpdateWithWhereUniqueWithoutDeletedInput | DesignationUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: DesignationUpdateManyWithWhereWithoutDeletedInput | DesignationUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
  }

  export type AuditLogUncheckedUpdateManyWithoutUserNestedInput = {
    create?: XOR<AuditLogCreateWithoutUserInput, AuditLogUncheckedCreateWithoutUserInput> | AuditLogCreateWithoutUserInput[] | AuditLogUncheckedCreateWithoutUserInput[]
    connectOrCreate?: AuditLogCreateOrConnectWithoutUserInput | AuditLogCreateOrConnectWithoutUserInput[]
    upsert?: AuditLogUpsertWithWhereUniqueWithoutUserInput | AuditLogUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: AuditLogCreateManyUserInputEnvelope
    set?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    disconnect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    delete?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    connect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    update?: AuditLogUpdateWithWhereUniqueWithoutUserInput | AuditLogUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: AuditLogUpdateManyWithWhereWithoutUserInput | AuditLogUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: AuditLogScalarWhereInput | AuditLogScalarWhereInput[]
  }

  export type CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput = {
    create?: XOR<CategoryTypesCreateWithoutCreated_category_typesInput, CategoryTypesUncheckedCreateWithoutCreated_category_typesInput> | CategoryTypesCreateWithoutCreated_category_typesInput[] | CategoryTypesUncheckedCreateWithoutCreated_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutCreated_category_typesInput | CategoryTypesCreateOrConnectWithoutCreated_category_typesInput[]
    upsert?: CategoryTypesUpsertWithWhereUniqueWithoutCreated_category_typesInput | CategoryTypesUpsertWithWhereUniqueWithoutCreated_category_typesInput[]
    createMany?: CategoryTypesCreateManyCreated_category_typesInputEnvelope
    set?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    disconnect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    delete?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    update?: CategoryTypesUpdateWithWhereUniqueWithoutCreated_category_typesInput | CategoryTypesUpdateWithWhereUniqueWithoutCreated_category_typesInput[]
    updateMany?: CategoryTypesUpdateManyWithWhereWithoutCreated_category_typesInput | CategoryTypesUpdateManyWithWhereWithoutCreated_category_typesInput[]
    deleteMany?: CategoryTypesScalarWhereInput | CategoryTypesScalarWhereInput[]
  }

  export type CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput = {
    create?: XOR<CategoryTypesCreateWithoutUpdated_category_typesInput, CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput> | CategoryTypesCreateWithoutUpdated_category_typesInput[] | CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutUpdated_category_typesInput | CategoryTypesCreateOrConnectWithoutUpdated_category_typesInput[]
    upsert?: CategoryTypesUpsertWithWhereUniqueWithoutUpdated_category_typesInput | CategoryTypesUpsertWithWhereUniqueWithoutUpdated_category_typesInput[]
    createMany?: CategoryTypesCreateManyUpdated_category_typesInputEnvelope
    set?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    disconnect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    delete?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    update?: CategoryTypesUpdateWithWhereUniqueWithoutUpdated_category_typesInput | CategoryTypesUpdateWithWhereUniqueWithoutUpdated_category_typesInput[]
    updateMany?: CategoryTypesUpdateManyWithWhereWithoutUpdated_category_typesInput | CategoryTypesUpdateManyWithWhereWithoutUpdated_category_typesInput[]
    deleteMany?: CategoryTypesScalarWhereInput | CategoryTypesScalarWhereInput[]
  }

  export type CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput = {
    create?: XOR<CategoryTypesCreateWithoutDeleted_category_typesInput, CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput> | CategoryTypesCreateWithoutDeleted_category_typesInput[] | CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput[]
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutDeleted_category_typesInput | CategoryTypesCreateOrConnectWithoutDeleted_category_typesInput[]
    upsert?: CategoryTypesUpsertWithWhereUniqueWithoutDeleted_category_typesInput | CategoryTypesUpsertWithWhereUniqueWithoutDeleted_category_typesInput[]
    createMany?: CategoryTypesCreateManyDeleted_category_typesInputEnvelope
    set?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    disconnect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    delete?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    connect?: CategoryTypesWhereUniqueInput | CategoryTypesWhereUniqueInput[]
    update?: CategoryTypesUpdateWithWhereUniqueWithoutDeleted_category_typesInput | CategoryTypesUpdateWithWhereUniqueWithoutDeleted_category_typesInput[]
    updateMany?: CategoryTypesUpdateManyWithWhereWithoutDeleted_category_typesInput | CategoryTypesUpdateManyWithWhereWithoutDeleted_category_typesInput[]
    deleteMany?: CategoryTypesScalarWhereInput | CategoryTypesScalarWhereInput[]
  }

  export type CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput = {
    create?: XOR<CategoriesCreateWithoutCreated_categoriesInput, CategoriesUncheckedCreateWithoutCreated_categoriesInput> | CategoriesCreateWithoutCreated_categoriesInput[] | CategoriesUncheckedCreateWithoutCreated_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutCreated_categoriesInput | CategoriesCreateOrConnectWithoutCreated_categoriesInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutCreated_categoriesInput | CategoriesUpsertWithWhereUniqueWithoutCreated_categoriesInput[]
    createMany?: CategoriesCreateManyCreated_categoriesInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutCreated_categoriesInput | CategoriesUpdateWithWhereUniqueWithoutCreated_categoriesInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutCreated_categoriesInput | CategoriesUpdateManyWithWhereWithoutCreated_categoriesInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput = {
    create?: XOR<CategoriesCreateWithoutUpdated_categoriesInput, CategoriesUncheckedCreateWithoutUpdated_categoriesInput> | CategoriesCreateWithoutUpdated_categoriesInput[] | CategoriesUncheckedCreateWithoutUpdated_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutUpdated_categoriesInput | CategoriesCreateOrConnectWithoutUpdated_categoriesInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutUpdated_categoriesInput | CategoriesUpsertWithWhereUniqueWithoutUpdated_categoriesInput[]
    createMany?: CategoriesCreateManyUpdated_categoriesInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutUpdated_categoriesInput | CategoriesUpdateWithWhereUniqueWithoutUpdated_categoriesInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutUpdated_categoriesInput | CategoriesUpdateManyWithWhereWithoutUpdated_categoriesInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput = {
    create?: XOR<CategoriesCreateWithoutDeleted_categoriesInput, CategoriesUncheckedCreateWithoutDeleted_categoriesInput> | CategoriesCreateWithoutDeleted_categoriesInput[] | CategoriesUncheckedCreateWithoutDeleted_categoriesInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutDeleted_categoriesInput | CategoriesCreateOrConnectWithoutDeleted_categoriesInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutDeleted_categoriesInput | CategoriesUpsertWithWhereUniqueWithoutDeleted_categoriesInput[]
    createMany?: CategoriesCreateManyDeleted_categoriesInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutDeleted_categoriesInput | CategoriesUpdateWithWhereUniqueWithoutDeleted_categoriesInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutDeleted_categoriesInput | CategoriesUpdateManyWithWhereWithoutDeleted_categoriesInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput = {
    create?: XOR<ConfigurationsCreateWithoutCreated_configurationsInput, ConfigurationsUncheckedCreateWithoutCreated_configurationsInput> | ConfigurationsCreateWithoutCreated_configurationsInput[] | ConfigurationsUncheckedCreateWithoutCreated_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutCreated_configurationsInput | ConfigurationsCreateOrConnectWithoutCreated_configurationsInput[]
    upsert?: ConfigurationsUpsertWithWhereUniqueWithoutCreated_configurationsInput | ConfigurationsUpsertWithWhereUniqueWithoutCreated_configurationsInput[]
    createMany?: ConfigurationsCreateManyCreated_configurationsInputEnvelope
    set?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    disconnect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    delete?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    update?: ConfigurationsUpdateWithWhereUniqueWithoutCreated_configurationsInput | ConfigurationsUpdateWithWhereUniqueWithoutCreated_configurationsInput[]
    updateMany?: ConfigurationsUpdateManyWithWhereWithoutCreated_configurationsInput | ConfigurationsUpdateManyWithWhereWithoutCreated_configurationsInput[]
    deleteMany?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
  }

  export type ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput = {
    create?: XOR<ConfigurationsCreateWithoutUpdated_configurationsInput, ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput> | ConfigurationsCreateWithoutUpdated_configurationsInput[] | ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutUpdated_configurationsInput | ConfigurationsCreateOrConnectWithoutUpdated_configurationsInput[]
    upsert?: ConfigurationsUpsertWithWhereUniqueWithoutUpdated_configurationsInput | ConfigurationsUpsertWithWhereUniqueWithoutUpdated_configurationsInput[]
    createMany?: ConfigurationsCreateManyUpdated_configurationsInputEnvelope
    set?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    disconnect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    delete?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    update?: ConfigurationsUpdateWithWhereUniqueWithoutUpdated_configurationsInput | ConfigurationsUpdateWithWhereUniqueWithoutUpdated_configurationsInput[]
    updateMany?: ConfigurationsUpdateManyWithWhereWithoutUpdated_configurationsInput | ConfigurationsUpdateManyWithWhereWithoutUpdated_configurationsInput[]
    deleteMany?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
  }

  export type ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput = {
    create?: XOR<ConfigurationsCreateWithoutDeleted_configurationsInput, ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput> | ConfigurationsCreateWithoutDeleted_configurationsInput[] | ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutDeleted_configurationsInput | ConfigurationsCreateOrConnectWithoutDeleted_configurationsInput[]
    upsert?: ConfigurationsUpsertWithWhereUniqueWithoutDeleted_configurationsInput | ConfigurationsUpsertWithWhereUniqueWithoutDeleted_configurationsInput[]
    createMany?: ConfigurationsCreateManyDeleted_configurationsInputEnvelope
    set?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    disconnect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    delete?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    update?: ConfigurationsUpdateWithWhereUniqueWithoutDeleted_configurationsInput | ConfigurationsUpdateWithWhereUniqueWithoutDeleted_configurationsInput[]
    updateMany?: ConfigurationsUpdateManyWithWhereWithoutDeleted_configurationsInput | ConfigurationsUpdateManyWithWhereWithoutDeleted_configurationsInput[]
    deleteMany?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
  }

  export type FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<FinancialYearCreateWithoutCreatedInput, FinancialYearUncheckedCreateWithoutCreatedInput> | FinancialYearCreateWithoutCreatedInput[] | FinancialYearUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutCreatedInput | FinancialYearCreateOrConnectWithoutCreatedInput[]
    upsert?: FinancialYearUpsertWithWhereUniqueWithoutCreatedInput | FinancialYearUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: FinancialYearCreateManyCreatedInputEnvelope
    set?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    disconnect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    delete?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    update?: FinancialYearUpdateWithWhereUniqueWithoutCreatedInput | FinancialYearUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: FinancialYearUpdateManyWithWhereWithoutCreatedInput | FinancialYearUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
  }

  export type FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<FinancialYearCreateWithoutUpdatedInput, FinancialYearUncheckedCreateWithoutUpdatedInput> | FinancialYearCreateWithoutUpdatedInput[] | FinancialYearUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutUpdatedInput | FinancialYearCreateOrConnectWithoutUpdatedInput[]
    upsert?: FinancialYearUpsertWithWhereUniqueWithoutUpdatedInput | FinancialYearUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: FinancialYearCreateManyUpdatedInputEnvelope
    set?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    disconnect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    delete?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    update?: FinancialYearUpdateWithWhereUniqueWithoutUpdatedInput | FinancialYearUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: FinancialYearUpdateManyWithWhereWithoutUpdatedInput | FinancialYearUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
  }

  export type FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<FinancialYearCreateWithoutDeletedInput, FinancialYearUncheckedCreateWithoutDeletedInput> | FinancialYearCreateWithoutDeletedInput[] | FinancialYearUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutDeletedInput | FinancialYearCreateOrConnectWithoutDeletedInput[]
    upsert?: FinancialYearUpsertWithWhereUniqueWithoutDeletedInput | FinancialYearUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: FinancialYearCreateManyDeletedInputEnvelope
    set?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    disconnect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    delete?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    update?: FinancialYearUpdateWithWhereUniqueWithoutDeletedInput | FinancialYearUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: FinancialYearUpdateManyWithWhereWithoutDeletedInput | FinancialYearUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutCreatedInput, DocumentSequenceUncheckedCreateWithoutCreatedInput> | DocumentSequenceCreateWithoutCreatedInput[] | DocumentSequenceUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutCreatedInput | DocumentSequenceCreateOrConnectWithoutCreatedInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutCreatedInput | DocumentSequenceUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: DocumentSequenceCreateManyCreatedInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutCreatedInput | DocumentSequenceUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutCreatedInput | DocumentSequenceUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutUpdatedInput, DocumentSequenceUncheckedCreateWithoutUpdatedInput> | DocumentSequenceCreateWithoutUpdatedInput[] | DocumentSequenceUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutUpdatedInput | DocumentSequenceCreateOrConnectWithoutUpdatedInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutUpdatedInput | DocumentSequenceUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: DocumentSequenceCreateManyUpdatedInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutUpdatedInput | DocumentSequenceUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutUpdatedInput | DocumentSequenceUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutDeletedInput, DocumentSequenceUncheckedCreateWithoutDeletedInput> | DocumentSequenceCreateWithoutDeletedInput[] | DocumentSequenceUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutDeletedInput | DocumentSequenceCreateOrConnectWithoutDeletedInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutDeletedInput | DocumentSequenceUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: DocumentSequenceCreateManyDeletedInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutDeletedInput | DocumentSequenceUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutDeletedInput | DocumentSequenceUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutCreated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput> | DeviceRegistrationCreateWithoutCreated_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutCreated_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutCreated_device_registrationInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutCreated_device_registrationInput | DeviceRegistrationUpsertWithWhereUniqueWithoutCreated_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyCreated_device_registrationInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutCreated_device_registrationInput | DeviceRegistrationUpdateWithWhereUniqueWithoutCreated_device_registrationInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutCreated_device_registrationInput | DeviceRegistrationUpdateManyWithWhereWithoutCreated_device_registrationInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutUpdated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput> | DeviceRegistrationCreateWithoutUpdated_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutUpdated_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutUpdated_device_registrationInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutUpdated_device_registrationInput | DeviceRegistrationUpsertWithWhereUniqueWithoutUpdated_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyUpdated_device_registrationInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutUpdated_device_registrationInput | DeviceRegistrationUpdateWithWhereUniqueWithoutUpdated_device_registrationInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutUpdated_device_registrationInput | DeviceRegistrationUpdateManyWithWhereWithoutUpdated_device_registrationInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutDeleted_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput> | DeviceRegistrationCreateWithoutDeleted_device_registrationInput[] | DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutDeleted_device_registrationInput | DeviceRegistrationCreateOrConnectWithoutDeleted_device_registrationInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutDeleted_device_registrationInput | DeviceRegistrationUpsertWithWhereUniqueWithoutDeleted_device_registrationInput[]
    createMany?: DeviceRegistrationCreateManyDeleted_device_registrationInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutDeleted_device_registrationInput | DeviceRegistrationUpdateWithWhereUniqueWithoutDeleted_device_registrationInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutDeleted_device_registrationInput | DeviceRegistrationUpdateManyWithWhereWithoutDeleted_device_registrationInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutUserInput, DeviceRegistrationUncheckedCreateWithoutUserInput> | DeviceRegistrationCreateWithoutUserInput[] | DeviceRegistrationUncheckedCreateWithoutUserInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutUserInput | DeviceRegistrationCreateOrConnectWithoutUserInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutUserInput | DeviceRegistrationUpsertWithWhereUniqueWithoutUserInput[]
    createMany?: DeviceRegistrationCreateManyUserInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutUserInput | DeviceRegistrationUpdateWithWhereUniqueWithoutUserInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutUserInput | DeviceRegistrationUpdateManyWithWhereWithoutUserInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type ImportJobUncheckedUpdateManyWithoutCreatedNestedInput = {
    create?: XOR<ImportJobCreateWithoutCreatedInput, ImportJobUncheckedCreateWithoutCreatedInput> | ImportJobCreateWithoutCreatedInput[] | ImportJobUncheckedCreateWithoutCreatedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutCreatedInput | ImportJobCreateOrConnectWithoutCreatedInput[]
    upsert?: ImportJobUpsertWithWhereUniqueWithoutCreatedInput | ImportJobUpsertWithWhereUniqueWithoutCreatedInput[]
    createMany?: ImportJobCreateManyCreatedInputEnvelope
    set?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    disconnect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    delete?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    update?: ImportJobUpdateWithWhereUniqueWithoutCreatedInput | ImportJobUpdateWithWhereUniqueWithoutCreatedInput[]
    updateMany?: ImportJobUpdateManyWithWhereWithoutCreatedInput | ImportJobUpdateManyWithWhereWithoutCreatedInput[]
    deleteMany?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
  }

  export type ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput = {
    create?: XOR<ImportJobCreateWithoutUpdatedInput, ImportJobUncheckedCreateWithoutUpdatedInput> | ImportJobCreateWithoutUpdatedInput[] | ImportJobUncheckedCreateWithoutUpdatedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutUpdatedInput | ImportJobCreateOrConnectWithoutUpdatedInput[]
    upsert?: ImportJobUpsertWithWhereUniqueWithoutUpdatedInput | ImportJobUpsertWithWhereUniqueWithoutUpdatedInput[]
    createMany?: ImportJobCreateManyUpdatedInputEnvelope
    set?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    disconnect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    delete?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    update?: ImportJobUpdateWithWhereUniqueWithoutUpdatedInput | ImportJobUpdateWithWhereUniqueWithoutUpdatedInput[]
    updateMany?: ImportJobUpdateManyWithWhereWithoutUpdatedInput | ImportJobUpdateManyWithWhereWithoutUpdatedInput[]
    deleteMany?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
  }

  export type ImportJobUncheckedUpdateManyWithoutDeletedNestedInput = {
    create?: XOR<ImportJobCreateWithoutDeletedInput, ImportJobUncheckedCreateWithoutDeletedInput> | ImportJobCreateWithoutDeletedInput[] | ImportJobUncheckedCreateWithoutDeletedInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutDeletedInput | ImportJobCreateOrConnectWithoutDeletedInput[]
    upsert?: ImportJobUpsertWithWhereUniqueWithoutDeletedInput | ImportJobUpsertWithWhereUniqueWithoutDeletedInput[]
    createMany?: ImportJobCreateManyDeletedInputEnvelope
    set?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    disconnect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    delete?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    update?: ImportJobUpdateWithWhereUniqueWithoutDeletedInput | ImportJobUpdateWithWhereUniqueWithoutDeletedInput[]
    updateMany?: ImportJobUpdateManyWithWhereWithoutDeletedInput | ImportJobUpdateManyWithWhereWithoutDeletedInput[]
    deleteMany?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
  }

  export type DesignationCreateNestedOneWithoutUsersInput = {
    create?: XOR<DesignationCreateWithoutUsersInput, DesignationUncheckedCreateWithoutUsersInput>
    connectOrCreate?: DesignationCreateOrConnectWithoutUsersInput
    connect?: DesignationWhereUniqueInput
  }

  export type DepartmentCreateNestedOneWithoutUsersInput = {
    create?: XOR<DepartmentCreateWithoutUsersInput, DepartmentUncheckedCreateWithoutUsersInput>
    connectOrCreate?: DepartmentCreateOrConnectWithoutUsersInput
    connect?: DepartmentWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUser_detailInput = {
    create?: XOR<UserCreateWithoutUser_detailInput, UserUncheckedCreateWithoutUser_detailInput>
    connectOrCreate?: UserCreateOrConnectWithoutUser_detailInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_user_detailsInput = {
    create?: XOR<UserCreateWithoutCreated_user_detailsInput, UserUncheckedCreateWithoutCreated_user_detailsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_user_detailsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_user_detailsInput = {
    create?: XOR<UserCreateWithoutUpdated_user_detailsInput, UserUncheckedCreateWithoutUpdated_user_detailsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_user_detailsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_user_detailsInput = {
    create?: XOR<UserCreateWithoutDeleted_user_detailsInput, UserUncheckedCreateWithoutDeleted_user_detailsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_user_detailsInput
    connect?: UserWhereUniqueInput
  }

  export type DesignationUpdateOneWithoutUsersNestedInput = {
    create?: XOR<DesignationCreateWithoutUsersInput, DesignationUncheckedCreateWithoutUsersInput>
    connectOrCreate?: DesignationCreateOrConnectWithoutUsersInput
    upsert?: DesignationUpsertWithoutUsersInput
    disconnect?: DesignationWhereInput | boolean
    delete?: DesignationWhereInput | boolean
    connect?: DesignationWhereUniqueInput
    update?: XOR<XOR<DesignationUpdateToOneWithWhereWithoutUsersInput, DesignationUpdateWithoutUsersInput>, DesignationUncheckedUpdateWithoutUsersInput>
  }

  export type DepartmentUpdateOneWithoutUsersNestedInput = {
    create?: XOR<DepartmentCreateWithoutUsersInput, DepartmentUncheckedCreateWithoutUsersInput>
    connectOrCreate?: DepartmentCreateOrConnectWithoutUsersInput
    upsert?: DepartmentUpsertWithoutUsersInput
    disconnect?: DepartmentWhereInput | boolean
    delete?: DepartmentWhereInput | boolean
    connect?: DepartmentWhereUniqueInput
    update?: XOR<XOR<DepartmentUpdateToOneWithWhereWithoutUsersInput, DepartmentUpdateWithoutUsersInput>, DepartmentUncheckedUpdateWithoutUsersInput>
  }

  export type UserUpdateOneRequiredWithoutUser_detailNestedInput = {
    create?: XOR<UserCreateWithoutUser_detailInput, UserUncheckedCreateWithoutUser_detailInput>
    connectOrCreate?: UserCreateOrConnectWithoutUser_detailInput
    upsert?: UserUpsertWithoutUser_detailInput
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUser_detailInput, UserUpdateWithoutUser_detailInput>, UserUncheckedUpdateWithoutUser_detailInput>
  }

  export type UserUpdateOneWithoutCreated_user_detailsNestedInput = {
    create?: XOR<UserCreateWithoutCreated_user_detailsInput, UserUncheckedCreateWithoutCreated_user_detailsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_user_detailsInput
    upsert?: UserUpsertWithoutCreated_user_detailsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_user_detailsInput, UserUpdateWithoutCreated_user_detailsInput>, UserUncheckedUpdateWithoutCreated_user_detailsInput>
  }

  export type UserUpdateOneWithoutUpdated_user_detailsNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_user_detailsInput, UserUncheckedCreateWithoutUpdated_user_detailsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_user_detailsInput
    upsert?: UserUpsertWithoutUpdated_user_detailsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_user_detailsInput, UserUpdateWithoutUpdated_user_detailsInput>, UserUncheckedUpdateWithoutUpdated_user_detailsInput>
  }

  export type UserUpdateOneWithoutDeleted_user_detailsNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_user_detailsInput, UserUncheckedCreateWithoutDeleted_user_detailsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_user_detailsInput
    upsert?: UserUpsertWithoutDeleted_user_detailsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_user_detailsInput, UserUpdateWithoutDeleted_user_detailsInput>, UserUncheckedUpdateWithoutDeleted_user_detailsInput>
  }

  export type StatusCreateNestedOneWithoutDesignationsInput = {
    create?: XOR<StatusCreateWithoutDesignationsInput, StatusUncheckedCreateWithoutDesignationsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutDesignationsInput
    connect?: StatusWhereUniqueInput
  }

  export type UserDetailCreateNestedManyWithoutDesignationInput = {
    create?: XOR<UserDetailCreateWithoutDesignationInput, UserDetailUncheckedCreateWithoutDesignationInput> | UserDetailCreateWithoutDesignationInput[] | UserDetailUncheckedCreateWithoutDesignationInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDesignationInput | UserDetailCreateOrConnectWithoutDesignationInput[]
    createMany?: UserDetailCreateManyDesignationInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type UserCreateNestedOneWithoutCreated_designationsInput = {
    create?: XOR<UserCreateWithoutCreated_designationsInput, UserUncheckedCreateWithoutCreated_designationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_designationsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_designationsInput = {
    create?: XOR<UserCreateWithoutUpdated_designationsInput, UserUncheckedCreateWithoutUpdated_designationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_designationsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_designationsInput = {
    create?: XOR<UserCreateWithoutDeleted_designationsInput, UserUncheckedCreateWithoutDeleted_designationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_designationsInput
    connect?: UserWhereUniqueInput
  }

  export type UserDetailUncheckedCreateNestedManyWithoutDesignationInput = {
    create?: XOR<UserDetailCreateWithoutDesignationInput, UserDetailUncheckedCreateWithoutDesignationInput> | UserDetailCreateWithoutDesignationInput[] | UserDetailUncheckedCreateWithoutDesignationInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDesignationInput | UserDetailCreateOrConnectWithoutDesignationInput[]
    createMany?: UserDetailCreateManyDesignationInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutDesignationsNestedInput = {
    create?: XOR<StatusCreateWithoutDesignationsInput, StatusUncheckedCreateWithoutDesignationsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutDesignationsInput
    upsert?: StatusUpsertWithoutDesignationsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutDesignationsInput, StatusUpdateWithoutDesignationsInput>, StatusUncheckedUpdateWithoutDesignationsInput>
  }

  export type UserDetailUpdateManyWithoutDesignationNestedInput = {
    create?: XOR<UserDetailCreateWithoutDesignationInput, UserDetailUncheckedCreateWithoutDesignationInput> | UserDetailCreateWithoutDesignationInput[] | UserDetailUncheckedCreateWithoutDesignationInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDesignationInput | UserDetailCreateOrConnectWithoutDesignationInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutDesignationInput | UserDetailUpsertWithWhereUniqueWithoutDesignationInput[]
    createMany?: UserDetailCreateManyDesignationInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutDesignationInput | UserDetailUpdateWithWhereUniqueWithoutDesignationInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutDesignationInput | UserDetailUpdateManyWithWhereWithoutDesignationInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type UserUpdateOneWithoutCreated_designationsNestedInput = {
    create?: XOR<UserCreateWithoutCreated_designationsInput, UserUncheckedCreateWithoutCreated_designationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_designationsInput
    upsert?: UserUpsertWithoutCreated_designationsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_designationsInput, UserUpdateWithoutCreated_designationsInput>, UserUncheckedUpdateWithoutCreated_designationsInput>
  }

  export type UserUpdateOneWithoutUpdated_designationsNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_designationsInput, UserUncheckedCreateWithoutUpdated_designationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_designationsInput
    upsert?: UserUpsertWithoutUpdated_designationsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_designationsInput, UserUpdateWithoutUpdated_designationsInput>, UserUncheckedUpdateWithoutUpdated_designationsInput>
  }

  export type UserUpdateOneWithoutDeleted_designationsNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_designationsInput, UserUncheckedCreateWithoutDeleted_designationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_designationsInput
    upsert?: UserUpsertWithoutDeleted_designationsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_designationsInput, UserUpdateWithoutDeleted_designationsInput>, UserUncheckedUpdateWithoutDeleted_designationsInput>
  }

  export type UserDetailUncheckedUpdateManyWithoutDesignationNestedInput = {
    create?: XOR<UserDetailCreateWithoutDesignationInput, UserDetailUncheckedCreateWithoutDesignationInput> | UserDetailCreateWithoutDesignationInput[] | UserDetailUncheckedCreateWithoutDesignationInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDesignationInput | UserDetailCreateOrConnectWithoutDesignationInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutDesignationInput | UserDetailUpsertWithWhereUniqueWithoutDesignationInput[]
    createMany?: UserDetailCreateManyDesignationInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutDesignationInput | UserDetailUpdateWithWhereUniqueWithoutDesignationInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutDesignationInput | UserDetailUpdateManyWithWhereWithoutDesignationInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutDepartmentsInput = {
    create?: XOR<StatusCreateWithoutDepartmentsInput, StatusUncheckedCreateWithoutDepartmentsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutDepartmentsInput
    connect?: StatusWhereUniqueInput
  }

  export type UserDetailCreateNestedManyWithoutDepartmentInput = {
    create?: XOR<UserDetailCreateWithoutDepartmentInput, UserDetailUncheckedCreateWithoutDepartmentInput> | UserDetailCreateWithoutDepartmentInput[] | UserDetailUncheckedCreateWithoutDepartmentInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDepartmentInput | UserDetailCreateOrConnectWithoutDepartmentInput[]
    createMany?: UserDetailCreateManyDepartmentInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type UserCreateNestedOneWithoutHead_departmentsInput = {
    create?: XOR<UserCreateWithoutHead_departmentsInput, UserUncheckedCreateWithoutHead_departmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutHead_departmentsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_departmentsInput = {
    create?: XOR<UserCreateWithoutCreated_departmentsInput, UserUncheckedCreateWithoutCreated_departmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_departmentsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_departmentsInput = {
    create?: XOR<UserCreateWithoutUpdated_departmentsInput, UserUncheckedCreateWithoutUpdated_departmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_departmentsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_departmentsInput = {
    create?: XOR<UserCreateWithoutDeleted_departmentsInput, UserUncheckedCreateWithoutDeleted_departmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_departmentsInput
    connect?: UserWhereUniqueInput
  }

  export type UserDetailUncheckedCreateNestedManyWithoutDepartmentInput = {
    create?: XOR<UserDetailCreateWithoutDepartmentInput, UserDetailUncheckedCreateWithoutDepartmentInput> | UserDetailCreateWithoutDepartmentInput[] | UserDetailUncheckedCreateWithoutDepartmentInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDepartmentInput | UserDetailCreateOrConnectWithoutDepartmentInput[]
    createMany?: UserDetailCreateManyDepartmentInputEnvelope
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutDepartmentsNestedInput = {
    create?: XOR<StatusCreateWithoutDepartmentsInput, StatusUncheckedCreateWithoutDepartmentsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutDepartmentsInput
    upsert?: StatusUpsertWithoutDepartmentsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutDepartmentsInput, StatusUpdateWithoutDepartmentsInput>, StatusUncheckedUpdateWithoutDepartmentsInput>
  }

  export type UserDetailUpdateManyWithoutDepartmentNestedInput = {
    create?: XOR<UserDetailCreateWithoutDepartmentInput, UserDetailUncheckedCreateWithoutDepartmentInput> | UserDetailCreateWithoutDepartmentInput[] | UserDetailUncheckedCreateWithoutDepartmentInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDepartmentInput | UserDetailCreateOrConnectWithoutDepartmentInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutDepartmentInput | UserDetailUpsertWithWhereUniqueWithoutDepartmentInput[]
    createMany?: UserDetailCreateManyDepartmentInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutDepartmentInput | UserDetailUpdateWithWhereUniqueWithoutDepartmentInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutDepartmentInput | UserDetailUpdateManyWithWhereWithoutDepartmentInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type UserUpdateOneWithoutHead_departmentsNestedInput = {
    create?: XOR<UserCreateWithoutHead_departmentsInput, UserUncheckedCreateWithoutHead_departmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutHead_departmentsInput
    upsert?: UserUpsertWithoutHead_departmentsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutHead_departmentsInput, UserUpdateWithoutHead_departmentsInput>, UserUncheckedUpdateWithoutHead_departmentsInput>
  }

  export type UserUpdateOneWithoutCreated_departmentsNestedInput = {
    create?: XOR<UserCreateWithoutCreated_departmentsInput, UserUncheckedCreateWithoutCreated_departmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_departmentsInput
    upsert?: UserUpsertWithoutCreated_departmentsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_departmentsInput, UserUpdateWithoutCreated_departmentsInput>, UserUncheckedUpdateWithoutCreated_departmentsInput>
  }

  export type UserUpdateOneWithoutUpdated_departmentsNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_departmentsInput, UserUncheckedCreateWithoutUpdated_departmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_departmentsInput
    upsert?: UserUpsertWithoutUpdated_departmentsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_departmentsInput, UserUpdateWithoutUpdated_departmentsInput>, UserUncheckedUpdateWithoutUpdated_departmentsInput>
  }

  export type UserUpdateOneWithoutDeleted_departmentsNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_departmentsInput, UserUncheckedCreateWithoutDeleted_departmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_departmentsInput
    upsert?: UserUpsertWithoutDeleted_departmentsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_departmentsInput, UserUpdateWithoutDeleted_departmentsInput>, UserUncheckedUpdateWithoutDeleted_departmentsInput>
  }

  export type UserDetailUncheckedUpdateManyWithoutDepartmentNestedInput = {
    create?: XOR<UserDetailCreateWithoutDepartmentInput, UserDetailUncheckedCreateWithoutDepartmentInput> | UserDetailCreateWithoutDepartmentInput[] | UserDetailUncheckedCreateWithoutDepartmentInput[]
    connectOrCreate?: UserDetailCreateOrConnectWithoutDepartmentInput | UserDetailCreateOrConnectWithoutDepartmentInput[]
    upsert?: UserDetailUpsertWithWhereUniqueWithoutDepartmentInput | UserDetailUpsertWithWhereUniqueWithoutDepartmentInput[]
    createMany?: UserDetailCreateManyDepartmentInputEnvelope
    set?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    disconnect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    delete?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    connect?: UserDetailWhereUniqueInput | UserDetailWhereUniqueInput[]
    update?: UserDetailUpdateWithWhereUniqueWithoutDepartmentInput | UserDetailUpdateWithWhereUniqueWithoutDepartmentInput[]
    updateMany?: UserDetailUpdateManyWithWhereWithoutDepartmentInput | UserDetailUpdateManyWithWhereWithoutDepartmentInput[]
    deleteMany?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutRequest_logsInput = {
    create?: XOR<StatusCreateWithoutRequest_logsInput, StatusUncheckedCreateWithoutRequest_logsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutRequest_logsInput
    connect?: StatusWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutRequest_logsInput = {
    create?: XOR<UserCreateWithoutRequest_logsInput, UserUncheckedCreateWithoutRequest_logsInput>
    connectOrCreate?: UserCreateOrConnectWithoutRequest_logsInput
    connect?: UserWhereUniqueInput
  }

  export type BigIntFieldUpdateOperationsInput = {
    set?: bigint | number
    increment?: bigint | number
    decrement?: bigint | number
    multiply?: bigint | number
    divide?: bigint | number
  }

  export type StatusUpdateOneRequiredWithoutRequest_logsNestedInput = {
    create?: XOR<StatusCreateWithoutRequest_logsInput, StatusUncheckedCreateWithoutRequest_logsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutRequest_logsInput
    upsert?: StatusUpsertWithoutRequest_logsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutRequest_logsInput, StatusUpdateWithoutRequest_logsInput>, StatusUncheckedUpdateWithoutRequest_logsInput>
  }

  export type UserUpdateOneWithoutRequest_logsNestedInput = {
    create?: XOR<UserCreateWithoutRequest_logsInput, UserUncheckedCreateWithoutRequest_logsInput>
    connectOrCreate?: UserCreateOrConnectWithoutRequest_logsInput
    upsert?: UserUpsertWithoutRequest_logsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutRequest_logsInput, UserUpdateWithoutRequest_logsInput>, UserUncheckedUpdateWithoutRequest_logsInput>
  }

  export type StatusCreateNestedOneWithoutFinancial_yearsInput = {
    create?: XOR<StatusCreateWithoutFinancial_yearsInput, StatusUncheckedCreateWithoutFinancial_yearsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutFinancial_yearsInput
    connect?: StatusWhereUniqueInput
  }

  export type DocumentSequenceCreateNestedManyWithoutFinanicial_yearInput = {
    create?: XOR<DocumentSequenceCreateWithoutFinanicial_yearInput, DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput> | DocumentSequenceCreateWithoutFinanicial_yearInput[] | DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutFinanicial_yearInput | DocumentSequenceCreateOrConnectWithoutFinanicial_yearInput[]
    createMany?: DocumentSequenceCreateManyFinanicial_yearInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type UserCreateNestedOneWithoutCreated_fin_yearsInput = {
    create?: XOR<UserCreateWithoutCreated_fin_yearsInput, UserUncheckedCreateWithoutCreated_fin_yearsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_fin_yearsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_fin_yearsInput = {
    create?: XOR<UserCreateWithoutUpdated_fin_yearsInput, UserUncheckedCreateWithoutUpdated_fin_yearsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_fin_yearsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_fin_yearsInput = {
    create?: XOR<UserCreateWithoutDeleted_fin_yearsInput, UserUncheckedCreateWithoutDeleted_fin_yearsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_fin_yearsInput
    connect?: UserWhereUniqueInput
  }

  export type DocumentSequenceUncheckedCreateNestedManyWithoutFinanicial_yearInput = {
    create?: XOR<DocumentSequenceCreateWithoutFinanicial_yearInput, DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput> | DocumentSequenceCreateWithoutFinanicial_yearInput[] | DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutFinanicial_yearInput | DocumentSequenceCreateOrConnectWithoutFinanicial_yearInput[]
    createMany?: DocumentSequenceCreateManyFinanicial_yearInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutFinancial_yearsNestedInput = {
    create?: XOR<StatusCreateWithoutFinancial_yearsInput, StatusUncheckedCreateWithoutFinancial_yearsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutFinancial_yearsInput
    upsert?: StatusUpsertWithoutFinancial_yearsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutFinancial_yearsInput, StatusUpdateWithoutFinancial_yearsInput>, StatusUncheckedUpdateWithoutFinancial_yearsInput>
  }

  export type DocumentSequenceUpdateManyWithoutFinanicial_yearNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutFinanicial_yearInput, DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput> | DocumentSequenceCreateWithoutFinanicial_yearInput[] | DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutFinanicial_yearInput | DocumentSequenceCreateOrConnectWithoutFinanicial_yearInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutFinanicial_yearInput | DocumentSequenceUpsertWithWhereUniqueWithoutFinanicial_yearInput[]
    createMany?: DocumentSequenceCreateManyFinanicial_yearInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutFinanicial_yearInput | DocumentSequenceUpdateWithWhereUniqueWithoutFinanicial_yearInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutFinanicial_yearInput | DocumentSequenceUpdateManyWithWhereWithoutFinanicial_yearInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type UserUpdateOneWithoutCreated_fin_yearsNestedInput = {
    create?: XOR<UserCreateWithoutCreated_fin_yearsInput, UserUncheckedCreateWithoutCreated_fin_yearsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_fin_yearsInput
    upsert?: UserUpsertWithoutCreated_fin_yearsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_fin_yearsInput, UserUpdateWithoutCreated_fin_yearsInput>, UserUncheckedUpdateWithoutCreated_fin_yearsInput>
  }

  export type UserUpdateOneWithoutUpdated_fin_yearsNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_fin_yearsInput, UserUncheckedCreateWithoutUpdated_fin_yearsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_fin_yearsInput
    upsert?: UserUpsertWithoutUpdated_fin_yearsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_fin_yearsInput, UserUpdateWithoutUpdated_fin_yearsInput>, UserUncheckedUpdateWithoutUpdated_fin_yearsInput>
  }

  export type UserUpdateOneWithoutDeleted_fin_yearsNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_fin_yearsInput, UserUncheckedCreateWithoutDeleted_fin_yearsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_fin_yearsInput
    upsert?: UserUpsertWithoutDeleted_fin_yearsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_fin_yearsInput, UserUpdateWithoutDeleted_fin_yearsInput>, UserUncheckedUpdateWithoutDeleted_fin_yearsInput>
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutFinanicial_yearNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutFinanicial_yearInput, DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput> | DocumentSequenceCreateWithoutFinanicial_yearInput[] | DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutFinanicial_yearInput | DocumentSequenceCreateOrConnectWithoutFinanicial_yearInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutFinanicial_yearInput | DocumentSequenceUpsertWithWhereUniqueWithoutFinanicial_yearInput[]
    createMany?: DocumentSequenceCreateManyFinanicial_yearInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutFinanicial_yearInput | DocumentSequenceUpdateWithWhereUniqueWithoutFinanicial_yearInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutFinanicial_yearInput | DocumentSequenceUpdateManyWithWhereWithoutFinanicial_yearInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutDocument_sequencesInput = {
    create?: XOR<StatusCreateWithoutDocument_sequencesInput, StatusUncheckedCreateWithoutDocument_sequencesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutDocument_sequencesInput
    connect?: StatusWhereUniqueInput
  }

  export type FinancialYearCreateNestedOneWithoutDocument_sequenceInput = {
    create?: XOR<FinancialYearCreateWithoutDocument_sequenceInput, FinancialYearUncheckedCreateWithoutDocument_sequenceInput>
    connectOrCreate?: FinancialYearCreateOrConnectWithoutDocument_sequenceInput
    connect?: FinancialYearWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_doc_sequencesInput = {
    create?: XOR<UserCreateWithoutCreated_doc_sequencesInput, UserUncheckedCreateWithoutCreated_doc_sequencesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_doc_sequencesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_doc_sequencesInput = {
    create?: XOR<UserCreateWithoutUpdated_doc_sequencesInput, UserUncheckedCreateWithoutUpdated_doc_sequencesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_doc_sequencesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_doc_sequencesInput = {
    create?: XOR<UserCreateWithoutDeleted_doc_sequencesInput, UserUncheckedCreateWithoutDeleted_doc_sequencesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_doc_sequencesInput
    connect?: UserWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutDocument_sequencesNestedInput = {
    create?: XOR<StatusCreateWithoutDocument_sequencesInput, StatusUncheckedCreateWithoutDocument_sequencesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutDocument_sequencesInput
    upsert?: StatusUpsertWithoutDocument_sequencesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutDocument_sequencesInput, StatusUpdateWithoutDocument_sequencesInput>, StatusUncheckedUpdateWithoutDocument_sequencesInput>
  }

  export type FinancialYearUpdateOneWithoutDocument_sequenceNestedInput = {
    create?: XOR<FinancialYearCreateWithoutDocument_sequenceInput, FinancialYearUncheckedCreateWithoutDocument_sequenceInput>
    connectOrCreate?: FinancialYearCreateOrConnectWithoutDocument_sequenceInput
    upsert?: FinancialYearUpsertWithoutDocument_sequenceInput
    disconnect?: FinancialYearWhereInput | boolean
    delete?: FinancialYearWhereInput | boolean
    connect?: FinancialYearWhereUniqueInput
    update?: XOR<XOR<FinancialYearUpdateToOneWithWhereWithoutDocument_sequenceInput, FinancialYearUpdateWithoutDocument_sequenceInput>, FinancialYearUncheckedUpdateWithoutDocument_sequenceInput>
  }

  export type UserUpdateOneWithoutCreated_doc_sequencesNestedInput = {
    create?: XOR<UserCreateWithoutCreated_doc_sequencesInput, UserUncheckedCreateWithoutCreated_doc_sequencesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_doc_sequencesInput
    upsert?: UserUpsertWithoutCreated_doc_sequencesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_doc_sequencesInput, UserUpdateWithoutCreated_doc_sequencesInput>, UserUncheckedUpdateWithoutCreated_doc_sequencesInput>
  }

  export type UserUpdateOneWithoutUpdated_doc_sequencesNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_doc_sequencesInput, UserUncheckedCreateWithoutUpdated_doc_sequencesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_doc_sequencesInput
    upsert?: UserUpsertWithoutUpdated_doc_sequencesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_doc_sequencesInput, UserUpdateWithoutUpdated_doc_sequencesInput>, UserUncheckedUpdateWithoutUpdated_doc_sequencesInput>
  }

  export type UserUpdateOneWithoutDeleted_doc_sequencesNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_doc_sequencesInput, UserUncheckedCreateWithoutDeleted_doc_sequencesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_doc_sequencesInput
    upsert?: UserUpsertWithoutDeleted_doc_sequencesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_doc_sequencesInput, UserUpdateWithoutDeleted_doc_sequencesInput>, UserUncheckedUpdateWithoutDeleted_doc_sequencesInput>
  }

  export type StatusCreateNestedOneWithoutAudit_logsInput = {
    create?: XOR<StatusCreateWithoutAudit_logsInput, StatusUncheckedCreateWithoutAudit_logsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutAudit_logsInput
    connect?: StatusWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutAudit_logsInput = {
    create?: XOR<UserCreateWithoutAudit_logsInput, UserUncheckedCreateWithoutAudit_logsInput>
    connectOrCreate?: UserCreateOrConnectWithoutAudit_logsInput
    connect?: UserWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutAudit_logsNestedInput = {
    create?: XOR<StatusCreateWithoutAudit_logsInput, StatusUncheckedCreateWithoutAudit_logsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutAudit_logsInput
    upsert?: StatusUpsertWithoutAudit_logsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutAudit_logsInput, StatusUpdateWithoutAudit_logsInput>, StatusUncheckedUpdateWithoutAudit_logsInput>
  }

  export type UserUpdateOneWithoutAudit_logsNestedInput = {
    create?: XOR<UserCreateWithoutAudit_logsInput, UserUncheckedCreateWithoutAudit_logsInput>
    connectOrCreate?: UserCreateOrConnectWithoutAudit_logsInput
    upsert?: UserUpsertWithoutAudit_logsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAudit_logsInput, UserUpdateWithoutAudit_logsInput>, UserUncheckedUpdateWithoutAudit_logsInput>
  }

  export type StatusCreateNestedOneWithoutPermissionsInput = {
    create?: XOR<StatusCreateWithoutPermissionsInput, StatusUncheckedCreateWithoutPermissionsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutPermissionsInput
    connect?: StatusWhereUniqueInput
  }

  export type MasterEntityCreateNestedOneWithoutPermissionsInput = {
    create?: XOR<MasterEntityCreateWithoutPermissionsInput, MasterEntityUncheckedCreateWithoutPermissionsInput>
    connectOrCreate?: MasterEntityCreateOrConnectWithoutPermissionsInput
    connect?: MasterEntityWhereUniqueInput
  }

  export type RolePermissionsCreateNestedManyWithoutPermissionInput = {
    create?: XOR<RolePermissionsCreateWithoutPermissionInput, RolePermissionsUncheckedCreateWithoutPermissionInput> | RolePermissionsCreateWithoutPermissionInput[] | RolePermissionsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: RolePermissionsCreateOrConnectWithoutPermissionInput | RolePermissionsCreateOrConnectWithoutPermissionInput[]
    createMany?: RolePermissionsCreateManyPermissionInputEnvelope
    connect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
  }

  export type UserPermissionsCreateNestedManyWithoutPermissionInput = {
    create?: XOR<UserPermissionsCreateWithoutPermissionInput, UserPermissionsUncheckedCreateWithoutPermissionInput> | UserPermissionsCreateWithoutPermissionInput[] | UserPermissionsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: UserPermissionsCreateOrConnectWithoutPermissionInput | UserPermissionsCreateOrConnectWithoutPermissionInput[]
    createMany?: UserPermissionsCreateManyPermissionInputEnvelope
    connect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
  }

  export type MenuItemsCreateNestedManyWithoutPermissionInput = {
    create?: XOR<MenuItemsCreateWithoutPermissionInput, MenuItemsUncheckedCreateWithoutPermissionInput> | MenuItemsCreateWithoutPermissionInput[] | MenuItemsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutPermissionInput | MenuItemsCreateOrConnectWithoutPermissionInput[]
    createMany?: MenuItemsCreateManyPermissionInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type RolePermissionsUncheckedCreateNestedManyWithoutPermissionInput = {
    create?: XOR<RolePermissionsCreateWithoutPermissionInput, RolePermissionsUncheckedCreateWithoutPermissionInput> | RolePermissionsCreateWithoutPermissionInput[] | RolePermissionsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: RolePermissionsCreateOrConnectWithoutPermissionInput | RolePermissionsCreateOrConnectWithoutPermissionInput[]
    createMany?: RolePermissionsCreateManyPermissionInputEnvelope
    connect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
  }

  export type UserPermissionsUncheckedCreateNestedManyWithoutPermissionInput = {
    create?: XOR<UserPermissionsCreateWithoutPermissionInput, UserPermissionsUncheckedCreateWithoutPermissionInput> | UserPermissionsCreateWithoutPermissionInput[] | UserPermissionsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: UserPermissionsCreateOrConnectWithoutPermissionInput | UserPermissionsCreateOrConnectWithoutPermissionInput[]
    createMany?: UserPermissionsCreateManyPermissionInputEnvelope
    connect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
  }

  export type MenuItemsUncheckedCreateNestedManyWithoutPermissionInput = {
    create?: XOR<MenuItemsCreateWithoutPermissionInput, MenuItemsUncheckedCreateWithoutPermissionInput> | MenuItemsCreateWithoutPermissionInput[] | MenuItemsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutPermissionInput | MenuItemsCreateOrConnectWithoutPermissionInput[]
    createMany?: MenuItemsCreateManyPermissionInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  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 StatusUpdateOneRequiredWithoutPermissionsNestedInput = {
    create?: XOR<StatusCreateWithoutPermissionsInput, StatusUncheckedCreateWithoutPermissionsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutPermissionsInput
    upsert?: StatusUpsertWithoutPermissionsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutPermissionsInput, StatusUpdateWithoutPermissionsInput>, StatusUncheckedUpdateWithoutPermissionsInput>
  }

  export type MasterEntityUpdateOneWithoutPermissionsNestedInput = {
    create?: XOR<MasterEntityCreateWithoutPermissionsInput, MasterEntityUncheckedCreateWithoutPermissionsInput>
    connectOrCreate?: MasterEntityCreateOrConnectWithoutPermissionsInput
    upsert?: MasterEntityUpsertWithoutPermissionsInput
    disconnect?: MasterEntityWhereInput | boolean
    delete?: MasterEntityWhereInput | boolean
    connect?: MasterEntityWhereUniqueInput
    update?: XOR<XOR<MasterEntityUpdateToOneWithWhereWithoutPermissionsInput, MasterEntityUpdateWithoutPermissionsInput>, MasterEntityUncheckedUpdateWithoutPermissionsInput>
  }

  export type RolePermissionsUpdateManyWithoutPermissionNestedInput = {
    create?: XOR<RolePermissionsCreateWithoutPermissionInput, RolePermissionsUncheckedCreateWithoutPermissionInput> | RolePermissionsCreateWithoutPermissionInput[] | RolePermissionsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: RolePermissionsCreateOrConnectWithoutPermissionInput | RolePermissionsCreateOrConnectWithoutPermissionInput[]
    upsert?: RolePermissionsUpsertWithWhereUniqueWithoutPermissionInput | RolePermissionsUpsertWithWhereUniqueWithoutPermissionInput[]
    createMany?: RolePermissionsCreateManyPermissionInputEnvelope
    set?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    disconnect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    delete?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    connect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    update?: RolePermissionsUpdateWithWhereUniqueWithoutPermissionInput | RolePermissionsUpdateWithWhereUniqueWithoutPermissionInput[]
    updateMany?: RolePermissionsUpdateManyWithWhereWithoutPermissionInput | RolePermissionsUpdateManyWithWhereWithoutPermissionInput[]
    deleteMany?: RolePermissionsScalarWhereInput | RolePermissionsScalarWhereInput[]
  }

  export type UserPermissionsUpdateManyWithoutPermissionNestedInput = {
    create?: XOR<UserPermissionsCreateWithoutPermissionInput, UserPermissionsUncheckedCreateWithoutPermissionInput> | UserPermissionsCreateWithoutPermissionInput[] | UserPermissionsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: UserPermissionsCreateOrConnectWithoutPermissionInput | UserPermissionsCreateOrConnectWithoutPermissionInput[]
    upsert?: UserPermissionsUpsertWithWhereUniqueWithoutPermissionInput | UserPermissionsUpsertWithWhereUniqueWithoutPermissionInput[]
    createMany?: UserPermissionsCreateManyPermissionInputEnvelope
    set?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    disconnect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    delete?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    connect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    update?: UserPermissionsUpdateWithWhereUniqueWithoutPermissionInput | UserPermissionsUpdateWithWhereUniqueWithoutPermissionInput[]
    updateMany?: UserPermissionsUpdateManyWithWhereWithoutPermissionInput | UserPermissionsUpdateManyWithWhereWithoutPermissionInput[]
    deleteMany?: UserPermissionsScalarWhereInput | UserPermissionsScalarWhereInput[]
  }

  export type MenuItemsUpdateManyWithoutPermissionNestedInput = {
    create?: XOR<MenuItemsCreateWithoutPermissionInput, MenuItemsUncheckedCreateWithoutPermissionInput> | MenuItemsCreateWithoutPermissionInput[] | MenuItemsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutPermissionInput | MenuItemsCreateOrConnectWithoutPermissionInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutPermissionInput | MenuItemsUpsertWithWhereUniqueWithoutPermissionInput[]
    createMany?: MenuItemsCreateManyPermissionInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutPermissionInput | MenuItemsUpdateWithWhereUniqueWithoutPermissionInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutPermissionInput | MenuItemsUpdateManyWithWhereWithoutPermissionInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type RolePermissionsUncheckedUpdateManyWithoutPermissionNestedInput = {
    create?: XOR<RolePermissionsCreateWithoutPermissionInput, RolePermissionsUncheckedCreateWithoutPermissionInput> | RolePermissionsCreateWithoutPermissionInput[] | RolePermissionsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: RolePermissionsCreateOrConnectWithoutPermissionInput | RolePermissionsCreateOrConnectWithoutPermissionInput[]
    upsert?: RolePermissionsUpsertWithWhereUniqueWithoutPermissionInput | RolePermissionsUpsertWithWhereUniqueWithoutPermissionInput[]
    createMany?: RolePermissionsCreateManyPermissionInputEnvelope
    set?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    disconnect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    delete?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    connect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    update?: RolePermissionsUpdateWithWhereUniqueWithoutPermissionInput | RolePermissionsUpdateWithWhereUniqueWithoutPermissionInput[]
    updateMany?: RolePermissionsUpdateManyWithWhereWithoutPermissionInput | RolePermissionsUpdateManyWithWhereWithoutPermissionInput[]
    deleteMany?: RolePermissionsScalarWhereInput | RolePermissionsScalarWhereInput[]
  }

  export type UserPermissionsUncheckedUpdateManyWithoutPermissionNestedInput = {
    create?: XOR<UserPermissionsCreateWithoutPermissionInput, UserPermissionsUncheckedCreateWithoutPermissionInput> | UserPermissionsCreateWithoutPermissionInput[] | UserPermissionsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: UserPermissionsCreateOrConnectWithoutPermissionInput | UserPermissionsCreateOrConnectWithoutPermissionInput[]
    upsert?: UserPermissionsUpsertWithWhereUniqueWithoutPermissionInput | UserPermissionsUpsertWithWhereUniqueWithoutPermissionInput[]
    createMany?: UserPermissionsCreateManyPermissionInputEnvelope
    set?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    disconnect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    delete?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    connect?: UserPermissionsWhereUniqueInput | UserPermissionsWhereUniqueInput[]
    update?: UserPermissionsUpdateWithWhereUniqueWithoutPermissionInput | UserPermissionsUpdateWithWhereUniqueWithoutPermissionInput[]
    updateMany?: UserPermissionsUpdateManyWithWhereWithoutPermissionInput | UserPermissionsUpdateManyWithWhereWithoutPermissionInput[]
    deleteMany?: UserPermissionsScalarWhereInput | UserPermissionsScalarWhereInput[]
  }

  export type MenuItemsUncheckedUpdateManyWithoutPermissionNestedInput = {
    create?: XOR<MenuItemsCreateWithoutPermissionInput, MenuItemsUncheckedCreateWithoutPermissionInput> | MenuItemsCreateWithoutPermissionInput[] | MenuItemsUncheckedCreateWithoutPermissionInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutPermissionInput | MenuItemsCreateOrConnectWithoutPermissionInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutPermissionInput | MenuItemsUpsertWithWhereUniqueWithoutPermissionInput[]
    createMany?: MenuItemsCreateManyPermissionInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutPermissionInput | MenuItemsUpdateWithWhereUniqueWithoutPermissionInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutPermissionInput | MenuItemsUpdateManyWithWhereWithoutPermissionInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutRolesInput = {
    create?: XOR<StatusCreateWithoutRolesInput, StatusUncheckedCreateWithoutRolesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutRolesInput
    connect?: StatusWhereUniqueInput
  }

  export type RolePermissionsCreateNestedManyWithoutRoleInput = {
    create?: XOR<RolePermissionsCreateWithoutRoleInput, RolePermissionsUncheckedCreateWithoutRoleInput> | RolePermissionsCreateWithoutRoleInput[] | RolePermissionsUncheckedCreateWithoutRoleInput[]
    connectOrCreate?: RolePermissionsCreateOrConnectWithoutRoleInput | RolePermissionsCreateOrConnectWithoutRoleInput[]
    createMany?: RolePermissionsCreateManyRoleInputEnvelope
    connect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
  }

  export type UserRolesCreateNestedManyWithoutRoleInput = {
    create?: XOR<UserRolesCreateWithoutRoleInput, UserRolesUncheckedCreateWithoutRoleInput> | UserRolesCreateWithoutRoleInput[] | UserRolesUncheckedCreateWithoutRoleInput[]
    connectOrCreate?: UserRolesCreateOrConnectWithoutRoleInput | UserRolesCreateOrConnectWithoutRoleInput[]
    createMany?: UserRolesCreateManyRoleInputEnvelope
    connect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
  }

  export type UserCreateNestedOneWithoutCreated_rolesInput = {
    create?: XOR<UserCreateWithoutCreated_rolesInput, UserUncheckedCreateWithoutCreated_rolesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_rolesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_rolesInput = {
    create?: XOR<UserCreateWithoutUpdated_rolesInput, UserUncheckedCreateWithoutUpdated_rolesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_rolesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_rolesInput = {
    create?: XOR<UserCreateWithoutDeleted_rolesInput, UserUncheckedCreateWithoutDeleted_rolesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_rolesInput
    connect?: UserWhereUniqueInput
  }

  export type RolePermissionsUncheckedCreateNestedManyWithoutRoleInput = {
    create?: XOR<RolePermissionsCreateWithoutRoleInput, RolePermissionsUncheckedCreateWithoutRoleInput> | RolePermissionsCreateWithoutRoleInput[] | RolePermissionsUncheckedCreateWithoutRoleInput[]
    connectOrCreate?: RolePermissionsCreateOrConnectWithoutRoleInput | RolePermissionsCreateOrConnectWithoutRoleInput[]
    createMany?: RolePermissionsCreateManyRoleInputEnvelope
    connect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
  }

  export type UserRolesUncheckedCreateNestedManyWithoutRoleInput = {
    create?: XOR<UserRolesCreateWithoutRoleInput, UserRolesUncheckedCreateWithoutRoleInput> | UserRolesCreateWithoutRoleInput[] | UserRolesUncheckedCreateWithoutRoleInput[]
    connectOrCreate?: UserRolesCreateOrConnectWithoutRoleInput | UserRolesCreateOrConnectWithoutRoleInput[]
    createMany?: UserRolesCreateManyRoleInputEnvelope
    connect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutRolesNestedInput = {
    create?: XOR<StatusCreateWithoutRolesInput, StatusUncheckedCreateWithoutRolesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutRolesInput
    upsert?: StatusUpsertWithoutRolesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutRolesInput, StatusUpdateWithoutRolesInput>, StatusUncheckedUpdateWithoutRolesInput>
  }

  export type RolePermissionsUpdateManyWithoutRoleNestedInput = {
    create?: XOR<RolePermissionsCreateWithoutRoleInput, RolePermissionsUncheckedCreateWithoutRoleInput> | RolePermissionsCreateWithoutRoleInput[] | RolePermissionsUncheckedCreateWithoutRoleInput[]
    connectOrCreate?: RolePermissionsCreateOrConnectWithoutRoleInput | RolePermissionsCreateOrConnectWithoutRoleInput[]
    upsert?: RolePermissionsUpsertWithWhereUniqueWithoutRoleInput | RolePermissionsUpsertWithWhereUniqueWithoutRoleInput[]
    createMany?: RolePermissionsCreateManyRoleInputEnvelope
    set?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    disconnect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    delete?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    connect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    update?: RolePermissionsUpdateWithWhereUniqueWithoutRoleInput | RolePermissionsUpdateWithWhereUniqueWithoutRoleInput[]
    updateMany?: RolePermissionsUpdateManyWithWhereWithoutRoleInput | RolePermissionsUpdateManyWithWhereWithoutRoleInput[]
    deleteMany?: RolePermissionsScalarWhereInput | RolePermissionsScalarWhereInput[]
  }

  export type UserRolesUpdateManyWithoutRoleNestedInput = {
    create?: XOR<UserRolesCreateWithoutRoleInput, UserRolesUncheckedCreateWithoutRoleInput> | UserRolesCreateWithoutRoleInput[] | UserRolesUncheckedCreateWithoutRoleInput[]
    connectOrCreate?: UserRolesCreateOrConnectWithoutRoleInput | UserRolesCreateOrConnectWithoutRoleInput[]
    upsert?: UserRolesUpsertWithWhereUniqueWithoutRoleInput | UserRolesUpsertWithWhereUniqueWithoutRoleInput[]
    createMany?: UserRolesCreateManyRoleInputEnvelope
    set?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    disconnect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    delete?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    connect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    update?: UserRolesUpdateWithWhereUniqueWithoutRoleInput | UserRolesUpdateWithWhereUniqueWithoutRoleInput[]
    updateMany?: UserRolesUpdateManyWithWhereWithoutRoleInput | UserRolesUpdateManyWithWhereWithoutRoleInput[]
    deleteMany?: UserRolesScalarWhereInput | UserRolesScalarWhereInput[]
  }

  export type UserUpdateOneWithoutCreated_rolesNestedInput = {
    create?: XOR<UserCreateWithoutCreated_rolesInput, UserUncheckedCreateWithoutCreated_rolesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_rolesInput
    upsert?: UserUpsertWithoutCreated_rolesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_rolesInput, UserUpdateWithoutCreated_rolesInput>, UserUncheckedUpdateWithoutCreated_rolesInput>
  }

  export type UserUpdateOneWithoutUpdated_rolesNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_rolesInput, UserUncheckedCreateWithoutUpdated_rolesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_rolesInput
    upsert?: UserUpsertWithoutUpdated_rolesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_rolesInput, UserUpdateWithoutUpdated_rolesInput>, UserUncheckedUpdateWithoutUpdated_rolesInput>
  }

  export type UserUpdateOneWithoutDeleted_rolesNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_rolesInput, UserUncheckedCreateWithoutDeleted_rolesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_rolesInput
    upsert?: UserUpsertWithoutDeleted_rolesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_rolesInput, UserUpdateWithoutDeleted_rolesInput>, UserUncheckedUpdateWithoutDeleted_rolesInput>
  }

  export type RolePermissionsUncheckedUpdateManyWithoutRoleNestedInput = {
    create?: XOR<RolePermissionsCreateWithoutRoleInput, RolePermissionsUncheckedCreateWithoutRoleInput> | RolePermissionsCreateWithoutRoleInput[] | RolePermissionsUncheckedCreateWithoutRoleInput[]
    connectOrCreate?: RolePermissionsCreateOrConnectWithoutRoleInput | RolePermissionsCreateOrConnectWithoutRoleInput[]
    upsert?: RolePermissionsUpsertWithWhereUniqueWithoutRoleInput | RolePermissionsUpsertWithWhereUniqueWithoutRoleInput[]
    createMany?: RolePermissionsCreateManyRoleInputEnvelope
    set?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    disconnect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    delete?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    connect?: RolePermissionsWhereUniqueInput | RolePermissionsWhereUniqueInput[]
    update?: RolePermissionsUpdateWithWhereUniqueWithoutRoleInput | RolePermissionsUpdateWithWhereUniqueWithoutRoleInput[]
    updateMany?: RolePermissionsUpdateManyWithWhereWithoutRoleInput | RolePermissionsUpdateManyWithWhereWithoutRoleInput[]
    deleteMany?: RolePermissionsScalarWhereInput | RolePermissionsScalarWhereInput[]
  }

  export type UserRolesUncheckedUpdateManyWithoutRoleNestedInput = {
    create?: XOR<UserRolesCreateWithoutRoleInput, UserRolesUncheckedCreateWithoutRoleInput> | UserRolesCreateWithoutRoleInput[] | UserRolesUncheckedCreateWithoutRoleInput[]
    connectOrCreate?: UserRolesCreateOrConnectWithoutRoleInput | UserRolesCreateOrConnectWithoutRoleInput[]
    upsert?: UserRolesUpsertWithWhereUniqueWithoutRoleInput | UserRolesUpsertWithWhereUniqueWithoutRoleInput[]
    createMany?: UserRolesCreateManyRoleInputEnvelope
    set?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    disconnect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    delete?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    connect?: UserRolesWhereUniqueInput | UserRolesWhereUniqueInput[]
    update?: UserRolesUpdateWithWhereUniqueWithoutRoleInput | UserRolesUpdateWithWhereUniqueWithoutRoleInput[]
    updateMany?: UserRolesUpdateManyWithWhereWithoutRoleInput | UserRolesUpdateManyWithWhereWithoutRoleInput[]
    deleteMany?: UserRolesScalarWhereInput | UserRolesScalarWhereInput[]
  }

  export type RoleCreateNestedOneWithoutPermissionsInput = {
    create?: XOR<RoleCreateWithoutPermissionsInput, RoleUncheckedCreateWithoutPermissionsInput>
    connectOrCreate?: RoleCreateOrConnectWithoutPermissionsInput
    connect?: RoleWhereUniqueInput
  }

  export type PermissionsCreateNestedOneWithoutRolesInput = {
    create?: XOR<PermissionsCreateWithoutRolesInput, PermissionsUncheckedCreateWithoutRolesInput>
    connectOrCreate?: PermissionsCreateOrConnectWithoutRolesInput
    connect?: PermissionsWhereUniqueInput
  }

  export type RoleUpdateOneRequiredWithoutPermissionsNestedInput = {
    create?: XOR<RoleCreateWithoutPermissionsInput, RoleUncheckedCreateWithoutPermissionsInput>
    connectOrCreate?: RoleCreateOrConnectWithoutPermissionsInput
    upsert?: RoleUpsertWithoutPermissionsInput
    connect?: RoleWhereUniqueInput
    update?: XOR<XOR<RoleUpdateToOneWithWhereWithoutPermissionsInput, RoleUpdateWithoutPermissionsInput>, RoleUncheckedUpdateWithoutPermissionsInput>
  }

  export type PermissionsUpdateOneRequiredWithoutRolesNestedInput = {
    create?: XOR<PermissionsCreateWithoutRolesInput, PermissionsUncheckedCreateWithoutRolesInput>
    connectOrCreate?: PermissionsCreateOrConnectWithoutRolesInput
    upsert?: PermissionsUpsertWithoutRolesInput
    connect?: PermissionsWhereUniqueInput
    update?: XOR<XOR<PermissionsUpdateToOneWithWhereWithoutRolesInput, PermissionsUpdateWithoutRolesInput>, PermissionsUncheckedUpdateWithoutRolesInput>
  }

  export type UserCreateNestedOneWithoutRolesInput = {
    create?: XOR<UserCreateWithoutRolesInput, UserUncheckedCreateWithoutRolesInput>
    connectOrCreate?: UserCreateOrConnectWithoutRolesInput
    connect?: UserWhereUniqueInput
  }

  export type RoleCreateNestedOneWithoutUsersInput = {
    create?: XOR<RoleCreateWithoutUsersInput, RoleUncheckedCreateWithoutUsersInput>
    connectOrCreate?: RoleCreateOrConnectWithoutUsersInput
    connect?: RoleWhereUniqueInput
  }

  export type UserUpdateOneRequiredWithoutRolesNestedInput = {
    create?: XOR<UserCreateWithoutRolesInput, UserUncheckedCreateWithoutRolesInput>
    connectOrCreate?: UserCreateOrConnectWithoutRolesInput
    upsert?: UserUpsertWithoutRolesInput
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutRolesInput, UserUpdateWithoutRolesInput>, UserUncheckedUpdateWithoutRolesInput>
  }

  export type RoleUpdateOneRequiredWithoutUsersNestedInput = {
    create?: XOR<RoleCreateWithoutUsersInput, RoleUncheckedCreateWithoutUsersInput>
    connectOrCreate?: RoleCreateOrConnectWithoutUsersInput
    upsert?: RoleUpsertWithoutUsersInput
    connect?: RoleWhereUniqueInput
    update?: XOR<XOR<RoleUpdateToOneWithWhereWithoutUsersInput, RoleUpdateWithoutUsersInput>, RoleUncheckedUpdateWithoutUsersInput>
  }

  export type UserCreateNestedOneWithoutPermissionsInput = {
    create?: XOR<UserCreateWithoutPermissionsInput, UserUncheckedCreateWithoutPermissionsInput>
    connectOrCreate?: UserCreateOrConnectWithoutPermissionsInput
    connect?: UserWhereUniqueInput
  }

  export type PermissionsCreateNestedOneWithoutUsersInput = {
    create?: XOR<PermissionsCreateWithoutUsersInput, PermissionsUncheckedCreateWithoutUsersInput>
    connectOrCreate?: PermissionsCreateOrConnectWithoutUsersInput
    connect?: PermissionsWhereUniqueInput
  }

  export type UserUpdateOneRequiredWithoutPermissionsNestedInput = {
    create?: XOR<UserCreateWithoutPermissionsInput, UserUncheckedCreateWithoutPermissionsInput>
    connectOrCreate?: UserCreateOrConnectWithoutPermissionsInput
    upsert?: UserUpsertWithoutPermissionsInput
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutPermissionsInput, UserUpdateWithoutPermissionsInput>, UserUncheckedUpdateWithoutPermissionsInput>
  }

  export type PermissionsUpdateOneRequiredWithoutUsersNestedInput = {
    create?: XOR<PermissionsCreateWithoutUsersInput, PermissionsUncheckedCreateWithoutUsersInput>
    connectOrCreate?: PermissionsCreateOrConnectWithoutUsersInput
    upsert?: PermissionsUpsertWithoutUsersInput
    connect?: PermissionsWhereUniqueInput
    update?: XOR<XOR<PermissionsUpdateToOneWithWhereWithoutUsersInput, PermissionsUpdateWithoutUsersInput>, PermissionsUncheckedUpdateWithoutUsersInput>
  }

  export type UserCreateNestedOneWithoutOtpsInput = {
    create?: XOR<UserCreateWithoutOtpsInput, UserUncheckedCreateWithoutOtpsInput>
    connectOrCreate?: UserCreateOrConnectWithoutOtpsInput
    connect?: UserWhereUniqueInput
  }

  export type UserUpdateOneRequiredWithoutOtpsNestedInput = {
    create?: XOR<UserCreateWithoutOtpsInput, UserUncheckedCreateWithoutOtpsInput>
    connectOrCreate?: UserCreateOrConnectWithoutOtpsInput
    upsert?: UserUpsertWithoutOtpsInput
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutOtpsInput, UserUpdateWithoutOtpsInput>, UserUncheckedUpdateWithoutOtpsInput>
  }

  export type StatusCreateNestedOneWithoutLanguagesInput = {
    create?: XOR<StatusCreateWithoutLanguagesInput, StatusUncheckedCreateWithoutLanguagesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutLanguagesInput
    connect?: StatusWhereUniqueInput
  }

  export type LanguageContentCreateNestedManyWithoutLanguageInput = {
    create?: XOR<LanguageContentCreateWithoutLanguageInput, LanguageContentUncheckedCreateWithoutLanguageInput> | LanguageContentCreateWithoutLanguageInput[] | LanguageContentUncheckedCreateWithoutLanguageInput[]
    connectOrCreate?: LanguageContentCreateOrConnectWithoutLanguageInput | LanguageContentCreateOrConnectWithoutLanguageInput[]
    createMany?: LanguageContentCreateManyLanguageInputEnvelope
    connect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
  }

  export type UserCreateNestedOneWithoutCreated_languagesInput = {
    create?: XOR<UserCreateWithoutCreated_languagesInput, UserUncheckedCreateWithoutCreated_languagesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_languagesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_languagesInput = {
    create?: XOR<UserCreateWithoutUpdated_languagesInput, UserUncheckedCreateWithoutUpdated_languagesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_languagesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_languagesInput = {
    create?: XOR<UserCreateWithoutDeleted_languagesInput, UserUncheckedCreateWithoutDeleted_languagesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_languagesInput
    connect?: UserWhereUniqueInput
  }

  export type LanguageContentUncheckedCreateNestedManyWithoutLanguageInput = {
    create?: XOR<LanguageContentCreateWithoutLanguageInput, LanguageContentUncheckedCreateWithoutLanguageInput> | LanguageContentCreateWithoutLanguageInput[] | LanguageContentUncheckedCreateWithoutLanguageInput[]
    connectOrCreate?: LanguageContentCreateOrConnectWithoutLanguageInput | LanguageContentCreateOrConnectWithoutLanguageInput[]
    createMany?: LanguageContentCreateManyLanguageInputEnvelope
    connect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutLanguagesNestedInput = {
    create?: XOR<StatusCreateWithoutLanguagesInput, StatusUncheckedCreateWithoutLanguagesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutLanguagesInput
    upsert?: StatusUpsertWithoutLanguagesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutLanguagesInput, StatusUpdateWithoutLanguagesInput>, StatusUncheckedUpdateWithoutLanguagesInput>
  }

  export type LanguageContentUpdateManyWithoutLanguageNestedInput = {
    create?: XOR<LanguageContentCreateWithoutLanguageInput, LanguageContentUncheckedCreateWithoutLanguageInput> | LanguageContentCreateWithoutLanguageInput[] | LanguageContentUncheckedCreateWithoutLanguageInput[]
    connectOrCreate?: LanguageContentCreateOrConnectWithoutLanguageInput | LanguageContentCreateOrConnectWithoutLanguageInput[]
    upsert?: LanguageContentUpsertWithWhereUniqueWithoutLanguageInput | LanguageContentUpsertWithWhereUniqueWithoutLanguageInput[]
    createMany?: LanguageContentCreateManyLanguageInputEnvelope
    set?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    disconnect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    delete?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    connect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    update?: LanguageContentUpdateWithWhereUniqueWithoutLanguageInput | LanguageContentUpdateWithWhereUniqueWithoutLanguageInput[]
    updateMany?: LanguageContentUpdateManyWithWhereWithoutLanguageInput | LanguageContentUpdateManyWithWhereWithoutLanguageInput[]
    deleteMany?: LanguageContentScalarWhereInput | LanguageContentScalarWhereInput[]
  }

  export type UserUpdateOneWithoutCreated_languagesNestedInput = {
    create?: XOR<UserCreateWithoutCreated_languagesInput, UserUncheckedCreateWithoutCreated_languagesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_languagesInput
    upsert?: UserUpsertWithoutCreated_languagesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_languagesInput, UserUpdateWithoutCreated_languagesInput>, UserUncheckedUpdateWithoutCreated_languagesInput>
  }

  export type UserUpdateOneWithoutUpdated_languagesNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_languagesInput, UserUncheckedCreateWithoutUpdated_languagesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_languagesInput
    upsert?: UserUpsertWithoutUpdated_languagesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_languagesInput, UserUpdateWithoutUpdated_languagesInput>, UserUncheckedUpdateWithoutUpdated_languagesInput>
  }

  export type UserUpdateOneWithoutDeleted_languagesNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_languagesInput, UserUncheckedCreateWithoutDeleted_languagesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_languagesInput
    upsert?: UserUpsertWithoutDeleted_languagesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_languagesInput, UserUpdateWithoutDeleted_languagesInput>, UserUncheckedUpdateWithoutDeleted_languagesInput>
  }

  export type LanguageContentUncheckedUpdateManyWithoutLanguageNestedInput = {
    create?: XOR<LanguageContentCreateWithoutLanguageInput, LanguageContentUncheckedCreateWithoutLanguageInput> | LanguageContentCreateWithoutLanguageInput[] | LanguageContentUncheckedCreateWithoutLanguageInput[]
    connectOrCreate?: LanguageContentCreateOrConnectWithoutLanguageInput | LanguageContentCreateOrConnectWithoutLanguageInput[]
    upsert?: LanguageContentUpsertWithWhereUniqueWithoutLanguageInput | LanguageContentUpsertWithWhereUniqueWithoutLanguageInput[]
    createMany?: LanguageContentCreateManyLanguageInputEnvelope
    set?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    disconnect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    delete?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    connect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    update?: LanguageContentUpdateWithWhereUniqueWithoutLanguageInput | LanguageContentUpdateWithWhereUniqueWithoutLanguageInput[]
    updateMany?: LanguageContentUpdateManyWithWhereWithoutLanguageInput | LanguageContentUpdateManyWithWhereWithoutLanguageInput[]
    deleteMany?: LanguageContentScalarWhereInput | LanguageContentScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutLanguage_contentsInput = {
    create?: XOR<StatusCreateWithoutLanguage_contentsInput, StatusUncheckedCreateWithoutLanguage_contentsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutLanguage_contentsInput
    connect?: StatusWhereUniqueInput
  }

  export type LanguageCreateNestedOneWithoutTranslationsInput = {
    create?: XOR<LanguageCreateWithoutTranslationsInput, LanguageUncheckedCreateWithoutTranslationsInput>
    connectOrCreate?: LanguageCreateOrConnectWithoutTranslationsInput
    connect?: LanguageWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutLanguage_contentsNestedInput = {
    create?: XOR<StatusCreateWithoutLanguage_contentsInput, StatusUncheckedCreateWithoutLanguage_contentsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutLanguage_contentsInput
    upsert?: StatusUpsertWithoutLanguage_contentsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutLanguage_contentsInput, StatusUpdateWithoutLanguage_contentsInput>, StatusUncheckedUpdateWithoutLanguage_contentsInput>
  }

  export type LanguageUpdateOneWithoutTranslationsNestedInput = {
    create?: XOR<LanguageCreateWithoutTranslationsInput, LanguageUncheckedCreateWithoutTranslationsInput>
    connectOrCreate?: LanguageCreateOrConnectWithoutTranslationsInput
    upsert?: LanguageUpsertWithoutTranslationsInput
    disconnect?: LanguageWhereInput | boolean
    delete?: LanguageWhereInput | boolean
    connect?: LanguageWhereUniqueInput
    update?: XOR<XOR<LanguageUpdateToOneWithWhereWithoutTranslationsInput, LanguageUpdateWithoutTranslationsInput>, LanguageUncheckedUpdateWithoutTranslationsInput>
  }

  export type StatusCreateNestedOneWithoutMenusInput = {
    create?: XOR<StatusCreateWithoutMenusInput, StatusUncheckedCreateWithoutMenusInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMenusInput
    connect?: StatusWhereUniqueInput
  }

  export type MenuItemsCreateNestedManyWithoutMenusInput = {
    create?: XOR<MenuItemsCreateWithoutMenusInput, MenuItemsUncheckedCreateWithoutMenusInput> | MenuItemsCreateWithoutMenusInput[] | MenuItemsUncheckedCreateWithoutMenusInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutMenusInput | MenuItemsCreateOrConnectWithoutMenusInput[]
    createMany?: MenuItemsCreateManyMenusInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type UserCreateNestedOneWithoutCreated_menusInput = {
    create?: XOR<UserCreateWithoutCreated_menusInput, UserUncheckedCreateWithoutCreated_menusInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_menusInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_menusInput = {
    create?: XOR<UserCreateWithoutUpdated_menusInput, UserUncheckedCreateWithoutUpdated_menusInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_menusInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_menusInput = {
    create?: XOR<UserCreateWithoutDeleted_menusInput, UserUncheckedCreateWithoutDeleted_menusInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_menusInput
    connect?: UserWhereUniqueInput
  }

  export type MenuItemsUncheckedCreateNestedManyWithoutMenusInput = {
    create?: XOR<MenuItemsCreateWithoutMenusInput, MenuItemsUncheckedCreateWithoutMenusInput> | MenuItemsCreateWithoutMenusInput[] | MenuItemsUncheckedCreateWithoutMenusInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutMenusInput | MenuItemsCreateOrConnectWithoutMenusInput[]
    createMany?: MenuItemsCreateManyMenusInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutMenusNestedInput = {
    create?: XOR<StatusCreateWithoutMenusInput, StatusUncheckedCreateWithoutMenusInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMenusInput
    upsert?: StatusUpsertWithoutMenusInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutMenusInput, StatusUpdateWithoutMenusInput>, StatusUncheckedUpdateWithoutMenusInput>
  }

  export type MenuItemsUpdateManyWithoutMenusNestedInput = {
    create?: XOR<MenuItemsCreateWithoutMenusInput, MenuItemsUncheckedCreateWithoutMenusInput> | MenuItemsCreateWithoutMenusInput[] | MenuItemsUncheckedCreateWithoutMenusInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutMenusInput | MenuItemsCreateOrConnectWithoutMenusInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutMenusInput | MenuItemsUpsertWithWhereUniqueWithoutMenusInput[]
    createMany?: MenuItemsCreateManyMenusInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutMenusInput | MenuItemsUpdateWithWhereUniqueWithoutMenusInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutMenusInput | MenuItemsUpdateManyWithWhereWithoutMenusInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type UserUpdateOneWithoutCreated_menusNestedInput = {
    create?: XOR<UserCreateWithoutCreated_menusInput, UserUncheckedCreateWithoutCreated_menusInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_menusInput
    upsert?: UserUpsertWithoutCreated_menusInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_menusInput, UserUpdateWithoutCreated_menusInput>, UserUncheckedUpdateWithoutCreated_menusInput>
  }

  export type UserUpdateOneWithoutUpdated_menusNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_menusInput, UserUncheckedCreateWithoutUpdated_menusInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_menusInput
    upsert?: UserUpsertWithoutUpdated_menusInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_menusInput, UserUpdateWithoutUpdated_menusInput>, UserUncheckedUpdateWithoutUpdated_menusInput>
  }

  export type UserUpdateOneWithoutDeleted_menusNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_menusInput, UserUncheckedCreateWithoutDeleted_menusInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_menusInput
    upsert?: UserUpsertWithoutDeleted_menusInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_menusInput, UserUpdateWithoutDeleted_menusInput>, UserUncheckedUpdateWithoutDeleted_menusInput>
  }

  export type MenuItemsUncheckedUpdateManyWithoutMenusNestedInput = {
    create?: XOR<MenuItemsCreateWithoutMenusInput, MenuItemsUncheckedCreateWithoutMenusInput> | MenuItemsCreateWithoutMenusInput[] | MenuItemsUncheckedCreateWithoutMenusInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutMenusInput | MenuItemsCreateOrConnectWithoutMenusInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutMenusInput | MenuItemsUpsertWithWhereUniqueWithoutMenusInput[]
    createMany?: MenuItemsCreateManyMenusInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutMenusInput | MenuItemsUpdateWithWhereUniqueWithoutMenusInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutMenusInput | MenuItemsUpdateManyWithWhereWithoutMenusInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutMenuitemsInput = {
    create?: XOR<StatusCreateWithoutMenuitemsInput, StatusUncheckedCreateWithoutMenuitemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMenuitemsInput
    connect?: StatusWhereUniqueInput
  }

  export type MenusCreateNestedOneWithoutMenuitemsInput = {
    create?: XOR<MenusCreateWithoutMenuitemsInput, MenusUncheckedCreateWithoutMenuitemsInput>
    connectOrCreate?: MenusCreateOrConnectWithoutMenuitemsInput
    connect?: MenusWhereUniqueInput
  }

  export type MasterEntityCreateNestedOneWithoutMenusInput = {
    create?: XOR<MasterEntityCreateWithoutMenusInput, MasterEntityUncheckedCreateWithoutMenusInput>
    connectOrCreate?: MasterEntityCreateOrConnectWithoutMenusInput
    connect?: MasterEntityWhereUniqueInput
  }

  export type PermissionsCreateNestedOneWithoutMenusInput = {
    create?: XOR<PermissionsCreateWithoutMenusInput, PermissionsUncheckedCreateWithoutMenusInput>
    connectOrCreate?: PermissionsCreateOrConnectWithoutMenusInput
    connect?: PermissionsWhereUniqueInput
  }

  export type MenuItemsCreateNestedOneWithoutChildrenInput = {
    create?: XOR<MenuItemsCreateWithoutChildrenInput, MenuItemsUncheckedCreateWithoutChildrenInput>
    connectOrCreate?: MenuItemsCreateOrConnectWithoutChildrenInput
    connect?: MenuItemsWhereUniqueInput
  }

  export type MenuItemsCreateNestedManyWithoutParentInput = {
    create?: XOR<MenuItemsCreateWithoutParentInput, MenuItemsUncheckedCreateWithoutParentInput> | MenuItemsCreateWithoutParentInput[] | MenuItemsUncheckedCreateWithoutParentInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutParentInput | MenuItemsCreateOrConnectWithoutParentInput[]
    createMany?: MenuItemsCreateManyParentInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type UserCreateNestedOneWithoutCreated_menu_itemsInput = {
    create?: XOR<UserCreateWithoutCreated_menu_itemsInput, UserUncheckedCreateWithoutCreated_menu_itemsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_menu_itemsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_menu_itemsInput = {
    create?: XOR<UserCreateWithoutUpdated_menu_itemsInput, UserUncheckedCreateWithoutUpdated_menu_itemsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_menu_itemsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_menu_itemsInput = {
    create?: XOR<UserCreateWithoutDeleted_menu_itemsInput, UserUncheckedCreateWithoutDeleted_menu_itemsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_menu_itemsInput
    connect?: UserWhereUniqueInput
  }

  export type MenuItemsUncheckedCreateNestedManyWithoutParentInput = {
    create?: XOR<MenuItemsCreateWithoutParentInput, MenuItemsUncheckedCreateWithoutParentInput> | MenuItemsCreateWithoutParentInput[] | MenuItemsUncheckedCreateWithoutParentInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutParentInput | MenuItemsCreateOrConnectWithoutParentInput[]
    createMany?: MenuItemsCreateManyParentInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutMenuitemsNestedInput = {
    create?: XOR<StatusCreateWithoutMenuitemsInput, StatusUncheckedCreateWithoutMenuitemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMenuitemsInput
    upsert?: StatusUpsertWithoutMenuitemsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutMenuitemsInput, StatusUpdateWithoutMenuitemsInput>, StatusUncheckedUpdateWithoutMenuitemsInput>
  }

  export type MenusUpdateOneWithoutMenuitemsNestedInput = {
    create?: XOR<MenusCreateWithoutMenuitemsInput, MenusUncheckedCreateWithoutMenuitemsInput>
    connectOrCreate?: MenusCreateOrConnectWithoutMenuitemsInput
    upsert?: MenusUpsertWithoutMenuitemsInput
    disconnect?: MenusWhereInput | boolean
    delete?: MenusWhereInput | boolean
    connect?: MenusWhereUniqueInput
    update?: XOR<XOR<MenusUpdateToOneWithWhereWithoutMenuitemsInput, MenusUpdateWithoutMenuitemsInput>, MenusUncheckedUpdateWithoutMenuitemsInput>
  }

  export type MasterEntityUpdateOneWithoutMenusNestedInput = {
    create?: XOR<MasterEntityCreateWithoutMenusInput, MasterEntityUncheckedCreateWithoutMenusInput>
    connectOrCreate?: MasterEntityCreateOrConnectWithoutMenusInput
    upsert?: MasterEntityUpsertWithoutMenusInput
    disconnect?: MasterEntityWhereInput | boolean
    delete?: MasterEntityWhereInput | boolean
    connect?: MasterEntityWhereUniqueInput
    update?: XOR<XOR<MasterEntityUpdateToOneWithWhereWithoutMenusInput, MasterEntityUpdateWithoutMenusInput>, MasterEntityUncheckedUpdateWithoutMenusInput>
  }

  export type PermissionsUpdateOneWithoutMenusNestedInput = {
    create?: XOR<PermissionsCreateWithoutMenusInput, PermissionsUncheckedCreateWithoutMenusInput>
    connectOrCreate?: PermissionsCreateOrConnectWithoutMenusInput
    upsert?: PermissionsUpsertWithoutMenusInput
    disconnect?: PermissionsWhereInput | boolean
    delete?: PermissionsWhereInput | boolean
    connect?: PermissionsWhereUniqueInput
    update?: XOR<XOR<PermissionsUpdateToOneWithWhereWithoutMenusInput, PermissionsUpdateWithoutMenusInput>, PermissionsUncheckedUpdateWithoutMenusInput>
  }

  export type MenuItemsUpdateOneWithoutChildrenNestedInput = {
    create?: XOR<MenuItemsCreateWithoutChildrenInput, MenuItemsUncheckedCreateWithoutChildrenInput>
    connectOrCreate?: MenuItemsCreateOrConnectWithoutChildrenInput
    upsert?: MenuItemsUpsertWithoutChildrenInput
    disconnect?: MenuItemsWhereInput | boolean
    delete?: MenuItemsWhereInput | boolean
    connect?: MenuItemsWhereUniqueInput
    update?: XOR<XOR<MenuItemsUpdateToOneWithWhereWithoutChildrenInput, MenuItemsUpdateWithoutChildrenInput>, MenuItemsUncheckedUpdateWithoutChildrenInput>
  }

  export type MenuItemsUpdateManyWithoutParentNestedInput = {
    create?: XOR<MenuItemsCreateWithoutParentInput, MenuItemsUncheckedCreateWithoutParentInput> | MenuItemsCreateWithoutParentInput[] | MenuItemsUncheckedCreateWithoutParentInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutParentInput | MenuItemsCreateOrConnectWithoutParentInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutParentInput | MenuItemsUpsertWithWhereUniqueWithoutParentInput[]
    createMany?: MenuItemsCreateManyParentInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutParentInput | MenuItemsUpdateWithWhereUniqueWithoutParentInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutParentInput | MenuItemsUpdateManyWithWhereWithoutParentInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type UserUpdateOneWithoutCreated_menu_itemsNestedInput = {
    create?: XOR<UserCreateWithoutCreated_menu_itemsInput, UserUncheckedCreateWithoutCreated_menu_itemsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_menu_itemsInput
    upsert?: UserUpsertWithoutCreated_menu_itemsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_menu_itemsInput, UserUpdateWithoutCreated_menu_itemsInput>, UserUncheckedUpdateWithoutCreated_menu_itemsInput>
  }

  export type UserUpdateOneWithoutUpdated_menu_itemsNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_menu_itemsInput, UserUncheckedCreateWithoutUpdated_menu_itemsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_menu_itemsInput
    upsert?: UserUpsertWithoutUpdated_menu_itemsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_menu_itemsInput, UserUpdateWithoutUpdated_menu_itemsInput>, UserUncheckedUpdateWithoutUpdated_menu_itemsInput>
  }

  export type UserUpdateOneWithoutDeleted_menu_itemsNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_menu_itemsInput, UserUncheckedCreateWithoutDeleted_menu_itemsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_menu_itemsInput
    upsert?: UserUpsertWithoutDeleted_menu_itemsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_menu_itemsInput, UserUpdateWithoutDeleted_menu_itemsInput>, UserUncheckedUpdateWithoutDeleted_menu_itemsInput>
  }

  export type MenuItemsUncheckedUpdateManyWithoutParentNestedInput = {
    create?: XOR<MenuItemsCreateWithoutParentInput, MenuItemsUncheckedCreateWithoutParentInput> | MenuItemsCreateWithoutParentInput[] | MenuItemsUncheckedCreateWithoutParentInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutParentInput | MenuItemsCreateOrConnectWithoutParentInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutParentInput | MenuItemsUpsertWithWhereUniqueWithoutParentInput[]
    createMany?: MenuItemsCreateManyParentInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutParentInput | MenuItemsUpdateWithWhereUniqueWithoutParentInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutParentInput | MenuItemsUpdateManyWithWhereWithoutParentInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutMaster_gridsInput = {
    create?: XOR<StatusCreateWithoutMaster_gridsInput, StatusUncheckedCreateWithoutMaster_gridsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMaster_gridsInput
    connect?: StatusWhereUniqueInput
  }

  export type PermissionsCreateNestedManyWithoutEntityInput = {
    create?: XOR<PermissionsCreateWithoutEntityInput, PermissionsUncheckedCreateWithoutEntityInput> | PermissionsCreateWithoutEntityInput[] | PermissionsUncheckedCreateWithoutEntityInput[]
    connectOrCreate?: PermissionsCreateOrConnectWithoutEntityInput | PermissionsCreateOrConnectWithoutEntityInput[]
    createMany?: PermissionsCreateManyEntityInputEnvelope
    connect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
  }

  export type MasterEntityLineItemCreateNestedManyWithoutMaster_gridInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutMaster_gridInput, MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput> | MasterEntityLineItemCreateWithoutMaster_gridInput[] | MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutMaster_gridInput | MasterEntityLineItemCreateOrConnectWithoutMaster_gridInput[]
    createMany?: MasterEntityLineItemCreateManyMaster_gridInputEnvelope
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
  }

  export type MenuItemsCreateNestedManyWithoutEntityInput = {
    create?: XOR<MenuItemsCreateWithoutEntityInput, MenuItemsUncheckedCreateWithoutEntityInput> | MenuItemsCreateWithoutEntityInput[] | MenuItemsUncheckedCreateWithoutEntityInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutEntityInput | MenuItemsCreateOrConnectWithoutEntityInput[]
    createMany?: MenuItemsCreateManyEntityInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type PermissionsUncheckedCreateNestedManyWithoutEntityInput = {
    create?: XOR<PermissionsCreateWithoutEntityInput, PermissionsUncheckedCreateWithoutEntityInput> | PermissionsCreateWithoutEntityInput[] | PermissionsUncheckedCreateWithoutEntityInput[]
    connectOrCreate?: PermissionsCreateOrConnectWithoutEntityInput | PermissionsCreateOrConnectWithoutEntityInput[]
    createMany?: PermissionsCreateManyEntityInputEnvelope
    connect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
  }

  export type MasterEntityLineItemUncheckedCreateNestedManyWithoutMaster_gridInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutMaster_gridInput, MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput> | MasterEntityLineItemCreateWithoutMaster_gridInput[] | MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutMaster_gridInput | MasterEntityLineItemCreateOrConnectWithoutMaster_gridInput[]
    createMany?: MasterEntityLineItemCreateManyMaster_gridInputEnvelope
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
  }

  export type MenuItemsUncheckedCreateNestedManyWithoutEntityInput = {
    create?: XOR<MenuItemsCreateWithoutEntityInput, MenuItemsUncheckedCreateWithoutEntityInput> | MenuItemsCreateWithoutEntityInput[] | MenuItemsUncheckedCreateWithoutEntityInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutEntityInput | MenuItemsCreateOrConnectWithoutEntityInput[]
    createMany?: MenuItemsCreateManyEntityInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  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 StatusUpdateOneRequiredWithoutMaster_gridsNestedInput = {
    create?: XOR<StatusCreateWithoutMaster_gridsInput, StatusUncheckedCreateWithoutMaster_gridsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMaster_gridsInput
    upsert?: StatusUpsertWithoutMaster_gridsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutMaster_gridsInput, StatusUpdateWithoutMaster_gridsInput>, StatusUncheckedUpdateWithoutMaster_gridsInput>
  }

  export type PermissionsUpdateManyWithoutEntityNestedInput = {
    create?: XOR<PermissionsCreateWithoutEntityInput, PermissionsUncheckedCreateWithoutEntityInput> | PermissionsCreateWithoutEntityInput[] | PermissionsUncheckedCreateWithoutEntityInput[]
    connectOrCreate?: PermissionsCreateOrConnectWithoutEntityInput | PermissionsCreateOrConnectWithoutEntityInput[]
    upsert?: PermissionsUpsertWithWhereUniqueWithoutEntityInput | PermissionsUpsertWithWhereUniqueWithoutEntityInput[]
    createMany?: PermissionsCreateManyEntityInputEnvelope
    set?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    disconnect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    delete?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    connect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    update?: PermissionsUpdateWithWhereUniqueWithoutEntityInput | PermissionsUpdateWithWhereUniqueWithoutEntityInput[]
    updateMany?: PermissionsUpdateManyWithWhereWithoutEntityInput | PermissionsUpdateManyWithWhereWithoutEntityInput[]
    deleteMany?: PermissionsScalarWhereInput | PermissionsScalarWhereInput[]
  }

  export type MasterEntityLineItemUpdateManyWithoutMaster_gridNestedInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutMaster_gridInput, MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput> | MasterEntityLineItemCreateWithoutMaster_gridInput[] | MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutMaster_gridInput | MasterEntityLineItemCreateOrConnectWithoutMaster_gridInput[]
    upsert?: MasterEntityLineItemUpsertWithWhereUniqueWithoutMaster_gridInput | MasterEntityLineItemUpsertWithWhereUniqueWithoutMaster_gridInput[]
    createMany?: MasterEntityLineItemCreateManyMaster_gridInputEnvelope
    set?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    disconnect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    delete?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    update?: MasterEntityLineItemUpdateWithWhereUniqueWithoutMaster_gridInput | MasterEntityLineItemUpdateWithWhereUniqueWithoutMaster_gridInput[]
    updateMany?: MasterEntityLineItemUpdateManyWithWhereWithoutMaster_gridInput | MasterEntityLineItemUpdateManyWithWhereWithoutMaster_gridInput[]
    deleteMany?: MasterEntityLineItemScalarWhereInput | MasterEntityLineItemScalarWhereInput[]
  }

  export type MenuItemsUpdateManyWithoutEntityNestedInput = {
    create?: XOR<MenuItemsCreateWithoutEntityInput, MenuItemsUncheckedCreateWithoutEntityInput> | MenuItemsCreateWithoutEntityInput[] | MenuItemsUncheckedCreateWithoutEntityInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutEntityInput | MenuItemsCreateOrConnectWithoutEntityInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutEntityInput | MenuItemsUpsertWithWhereUniqueWithoutEntityInput[]
    createMany?: MenuItemsCreateManyEntityInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutEntityInput | MenuItemsUpdateWithWhereUniqueWithoutEntityInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutEntityInput | MenuItemsUpdateManyWithWhereWithoutEntityInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type PermissionsUncheckedUpdateManyWithoutEntityNestedInput = {
    create?: XOR<PermissionsCreateWithoutEntityInput, PermissionsUncheckedCreateWithoutEntityInput> | PermissionsCreateWithoutEntityInput[] | PermissionsUncheckedCreateWithoutEntityInput[]
    connectOrCreate?: PermissionsCreateOrConnectWithoutEntityInput | PermissionsCreateOrConnectWithoutEntityInput[]
    upsert?: PermissionsUpsertWithWhereUniqueWithoutEntityInput | PermissionsUpsertWithWhereUniqueWithoutEntityInput[]
    createMany?: PermissionsCreateManyEntityInputEnvelope
    set?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    disconnect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    delete?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    connect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    update?: PermissionsUpdateWithWhereUniqueWithoutEntityInput | PermissionsUpdateWithWhereUniqueWithoutEntityInput[]
    updateMany?: PermissionsUpdateManyWithWhereWithoutEntityInput | PermissionsUpdateManyWithWhereWithoutEntityInput[]
    deleteMany?: PermissionsScalarWhereInput | PermissionsScalarWhereInput[]
  }

  export type MasterEntityLineItemUncheckedUpdateManyWithoutMaster_gridNestedInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutMaster_gridInput, MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput> | MasterEntityLineItemCreateWithoutMaster_gridInput[] | MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutMaster_gridInput | MasterEntityLineItemCreateOrConnectWithoutMaster_gridInput[]
    upsert?: MasterEntityLineItemUpsertWithWhereUniqueWithoutMaster_gridInput | MasterEntityLineItemUpsertWithWhereUniqueWithoutMaster_gridInput[]
    createMany?: MasterEntityLineItemCreateManyMaster_gridInputEnvelope
    set?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    disconnect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    delete?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    update?: MasterEntityLineItemUpdateWithWhereUniqueWithoutMaster_gridInput | MasterEntityLineItemUpdateWithWhereUniqueWithoutMaster_gridInput[]
    updateMany?: MasterEntityLineItemUpdateManyWithWhereWithoutMaster_gridInput | MasterEntityLineItemUpdateManyWithWhereWithoutMaster_gridInput[]
    deleteMany?: MasterEntityLineItemScalarWhereInput | MasterEntityLineItemScalarWhereInput[]
  }

  export type MenuItemsUncheckedUpdateManyWithoutEntityNestedInput = {
    create?: XOR<MenuItemsCreateWithoutEntityInput, MenuItemsUncheckedCreateWithoutEntityInput> | MenuItemsCreateWithoutEntityInput[] | MenuItemsUncheckedCreateWithoutEntityInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutEntityInput | MenuItemsCreateOrConnectWithoutEntityInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutEntityInput | MenuItemsUpsertWithWhereUniqueWithoutEntityInput[]
    createMany?: MenuItemsCreateManyEntityInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutEntityInput | MenuItemsUpdateWithWhereUniqueWithoutEntityInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutEntityInput | MenuItemsUpdateManyWithWhereWithoutEntityInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutMaster_grid_line_itemsInput = {
    create?: XOR<StatusCreateWithoutMaster_grid_line_itemsInput, StatusUncheckedCreateWithoutMaster_grid_line_itemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMaster_grid_line_itemsInput
    connect?: StatusWhereUniqueInput
  }

  export type MasterEntityCreateNestedOneWithoutLine_itemsInput = {
    create?: XOR<MasterEntityCreateWithoutLine_itemsInput, MasterEntityUncheckedCreateWithoutLine_itemsInput>
    connectOrCreate?: MasterEntityCreateOrConnectWithoutLine_itemsInput
    connect?: MasterEntityWhereUniqueInput
  }

  export type FieldTypeCreateNestedOneWithoutMaster_grid_lineitemInput = {
    create?: XOR<FieldTypeCreateWithoutMaster_grid_lineitemInput, FieldTypeUncheckedCreateWithoutMaster_grid_lineitemInput>
    connectOrCreate?: FieldTypeCreateOrConnectWithoutMaster_grid_lineitemInput
    connect?: FieldTypeWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutMaster_grid_line_itemsNestedInput = {
    create?: XOR<StatusCreateWithoutMaster_grid_line_itemsInput, StatusUncheckedCreateWithoutMaster_grid_line_itemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMaster_grid_line_itemsInput
    upsert?: StatusUpsertWithoutMaster_grid_line_itemsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutMaster_grid_line_itemsInput, StatusUpdateWithoutMaster_grid_line_itemsInput>, StatusUncheckedUpdateWithoutMaster_grid_line_itemsInput>
  }

  export type MasterEntityUpdateOneRequiredWithoutLine_itemsNestedInput = {
    create?: XOR<MasterEntityCreateWithoutLine_itemsInput, MasterEntityUncheckedCreateWithoutLine_itemsInput>
    connectOrCreate?: MasterEntityCreateOrConnectWithoutLine_itemsInput
    upsert?: MasterEntityUpsertWithoutLine_itemsInput
    connect?: MasterEntityWhereUniqueInput
    update?: XOR<XOR<MasterEntityUpdateToOneWithWhereWithoutLine_itemsInput, MasterEntityUpdateWithoutLine_itemsInput>, MasterEntityUncheckedUpdateWithoutLine_itemsInput>
  }

  export type FieldTypeUpdateOneWithoutMaster_grid_lineitemNestedInput = {
    create?: XOR<FieldTypeCreateWithoutMaster_grid_lineitemInput, FieldTypeUncheckedCreateWithoutMaster_grid_lineitemInput>
    connectOrCreate?: FieldTypeCreateOrConnectWithoutMaster_grid_lineitemInput
    upsert?: FieldTypeUpsertWithoutMaster_grid_lineitemInput
    disconnect?: FieldTypeWhereInput | boolean
    delete?: FieldTypeWhereInput | boolean
    connect?: FieldTypeWhereUniqueInput
    update?: XOR<XOR<FieldTypeUpdateToOneWithWhereWithoutMaster_grid_lineitemInput, FieldTypeUpdateWithoutMaster_grid_lineitemInput>, FieldTypeUncheckedUpdateWithoutMaster_grid_lineitemInput>
  }

  export type StatusCreateNestedOneWithoutField_typesInput = {
    create?: XOR<StatusCreateWithoutField_typesInput, StatusUncheckedCreateWithoutField_typesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutField_typesInput
    connect?: StatusWhereUniqueInput
  }

  export type MasterEntityLineItemCreateNestedManyWithoutField_typeInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutField_typeInput, MasterEntityLineItemUncheckedCreateWithoutField_typeInput> | MasterEntityLineItemCreateWithoutField_typeInput[] | MasterEntityLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutField_typeInput | MasterEntityLineItemCreateOrConnectWithoutField_typeInput[]
    createMany?: MasterEntityLineItemCreateManyField_typeInputEnvelope
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
  }

  export type ImportTemplateLineItemCreateNestedManyWithoutField_typeInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutField_typeInput, ImportTemplateLineItemUncheckedCreateWithoutField_typeInput> | ImportTemplateLineItemCreateWithoutField_typeInput[] | ImportTemplateLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutField_typeInput | ImportTemplateLineItemCreateOrConnectWithoutField_typeInput[]
    createMany?: ImportTemplateLineItemCreateManyField_typeInputEnvelope
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
  }

  export type ExportTemplateLineItemCreateNestedManyWithoutField_typeInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutField_typeInput, ExportTemplateLineItemUncheckedCreateWithoutField_typeInput> | ExportTemplateLineItemCreateWithoutField_typeInput[] | ExportTemplateLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutField_typeInput | ExportTemplateLineItemCreateOrConnectWithoutField_typeInput[]
    createMany?: ExportTemplateLineItemCreateManyField_typeInputEnvelope
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
  }

  export type MasterEntityLineItemUncheckedCreateNestedManyWithoutField_typeInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutField_typeInput, MasterEntityLineItemUncheckedCreateWithoutField_typeInput> | MasterEntityLineItemCreateWithoutField_typeInput[] | MasterEntityLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutField_typeInput | MasterEntityLineItemCreateOrConnectWithoutField_typeInput[]
    createMany?: MasterEntityLineItemCreateManyField_typeInputEnvelope
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
  }

  export type ImportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutField_typeInput, ImportTemplateLineItemUncheckedCreateWithoutField_typeInput> | ImportTemplateLineItemCreateWithoutField_typeInput[] | ImportTemplateLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutField_typeInput | ImportTemplateLineItemCreateOrConnectWithoutField_typeInput[]
    createMany?: ImportTemplateLineItemCreateManyField_typeInputEnvelope
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
  }

  export type ExportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutField_typeInput, ExportTemplateLineItemUncheckedCreateWithoutField_typeInput> | ExportTemplateLineItemCreateWithoutField_typeInput[] | ExportTemplateLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutField_typeInput | ExportTemplateLineItemCreateOrConnectWithoutField_typeInput[]
    createMany?: ExportTemplateLineItemCreateManyField_typeInputEnvelope
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutField_typesNestedInput = {
    create?: XOR<StatusCreateWithoutField_typesInput, StatusUncheckedCreateWithoutField_typesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutField_typesInput
    upsert?: StatusUpsertWithoutField_typesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutField_typesInput, StatusUpdateWithoutField_typesInput>, StatusUncheckedUpdateWithoutField_typesInput>
  }

  export type MasterEntityLineItemUpdateManyWithoutField_typeNestedInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutField_typeInput, MasterEntityLineItemUncheckedCreateWithoutField_typeInput> | MasterEntityLineItemCreateWithoutField_typeInput[] | MasterEntityLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutField_typeInput | MasterEntityLineItemCreateOrConnectWithoutField_typeInput[]
    upsert?: MasterEntityLineItemUpsertWithWhereUniqueWithoutField_typeInput | MasterEntityLineItemUpsertWithWhereUniqueWithoutField_typeInput[]
    createMany?: MasterEntityLineItemCreateManyField_typeInputEnvelope
    set?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    disconnect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    delete?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    update?: MasterEntityLineItemUpdateWithWhereUniqueWithoutField_typeInput | MasterEntityLineItemUpdateWithWhereUniqueWithoutField_typeInput[]
    updateMany?: MasterEntityLineItemUpdateManyWithWhereWithoutField_typeInput | MasterEntityLineItemUpdateManyWithWhereWithoutField_typeInput[]
    deleteMany?: MasterEntityLineItemScalarWhereInput | MasterEntityLineItemScalarWhereInput[]
  }

  export type ImportTemplateLineItemUpdateManyWithoutField_typeNestedInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutField_typeInput, ImportTemplateLineItemUncheckedCreateWithoutField_typeInput> | ImportTemplateLineItemCreateWithoutField_typeInput[] | ImportTemplateLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutField_typeInput | ImportTemplateLineItemCreateOrConnectWithoutField_typeInput[]
    upsert?: ImportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput | ImportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput[]
    createMany?: ImportTemplateLineItemCreateManyField_typeInputEnvelope
    set?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    disconnect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    delete?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    update?: ImportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput | ImportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput[]
    updateMany?: ImportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput | ImportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput[]
    deleteMany?: ImportTemplateLineItemScalarWhereInput | ImportTemplateLineItemScalarWhereInput[]
  }

  export type ExportTemplateLineItemUpdateManyWithoutField_typeNestedInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutField_typeInput, ExportTemplateLineItemUncheckedCreateWithoutField_typeInput> | ExportTemplateLineItemCreateWithoutField_typeInput[] | ExportTemplateLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutField_typeInput | ExportTemplateLineItemCreateOrConnectWithoutField_typeInput[]
    upsert?: ExportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput | ExportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput[]
    createMany?: ExportTemplateLineItemCreateManyField_typeInputEnvelope
    set?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    disconnect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    delete?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    update?: ExportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput | ExportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput[]
    updateMany?: ExportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput | ExportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput[]
    deleteMany?: ExportTemplateLineItemScalarWhereInput | ExportTemplateLineItemScalarWhereInput[]
  }

  export type MasterEntityLineItemUncheckedUpdateManyWithoutField_typeNestedInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutField_typeInput, MasterEntityLineItemUncheckedCreateWithoutField_typeInput> | MasterEntityLineItemCreateWithoutField_typeInput[] | MasterEntityLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutField_typeInput | MasterEntityLineItemCreateOrConnectWithoutField_typeInput[]
    upsert?: MasterEntityLineItemUpsertWithWhereUniqueWithoutField_typeInput | MasterEntityLineItemUpsertWithWhereUniqueWithoutField_typeInput[]
    createMany?: MasterEntityLineItemCreateManyField_typeInputEnvelope
    set?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    disconnect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    delete?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    update?: MasterEntityLineItemUpdateWithWhereUniqueWithoutField_typeInput | MasterEntityLineItemUpdateWithWhereUniqueWithoutField_typeInput[]
    updateMany?: MasterEntityLineItemUpdateManyWithWhereWithoutField_typeInput | MasterEntityLineItemUpdateManyWithWhereWithoutField_typeInput[]
    deleteMany?: MasterEntityLineItemScalarWhereInput | MasterEntityLineItemScalarWhereInput[]
  }

  export type ImportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutField_typeInput, ImportTemplateLineItemUncheckedCreateWithoutField_typeInput> | ImportTemplateLineItemCreateWithoutField_typeInput[] | ImportTemplateLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutField_typeInput | ImportTemplateLineItemCreateOrConnectWithoutField_typeInput[]
    upsert?: ImportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput | ImportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput[]
    createMany?: ImportTemplateLineItemCreateManyField_typeInputEnvelope
    set?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    disconnect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    delete?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    update?: ImportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput | ImportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput[]
    updateMany?: ImportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput | ImportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput[]
    deleteMany?: ImportTemplateLineItemScalarWhereInput | ImportTemplateLineItemScalarWhereInput[]
  }

  export type ExportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutField_typeInput, ExportTemplateLineItemUncheckedCreateWithoutField_typeInput> | ExportTemplateLineItemCreateWithoutField_typeInput[] | ExportTemplateLineItemUncheckedCreateWithoutField_typeInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutField_typeInput | ExportTemplateLineItemCreateOrConnectWithoutField_typeInput[]
    upsert?: ExportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput | ExportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput[]
    createMany?: ExportTemplateLineItemCreateManyField_typeInputEnvelope
    set?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    disconnect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    delete?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    update?: ExportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput | ExportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput[]
    updateMany?: ExportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput | ExportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput[]
    deleteMany?: ExportTemplateLineItemScalarWhereInput | ExportTemplateLineItemScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutMenu_typesInput = {
    create?: XOR<StatusCreateWithoutMenu_typesInput, StatusUncheckedCreateWithoutMenu_typesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMenu_typesInput
    connect?: StatusWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutMenu_typesNestedInput = {
    create?: XOR<StatusCreateWithoutMenu_typesInput, StatusUncheckedCreateWithoutMenu_typesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutMenu_typesInput
    upsert?: StatusUpsertWithoutMenu_typesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutMenu_typesInput, StatusUpdateWithoutMenu_typesInput>, StatusUncheckedUpdateWithoutMenu_typesInput>
  }

  export type StatusCreateNestedOneWithoutEmail_template_processesInput = {
    create?: XOR<StatusCreateWithoutEmail_template_processesInput, StatusUncheckedCreateWithoutEmail_template_processesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_template_processesInput
    connect?: StatusWhereUniqueInput
  }

  export type EmailTemplateProcessTagsMappingCreateNestedManyWithoutEmail_template_processInput = {
    create?: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput[] | EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_processInput[]
    createMany?: EmailTemplateProcessTagsMappingCreateManyEmail_template_processInputEnvelope
    connect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
  }

  export type EmailTemplateCreateNestedManyWithoutEmail_template_processInput = {
    create?: XOR<EmailTemplateCreateWithoutEmail_template_processInput, EmailTemplateUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateCreateWithoutEmail_template_processInput[] | EmailTemplateUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutEmail_template_processInput | EmailTemplateCreateOrConnectWithoutEmail_template_processInput[]
    createMany?: EmailTemplateCreateManyEmail_template_processInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailTemplateAssignmentCreateNestedManyWithoutEmail_template_processInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutEmail_template_processInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateAssignmentCreateWithoutEmail_template_processInput[] | EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutEmail_template_processInput | EmailTemplateAssignmentCreateOrConnectWithoutEmail_template_processInput[]
    createMany?: EmailTemplateAssignmentCreateManyEmail_template_processInputEnvelope
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
  }

  export type EmailTemplateProcessTagsMappingUncheckedCreateNestedManyWithoutEmail_template_processInput = {
    create?: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput[] | EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_processInput[]
    createMany?: EmailTemplateProcessTagsMappingCreateManyEmail_template_processInputEnvelope
    connect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
  }

  export type EmailTemplateUncheckedCreateNestedManyWithoutEmail_template_processInput = {
    create?: XOR<EmailTemplateCreateWithoutEmail_template_processInput, EmailTemplateUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateCreateWithoutEmail_template_processInput[] | EmailTemplateUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutEmail_template_processInput | EmailTemplateCreateOrConnectWithoutEmail_template_processInput[]
    createMany?: EmailTemplateCreateManyEmail_template_processInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_template_processInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutEmail_template_processInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateAssignmentCreateWithoutEmail_template_processInput[] | EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutEmail_template_processInput | EmailTemplateAssignmentCreateOrConnectWithoutEmail_template_processInput[]
    createMany?: EmailTemplateAssignmentCreateManyEmail_template_processInputEnvelope
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutEmail_template_processesNestedInput = {
    create?: XOR<StatusCreateWithoutEmail_template_processesInput, StatusUncheckedCreateWithoutEmail_template_processesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_template_processesInput
    upsert?: StatusUpsertWithoutEmail_template_processesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutEmail_template_processesInput, StatusUpdateWithoutEmail_template_processesInput>, StatusUncheckedUpdateWithoutEmail_template_processesInput>
  }

  export type EmailTemplateProcessTagsMappingUpdateManyWithoutEmail_template_processNestedInput = {
    create?: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput[] | EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_processInput[]
    upsert?: EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_processInput[]
    createMany?: EmailTemplateProcessTagsMappingCreateManyEmail_template_processInputEnvelope
    set?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    disconnect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    delete?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    connect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    update?: EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_processInput[]
    updateMany?: EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_processInput[]
    deleteMany?: EmailTemplateProcessTagsMappingScalarWhereInput | EmailTemplateProcessTagsMappingScalarWhereInput[]
  }

  export type EmailTemplateUpdateManyWithoutEmail_template_processNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutEmail_template_processInput, EmailTemplateUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateCreateWithoutEmail_template_processInput[] | EmailTemplateUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutEmail_template_processInput | EmailTemplateCreateOrConnectWithoutEmail_template_processInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateUpsertWithWhereUniqueWithoutEmail_template_processInput[]
    createMany?: EmailTemplateCreateManyEmail_template_processInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateUpdateWithWhereUniqueWithoutEmail_template_processInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutEmail_template_processInput | EmailTemplateUpdateManyWithWhereWithoutEmail_template_processInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailTemplateAssignmentUpdateManyWithoutEmail_template_processNestedInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutEmail_template_processInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateAssignmentCreateWithoutEmail_template_processInput[] | EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutEmail_template_processInput | EmailTemplateAssignmentCreateOrConnectWithoutEmail_template_processInput[]
    upsert?: EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_template_processInput[]
    createMany?: EmailTemplateAssignmentCreateManyEmail_template_processInputEnvelope
    set?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    disconnect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    delete?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    update?: EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_template_processInput[]
    updateMany?: EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_template_processInput | EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_template_processInput[]
    deleteMany?: EmailTemplateAssignmentScalarWhereInput | EmailTemplateAssignmentScalarWhereInput[]
  }

  export type EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_processNestedInput = {
    create?: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput[] | EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_processInput[]
    upsert?: EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_processInput[]
    createMany?: EmailTemplateProcessTagsMappingCreateManyEmail_template_processInputEnvelope
    set?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    disconnect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    delete?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    connect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    update?: EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_processInput[]
    updateMany?: EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_processInput | EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_processInput[]
    deleteMany?: EmailTemplateProcessTagsMappingScalarWhereInput | EmailTemplateProcessTagsMappingScalarWhereInput[]
  }

  export type EmailTemplateUncheckedUpdateManyWithoutEmail_template_processNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutEmail_template_processInput, EmailTemplateUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateCreateWithoutEmail_template_processInput[] | EmailTemplateUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutEmail_template_processInput | EmailTemplateCreateOrConnectWithoutEmail_template_processInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateUpsertWithWhereUniqueWithoutEmail_template_processInput[]
    createMany?: EmailTemplateCreateManyEmail_template_processInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateUpdateWithWhereUniqueWithoutEmail_template_processInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutEmail_template_processInput | EmailTemplateUpdateManyWithWhereWithoutEmail_template_processInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_template_processNestedInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutEmail_template_processInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput> | EmailTemplateAssignmentCreateWithoutEmail_template_processInput[] | EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutEmail_template_processInput | EmailTemplateAssignmentCreateOrConnectWithoutEmail_template_processInput[]
    upsert?: EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_template_processInput[]
    createMany?: EmailTemplateAssignmentCreateManyEmail_template_processInputEnvelope
    set?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    disconnect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    delete?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    update?: EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_template_processInput | EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_template_processInput[]
    updateMany?: EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_template_processInput | EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_template_processInput[]
    deleteMany?: EmailTemplateAssignmentScalarWhereInput | EmailTemplateAssignmentScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutEmail_template_tagsInput = {
    create?: XOR<StatusCreateWithoutEmail_template_tagsInput, StatusUncheckedCreateWithoutEmail_template_tagsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_template_tagsInput
    connect?: StatusWhereUniqueInput
  }

  export type EmailTemplateProcessTagsMappingCreateNestedManyWithoutEmail_template_tagInput = {
    create?: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput> | EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput[] | EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput[]
    connectOrCreate?: EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_tagInput[]
    createMany?: EmailTemplateProcessTagsMappingCreateManyEmail_template_tagInputEnvelope
    connect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
  }

  export type EmailTemplateProcessTagsMappingUncheckedCreateNestedManyWithoutEmail_template_tagInput = {
    create?: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput> | EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput[] | EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput[]
    connectOrCreate?: EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_tagInput[]
    createMany?: EmailTemplateProcessTagsMappingCreateManyEmail_template_tagInputEnvelope
    connect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutEmail_template_tagsNestedInput = {
    create?: XOR<StatusCreateWithoutEmail_template_tagsInput, StatusUncheckedCreateWithoutEmail_template_tagsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_template_tagsInput
    upsert?: StatusUpsertWithoutEmail_template_tagsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutEmail_template_tagsInput, StatusUpdateWithoutEmail_template_tagsInput>, StatusUncheckedUpdateWithoutEmail_template_tagsInput>
  }

  export type EmailTemplateProcessTagsMappingUpdateManyWithoutEmail_template_tagNestedInput = {
    create?: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput> | EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput[] | EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput[]
    connectOrCreate?: EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_tagInput[]
    upsert?: EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_tagInput[]
    createMany?: EmailTemplateProcessTagsMappingCreateManyEmail_template_tagInputEnvelope
    set?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    disconnect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    delete?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    connect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    update?: EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_tagInput[]
    updateMany?: EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_tagInput[]
    deleteMany?: EmailTemplateProcessTagsMappingScalarWhereInput | EmailTemplateProcessTagsMappingScalarWhereInput[]
  }

  export type EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_tagNestedInput = {
    create?: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput> | EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput[] | EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput[]
    connectOrCreate?: EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_tagInput[]
    upsert?: EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_tagInput[]
    createMany?: EmailTemplateProcessTagsMappingCreateManyEmail_template_tagInputEnvelope
    set?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    disconnect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    delete?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    connect?: EmailTemplateProcessTagsMappingWhereUniqueInput | EmailTemplateProcessTagsMappingWhereUniqueInput[]
    update?: EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_tagInput[]
    updateMany?: EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_tagInput | EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_tagInput[]
    deleteMany?: EmailTemplateProcessTagsMappingScalarWhereInput | EmailTemplateProcessTagsMappingScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutEmail_template_receiver_tagsInput = {
    create?: XOR<StatusCreateWithoutEmail_template_receiver_tagsInput, StatusUncheckedCreateWithoutEmail_template_receiver_tagsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_template_receiver_tagsInput
    connect?: StatusWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutEmail_template_receiver_tagsNestedInput = {
    create?: XOR<StatusCreateWithoutEmail_template_receiver_tagsInput, StatusUncheckedCreateWithoutEmail_template_receiver_tagsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_template_receiver_tagsInput
    upsert?: StatusUpsertWithoutEmail_template_receiver_tagsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutEmail_template_receiver_tagsInput, StatusUpdateWithoutEmail_template_receiver_tagsInput>, StatusUncheckedUpdateWithoutEmail_template_receiver_tagsInput>
  }

  export type EmailTemplateProcessCreateNestedOneWithoutEmail_template_groupsInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutEmail_template_groupsInput, EmailTemplateProcessUncheckedCreateWithoutEmail_template_groupsInput>
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutEmail_template_groupsInput
    connect?: EmailTemplateProcessWhereUniqueInput
  }

  export type EmailTemplateTagCreateNestedOneWithoutEmail_template_groupsInput = {
    create?: XOR<EmailTemplateTagCreateWithoutEmail_template_groupsInput, EmailTemplateTagUncheckedCreateWithoutEmail_template_groupsInput>
    connectOrCreate?: EmailTemplateTagCreateOrConnectWithoutEmail_template_groupsInput
    connect?: EmailTemplateTagWhereUniqueInput
  }

  export type EmailTemplateProcessUpdateOneRequiredWithoutEmail_template_groupsNestedInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutEmail_template_groupsInput, EmailTemplateProcessUncheckedCreateWithoutEmail_template_groupsInput>
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutEmail_template_groupsInput
    upsert?: EmailTemplateProcessUpsertWithoutEmail_template_groupsInput
    connect?: EmailTemplateProcessWhereUniqueInput
    update?: XOR<XOR<EmailTemplateProcessUpdateToOneWithWhereWithoutEmail_template_groupsInput, EmailTemplateProcessUpdateWithoutEmail_template_groupsInput>, EmailTemplateProcessUncheckedUpdateWithoutEmail_template_groupsInput>
  }

  export type EmailTemplateTagUpdateOneRequiredWithoutEmail_template_groupsNestedInput = {
    create?: XOR<EmailTemplateTagCreateWithoutEmail_template_groupsInput, EmailTemplateTagUncheckedCreateWithoutEmail_template_groupsInput>
    connectOrCreate?: EmailTemplateTagCreateOrConnectWithoutEmail_template_groupsInput
    upsert?: EmailTemplateTagUpsertWithoutEmail_template_groupsInput
    connect?: EmailTemplateTagWhereUniqueInput
    update?: XOR<XOR<EmailTemplateTagUpdateToOneWithWhereWithoutEmail_template_groupsInput, EmailTemplateTagUpdateWithoutEmail_template_groupsInput>, EmailTemplateTagUncheckedUpdateWithoutEmail_template_groupsInput>
  }

  export type StatusCreateNestedOneWithoutEmail_templatesInput = {
    create?: XOR<StatusCreateWithoutEmail_templatesInput, StatusUncheckedCreateWithoutEmail_templatesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_templatesInput
    connect?: StatusWhereUniqueInput
  }

  export type EmailTemplateProcessCreateNestedOneWithoutEmail_templatesInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutEmail_templatesInput, EmailTemplateProcessUncheckedCreateWithoutEmail_templatesInput>
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutEmail_templatesInput
    connect?: EmailTemplateProcessWhereUniqueInput
  }

  export type EmailTemplateAssignmentCreateNestedManyWithoutEmail_templateInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutEmail_templateInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput> | EmailTemplateAssignmentCreateWithoutEmail_templateInput[] | EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutEmail_templateInput | EmailTemplateAssignmentCreateOrConnectWithoutEmail_templateInput[]
    createMany?: EmailTemplateAssignmentCreateManyEmail_templateInputEnvelope
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
  }

  export type UserCreateNestedOneWithoutCreated_email_templatesInput = {
    create?: XOR<UserCreateWithoutCreated_email_templatesInput, UserUncheckedCreateWithoutCreated_email_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_email_templatesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_email_templatesInput = {
    create?: XOR<UserCreateWithoutUpdated_email_templatesInput, UserUncheckedCreateWithoutUpdated_email_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_email_templatesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_email_templatesInput = {
    create?: XOR<UserCreateWithoutDeleted_email_templatesInput, UserUncheckedCreateWithoutDeleted_email_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_email_templatesInput
    connect?: UserWhereUniqueInput
  }

  export type EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_templateInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutEmail_templateInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput> | EmailTemplateAssignmentCreateWithoutEmail_templateInput[] | EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutEmail_templateInput | EmailTemplateAssignmentCreateOrConnectWithoutEmail_templateInput[]
    createMany?: EmailTemplateAssignmentCreateManyEmail_templateInputEnvelope
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutEmail_templatesNestedInput = {
    create?: XOR<StatusCreateWithoutEmail_templatesInput, StatusUncheckedCreateWithoutEmail_templatesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_templatesInput
    upsert?: StatusUpsertWithoutEmail_templatesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutEmail_templatesInput, StatusUpdateWithoutEmail_templatesInput>, StatusUncheckedUpdateWithoutEmail_templatesInput>
  }

  export type EmailTemplateProcessUpdateOneRequiredWithoutEmail_templatesNestedInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutEmail_templatesInput, EmailTemplateProcessUncheckedCreateWithoutEmail_templatesInput>
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutEmail_templatesInput
    upsert?: EmailTemplateProcessUpsertWithoutEmail_templatesInput
    connect?: EmailTemplateProcessWhereUniqueInput
    update?: XOR<XOR<EmailTemplateProcessUpdateToOneWithWhereWithoutEmail_templatesInput, EmailTemplateProcessUpdateWithoutEmail_templatesInput>, EmailTemplateProcessUncheckedUpdateWithoutEmail_templatesInput>
  }

  export type EmailTemplateAssignmentUpdateManyWithoutEmail_templateNestedInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutEmail_templateInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput> | EmailTemplateAssignmentCreateWithoutEmail_templateInput[] | EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutEmail_templateInput | EmailTemplateAssignmentCreateOrConnectWithoutEmail_templateInput[]
    upsert?: EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_templateInput | EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_templateInput[]
    createMany?: EmailTemplateAssignmentCreateManyEmail_templateInputEnvelope
    set?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    disconnect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    delete?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    update?: EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_templateInput | EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_templateInput[]
    updateMany?: EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_templateInput | EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_templateInput[]
    deleteMany?: EmailTemplateAssignmentScalarWhereInput | EmailTemplateAssignmentScalarWhereInput[]
  }

  export type UserUpdateOneWithoutCreated_email_templatesNestedInput = {
    create?: XOR<UserCreateWithoutCreated_email_templatesInput, UserUncheckedCreateWithoutCreated_email_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_email_templatesInput
    upsert?: UserUpsertWithoutCreated_email_templatesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_email_templatesInput, UserUpdateWithoutCreated_email_templatesInput>, UserUncheckedUpdateWithoutCreated_email_templatesInput>
  }

  export type UserUpdateOneWithoutUpdated_email_templatesNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_email_templatesInput, UserUncheckedCreateWithoutUpdated_email_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_email_templatesInput
    upsert?: UserUpsertWithoutUpdated_email_templatesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_email_templatesInput, UserUpdateWithoutUpdated_email_templatesInput>, UserUncheckedUpdateWithoutUpdated_email_templatesInput>
  }

  export type UserUpdateOneWithoutDeleted_email_templatesNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_email_templatesInput, UserUncheckedCreateWithoutDeleted_email_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_email_templatesInput
    upsert?: UserUpsertWithoutDeleted_email_templatesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_email_templatesInput, UserUpdateWithoutDeleted_email_templatesInput>, UserUncheckedUpdateWithoutDeleted_email_templatesInput>
  }

  export type EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_templateNestedInput = {
    create?: XOR<EmailTemplateAssignmentCreateWithoutEmail_templateInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput> | EmailTemplateAssignmentCreateWithoutEmail_templateInput[] | EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput[]
    connectOrCreate?: EmailTemplateAssignmentCreateOrConnectWithoutEmail_templateInput | EmailTemplateAssignmentCreateOrConnectWithoutEmail_templateInput[]
    upsert?: EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_templateInput | EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_templateInput[]
    createMany?: EmailTemplateAssignmentCreateManyEmail_templateInputEnvelope
    set?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    disconnect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    delete?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    connect?: EmailTemplateAssignmentWhereUniqueInput | EmailTemplateAssignmentWhereUniqueInput[]
    update?: EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_templateInput | EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_templateInput[]
    updateMany?: EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_templateInput | EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_templateInput[]
    deleteMany?: EmailTemplateAssignmentScalarWhereInput | EmailTemplateAssignmentScalarWhereInput[]
  }

  export type EmailTemplateProcessCreateNestedOneWithoutEmail_template_assignmentsInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutEmail_template_assignmentsInput, EmailTemplateProcessUncheckedCreateWithoutEmail_template_assignmentsInput>
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutEmail_template_assignmentsInput
    connect?: EmailTemplateProcessWhereUniqueInput
  }

  export type EmailTemplateCreateNestedOneWithoutEmail_template_assignmentsInput = {
    create?: XOR<EmailTemplateCreateWithoutEmail_template_assignmentsInput, EmailTemplateUncheckedCreateWithoutEmail_template_assignmentsInput>
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutEmail_template_assignmentsInput
    connect?: EmailTemplateWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_email_template_assignmentsInput = {
    create?: XOR<UserCreateWithoutCreated_email_template_assignmentsInput, UserUncheckedCreateWithoutCreated_email_template_assignmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_email_template_assignmentsInput
    connect?: UserWhereUniqueInput
  }

  export type EmailTemplateProcessUpdateOneRequiredWithoutEmail_template_assignmentsNestedInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutEmail_template_assignmentsInput, EmailTemplateProcessUncheckedCreateWithoutEmail_template_assignmentsInput>
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutEmail_template_assignmentsInput
    upsert?: EmailTemplateProcessUpsertWithoutEmail_template_assignmentsInput
    connect?: EmailTemplateProcessWhereUniqueInput
    update?: XOR<XOR<EmailTemplateProcessUpdateToOneWithWhereWithoutEmail_template_assignmentsInput, EmailTemplateProcessUpdateWithoutEmail_template_assignmentsInput>, EmailTemplateProcessUncheckedUpdateWithoutEmail_template_assignmentsInput>
  }

  export type EmailTemplateUpdateOneRequiredWithoutEmail_template_assignmentsNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutEmail_template_assignmentsInput, EmailTemplateUncheckedCreateWithoutEmail_template_assignmentsInput>
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutEmail_template_assignmentsInput
    upsert?: EmailTemplateUpsertWithoutEmail_template_assignmentsInput
    connect?: EmailTemplateWhereUniqueInput
    update?: XOR<XOR<EmailTemplateUpdateToOneWithWhereWithoutEmail_template_assignmentsInput, EmailTemplateUpdateWithoutEmail_template_assignmentsInput>, EmailTemplateUncheckedUpdateWithoutEmail_template_assignmentsInput>
  }

  export type UserUpdateOneRequiredWithoutCreated_email_template_assignmentsNestedInput = {
    create?: XOR<UserCreateWithoutCreated_email_template_assignmentsInput, UserUncheckedCreateWithoutCreated_email_template_assignmentsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_email_template_assignmentsInput
    upsert?: UserUpsertWithoutCreated_email_template_assignmentsInput
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_email_template_assignmentsInput, UserUpdateWithoutCreated_email_template_assignmentsInput>, UserUncheckedUpdateWithoutCreated_email_template_assignmentsInput>
  }

  export type StatusCreateNestedOneWithoutEmail_process_jobsInput = {
    create?: XOR<StatusCreateWithoutEmail_process_jobsInput, StatusUncheckedCreateWithoutEmail_process_jobsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_process_jobsInput
    connect?: StatusWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_email_process_jobsInput = {
    create?: XOR<UserCreateWithoutCreated_email_process_jobsInput, UserUncheckedCreateWithoutCreated_email_process_jobsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_email_process_jobsInput
    connect?: UserWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutEmail_process_jobsNestedInput = {
    create?: XOR<StatusCreateWithoutEmail_process_jobsInput, StatusUncheckedCreateWithoutEmail_process_jobsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutEmail_process_jobsInput
    upsert?: StatusUpsertWithoutEmail_process_jobsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutEmail_process_jobsInput, StatusUpdateWithoutEmail_process_jobsInput>, StatusUncheckedUpdateWithoutEmail_process_jobsInput>
  }

  export type UserUpdateOneWithoutCreated_email_process_jobsNestedInput = {
    create?: XOR<UserCreateWithoutCreated_email_process_jobsInput, UserUncheckedCreateWithoutCreated_email_process_jobsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_email_process_jobsInput
    upsert?: UserUpsertWithoutCreated_email_process_jobsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_email_process_jobsInput, UserUpdateWithoutCreated_email_process_jobsInput>, UserUncheckedUpdateWithoutCreated_email_process_jobsInput>
  }

  export type StatusCreateNestedOneWithoutNotification_jobInput = {
    create?: XOR<StatusCreateWithoutNotification_jobInput, StatusUncheckedCreateWithoutNotification_jobInput>
    connectOrCreate?: StatusCreateOrConnectWithoutNotification_jobInput
    connect?: StatusWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_notification_jobInput = {
    create?: XOR<UserCreateWithoutCreated_notification_jobInput, UserUncheckedCreateWithoutCreated_notification_jobInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_notification_jobInput
    connect?: UserWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutNotification_jobNestedInput = {
    create?: XOR<StatusCreateWithoutNotification_jobInput, StatusUncheckedCreateWithoutNotification_jobInput>
    connectOrCreate?: StatusCreateOrConnectWithoutNotification_jobInput
    upsert?: StatusUpsertWithoutNotification_jobInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutNotification_jobInput, StatusUpdateWithoutNotification_jobInput>, StatusUncheckedUpdateWithoutNotification_jobInput>
  }

  export type UserUpdateOneWithoutCreated_notification_jobNestedInput = {
    create?: XOR<UserCreateWithoutCreated_notification_jobInput, UserUncheckedCreateWithoutCreated_notification_jobInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_notification_jobInput
    upsert?: UserUpsertWithoutCreated_notification_jobInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_notification_jobInput, UserUpdateWithoutCreated_notification_jobInput>, UserUncheckedUpdateWithoutCreated_notification_jobInput>
  }

  export type StatusCreateNestedOneWithoutImport_templatesInput = {
    create?: XOR<StatusCreateWithoutImport_templatesInput, StatusUncheckedCreateWithoutImport_templatesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_templatesInput
    connect?: StatusWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_import_templatesInput = {
    create?: XOR<UserCreateWithoutCreated_import_templatesInput, UserUncheckedCreateWithoutCreated_import_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_import_templatesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_import_templatesInput = {
    create?: XOR<UserCreateWithoutUpdated_import_templatesInput, UserUncheckedCreateWithoutUpdated_import_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_import_templatesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_import_templatesInput = {
    create?: XOR<UserCreateWithoutDeleted_import_templatesInput, UserUncheckedCreateWithoutDeleted_import_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_import_templatesInput
    connect?: UserWhereUniqueInput
  }

  export type ImportTemplateLineItemCreateNestedManyWithoutImport_templateInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutImport_templateInput, ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput> | ImportTemplateLineItemCreateWithoutImport_templateInput[] | ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutImport_templateInput | ImportTemplateLineItemCreateOrConnectWithoutImport_templateInput[]
    createMany?: ImportTemplateLineItemCreateManyImport_templateInputEnvelope
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
  }

  export type ImportTemplateQueriesCreateNestedManyWithoutImport_templateInput = {
    create?: XOR<ImportTemplateQueriesCreateWithoutImport_templateInput, ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput> | ImportTemplateQueriesCreateWithoutImport_templateInput[] | ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput[]
    connectOrCreate?: ImportTemplateQueriesCreateOrConnectWithoutImport_templateInput | ImportTemplateQueriesCreateOrConnectWithoutImport_templateInput[]
    createMany?: ImportTemplateQueriesCreateManyImport_templateInputEnvelope
    connect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
  }

  export type ImportTemplateLineItemUncheckedCreateNestedManyWithoutImport_templateInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutImport_templateInput, ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput> | ImportTemplateLineItemCreateWithoutImport_templateInput[] | ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutImport_templateInput | ImportTemplateLineItemCreateOrConnectWithoutImport_templateInput[]
    createMany?: ImportTemplateLineItemCreateManyImport_templateInputEnvelope
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
  }

  export type ImportTemplateQueriesUncheckedCreateNestedManyWithoutImport_templateInput = {
    create?: XOR<ImportTemplateQueriesCreateWithoutImport_templateInput, ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput> | ImportTemplateQueriesCreateWithoutImport_templateInput[] | ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput[]
    connectOrCreate?: ImportTemplateQueriesCreateOrConnectWithoutImport_templateInput | ImportTemplateQueriesCreateOrConnectWithoutImport_templateInput[]
    createMany?: ImportTemplateQueriesCreateManyImport_templateInputEnvelope
    connect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutImport_templatesNestedInput = {
    create?: XOR<StatusCreateWithoutImport_templatesInput, StatusUncheckedCreateWithoutImport_templatesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_templatesInput
    upsert?: StatusUpsertWithoutImport_templatesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutImport_templatesInput, StatusUpdateWithoutImport_templatesInput>, StatusUncheckedUpdateWithoutImport_templatesInput>
  }

  export type UserUpdateOneWithoutCreated_import_templatesNestedInput = {
    create?: XOR<UserCreateWithoutCreated_import_templatesInput, UserUncheckedCreateWithoutCreated_import_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_import_templatesInput
    upsert?: UserUpsertWithoutCreated_import_templatesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_import_templatesInput, UserUpdateWithoutCreated_import_templatesInput>, UserUncheckedUpdateWithoutCreated_import_templatesInput>
  }

  export type UserUpdateOneWithoutUpdated_import_templatesNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_import_templatesInput, UserUncheckedCreateWithoutUpdated_import_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_import_templatesInput
    upsert?: UserUpsertWithoutUpdated_import_templatesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_import_templatesInput, UserUpdateWithoutUpdated_import_templatesInput>, UserUncheckedUpdateWithoutUpdated_import_templatesInput>
  }

  export type UserUpdateOneWithoutDeleted_import_templatesNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_import_templatesInput, UserUncheckedCreateWithoutDeleted_import_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_import_templatesInput
    upsert?: UserUpsertWithoutDeleted_import_templatesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_import_templatesInput, UserUpdateWithoutDeleted_import_templatesInput>, UserUncheckedUpdateWithoutDeleted_import_templatesInput>
  }

  export type ImportTemplateLineItemUpdateManyWithoutImport_templateNestedInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutImport_templateInput, ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput> | ImportTemplateLineItemCreateWithoutImport_templateInput[] | ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutImport_templateInput | ImportTemplateLineItemCreateOrConnectWithoutImport_templateInput[]
    upsert?: ImportTemplateLineItemUpsertWithWhereUniqueWithoutImport_templateInput | ImportTemplateLineItemUpsertWithWhereUniqueWithoutImport_templateInput[]
    createMany?: ImportTemplateLineItemCreateManyImport_templateInputEnvelope
    set?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    disconnect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    delete?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    update?: ImportTemplateLineItemUpdateWithWhereUniqueWithoutImport_templateInput | ImportTemplateLineItemUpdateWithWhereUniqueWithoutImport_templateInput[]
    updateMany?: ImportTemplateLineItemUpdateManyWithWhereWithoutImport_templateInput | ImportTemplateLineItemUpdateManyWithWhereWithoutImport_templateInput[]
    deleteMany?: ImportTemplateLineItemScalarWhereInput | ImportTemplateLineItemScalarWhereInput[]
  }

  export type ImportTemplateQueriesUpdateManyWithoutImport_templateNestedInput = {
    create?: XOR<ImportTemplateQueriesCreateWithoutImport_templateInput, ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput> | ImportTemplateQueriesCreateWithoutImport_templateInput[] | ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput[]
    connectOrCreate?: ImportTemplateQueriesCreateOrConnectWithoutImport_templateInput | ImportTemplateQueriesCreateOrConnectWithoutImport_templateInput[]
    upsert?: ImportTemplateQueriesUpsertWithWhereUniqueWithoutImport_templateInput | ImportTemplateQueriesUpsertWithWhereUniqueWithoutImport_templateInput[]
    createMany?: ImportTemplateQueriesCreateManyImport_templateInputEnvelope
    set?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    disconnect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    delete?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    connect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    update?: ImportTemplateQueriesUpdateWithWhereUniqueWithoutImport_templateInput | ImportTemplateQueriesUpdateWithWhereUniqueWithoutImport_templateInput[]
    updateMany?: ImportTemplateQueriesUpdateManyWithWhereWithoutImport_templateInput | ImportTemplateQueriesUpdateManyWithWhereWithoutImport_templateInput[]
    deleteMany?: ImportTemplateQueriesScalarWhereInput | ImportTemplateQueriesScalarWhereInput[]
  }

  export type ImportTemplateLineItemUncheckedUpdateManyWithoutImport_templateNestedInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutImport_templateInput, ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput> | ImportTemplateLineItemCreateWithoutImport_templateInput[] | ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutImport_templateInput | ImportTemplateLineItemCreateOrConnectWithoutImport_templateInput[]
    upsert?: ImportTemplateLineItemUpsertWithWhereUniqueWithoutImport_templateInput | ImportTemplateLineItemUpsertWithWhereUniqueWithoutImport_templateInput[]
    createMany?: ImportTemplateLineItemCreateManyImport_templateInputEnvelope
    set?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    disconnect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    delete?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    update?: ImportTemplateLineItemUpdateWithWhereUniqueWithoutImport_templateInput | ImportTemplateLineItemUpdateWithWhereUniqueWithoutImport_templateInput[]
    updateMany?: ImportTemplateLineItemUpdateManyWithWhereWithoutImport_templateInput | ImportTemplateLineItemUpdateManyWithWhereWithoutImport_templateInput[]
    deleteMany?: ImportTemplateLineItemScalarWhereInput | ImportTemplateLineItemScalarWhereInput[]
  }

  export type ImportTemplateQueriesUncheckedUpdateManyWithoutImport_templateNestedInput = {
    create?: XOR<ImportTemplateQueriesCreateWithoutImport_templateInput, ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput> | ImportTemplateQueriesCreateWithoutImport_templateInput[] | ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput[]
    connectOrCreate?: ImportTemplateQueriesCreateOrConnectWithoutImport_templateInput | ImportTemplateQueriesCreateOrConnectWithoutImport_templateInput[]
    upsert?: ImportTemplateQueriesUpsertWithWhereUniqueWithoutImport_templateInput | ImportTemplateQueriesUpsertWithWhereUniqueWithoutImport_templateInput[]
    createMany?: ImportTemplateQueriesCreateManyImport_templateInputEnvelope
    set?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    disconnect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    delete?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    connect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    update?: ImportTemplateQueriesUpdateWithWhereUniqueWithoutImport_templateInput | ImportTemplateQueriesUpdateWithWhereUniqueWithoutImport_templateInput[]
    updateMany?: ImportTemplateQueriesUpdateManyWithWhereWithoutImport_templateInput | ImportTemplateQueriesUpdateManyWithWhereWithoutImport_templateInput[]
    deleteMany?: ImportTemplateQueriesScalarWhereInput | ImportTemplateQueriesScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutImport_template_line_itemsInput = {
    create?: XOR<StatusCreateWithoutImport_template_line_itemsInput, StatusUncheckedCreateWithoutImport_template_line_itemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_template_line_itemsInput
    connect?: StatusWhereUniqueInput
  }

  export type ImportTemplateCreateNestedOneWithoutLine_itemsInput = {
    create?: XOR<ImportTemplateCreateWithoutLine_itemsInput, ImportTemplateUncheckedCreateWithoutLine_itemsInput>
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutLine_itemsInput
    connect?: ImportTemplateWhereUniqueInput
  }

  export type FieldTypeCreateNestedOneWithoutImportTemplateLineItemInput = {
    create?: XOR<FieldTypeCreateWithoutImportTemplateLineItemInput, FieldTypeUncheckedCreateWithoutImportTemplateLineItemInput>
    connectOrCreate?: FieldTypeCreateOrConnectWithoutImportTemplateLineItemInput
    connect?: FieldTypeWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutImport_template_line_itemsNestedInput = {
    create?: XOR<StatusCreateWithoutImport_template_line_itemsInput, StatusUncheckedCreateWithoutImport_template_line_itemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_template_line_itemsInput
    upsert?: StatusUpsertWithoutImport_template_line_itemsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutImport_template_line_itemsInput, StatusUpdateWithoutImport_template_line_itemsInput>, StatusUncheckedUpdateWithoutImport_template_line_itemsInput>
  }

  export type ImportTemplateUpdateOneRequiredWithoutLine_itemsNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutLine_itemsInput, ImportTemplateUncheckedCreateWithoutLine_itemsInput>
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutLine_itemsInput
    upsert?: ImportTemplateUpsertWithoutLine_itemsInput
    connect?: ImportTemplateWhereUniqueInput
    update?: XOR<XOR<ImportTemplateUpdateToOneWithWhereWithoutLine_itemsInput, ImportTemplateUpdateWithoutLine_itemsInput>, ImportTemplateUncheckedUpdateWithoutLine_itemsInput>
  }

  export type FieldTypeUpdateOneWithoutImportTemplateLineItemNestedInput = {
    create?: XOR<FieldTypeCreateWithoutImportTemplateLineItemInput, FieldTypeUncheckedCreateWithoutImportTemplateLineItemInput>
    connectOrCreate?: FieldTypeCreateOrConnectWithoutImportTemplateLineItemInput
    upsert?: FieldTypeUpsertWithoutImportTemplateLineItemInput
    disconnect?: FieldTypeWhereInput | boolean
    delete?: FieldTypeWhereInput | boolean
    connect?: FieldTypeWhereUniqueInput
    update?: XOR<XOR<FieldTypeUpdateToOneWithWhereWithoutImportTemplateLineItemInput, FieldTypeUpdateWithoutImportTemplateLineItemInput>, FieldTypeUncheckedUpdateWithoutImportTemplateLineItemInput>
  }

  export type StatusCreateNestedOneWithoutImport_template_queriesInput = {
    create?: XOR<StatusCreateWithoutImport_template_queriesInput, StatusUncheckedCreateWithoutImport_template_queriesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_template_queriesInput
    connect?: StatusWhereUniqueInput
  }

  export type ImportTemplateCreateNestedOneWithoutQueriesInput = {
    create?: XOR<ImportTemplateCreateWithoutQueriesInput, ImportTemplateUncheckedCreateWithoutQueriesInput>
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutQueriesInput
    connect?: ImportTemplateWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutImport_template_queriesNestedInput = {
    create?: XOR<StatusCreateWithoutImport_template_queriesInput, StatusUncheckedCreateWithoutImport_template_queriesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_template_queriesInput
    upsert?: StatusUpsertWithoutImport_template_queriesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutImport_template_queriesInput, StatusUpdateWithoutImport_template_queriesInput>, StatusUncheckedUpdateWithoutImport_template_queriesInput>
  }

  export type ImportTemplateUpdateOneRequiredWithoutQueriesNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutQueriesInput, ImportTemplateUncheckedCreateWithoutQueriesInput>
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutQueriesInput
    upsert?: ImportTemplateUpsertWithoutQueriesInput
    connect?: ImportTemplateWhereUniqueInput
    update?: XOR<XOR<ImportTemplateUpdateToOneWithWhereWithoutQueriesInput, ImportTemplateUpdateWithoutQueriesInput>, ImportTemplateUncheckedUpdateWithoutQueriesInput>
  }

  export type StatusCreateNestedOneWithoutImport_jobInput = {
    create?: XOR<StatusCreateWithoutImport_jobInput, StatusUncheckedCreateWithoutImport_jobInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_jobInput
    connect?: StatusWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_import_jobInput = {
    create?: XOR<UserCreateWithoutCreated_import_jobInput, UserUncheckedCreateWithoutCreated_import_jobInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_import_jobInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_import_jobInput = {
    create?: XOR<UserCreateWithoutUpdated_import_jobInput, UserUncheckedCreateWithoutUpdated_import_jobInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_import_jobInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_import_jobInput = {
    create?: XOR<UserCreateWithoutDeleted_import_jobInput, UserUncheckedCreateWithoutDeleted_import_jobInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_import_jobInput
    connect?: UserWhereUniqueInput
  }

  export type ImportJobLineItemCreateNestedManyWithoutImport_jobInput = {
    create?: XOR<ImportJobLineItemCreateWithoutImport_jobInput, ImportJobLineItemUncheckedCreateWithoutImport_jobInput> | ImportJobLineItemCreateWithoutImport_jobInput[] | ImportJobLineItemUncheckedCreateWithoutImport_jobInput[]
    connectOrCreate?: ImportJobLineItemCreateOrConnectWithoutImport_jobInput | ImportJobLineItemCreateOrConnectWithoutImport_jobInput[]
    createMany?: ImportJobLineItemCreateManyImport_jobInputEnvelope
    connect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
  }

  export type ImportJobLineItemUncheckedCreateNestedManyWithoutImport_jobInput = {
    create?: XOR<ImportJobLineItemCreateWithoutImport_jobInput, ImportJobLineItemUncheckedCreateWithoutImport_jobInput> | ImportJobLineItemCreateWithoutImport_jobInput[] | ImportJobLineItemUncheckedCreateWithoutImport_jobInput[]
    connectOrCreate?: ImportJobLineItemCreateOrConnectWithoutImport_jobInput | ImportJobLineItemCreateOrConnectWithoutImport_jobInput[]
    createMany?: ImportJobLineItemCreateManyImport_jobInputEnvelope
    connect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutImport_jobNestedInput = {
    create?: XOR<StatusCreateWithoutImport_jobInput, StatusUncheckedCreateWithoutImport_jobInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_jobInput
    upsert?: StatusUpsertWithoutImport_jobInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutImport_jobInput, StatusUpdateWithoutImport_jobInput>, StatusUncheckedUpdateWithoutImport_jobInput>
  }

  export type UserUpdateOneWithoutCreated_import_jobNestedInput = {
    create?: XOR<UserCreateWithoutCreated_import_jobInput, UserUncheckedCreateWithoutCreated_import_jobInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_import_jobInput
    upsert?: UserUpsertWithoutCreated_import_jobInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_import_jobInput, UserUpdateWithoutCreated_import_jobInput>, UserUncheckedUpdateWithoutCreated_import_jobInput>
  }

  export type UserUpdateOneWithoutUpdated_import_jobNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_import_jobInput, UserUncheckedCreateWithoutUpdated_import_jobInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_import_jobInput
    upsert?: UserUpsertWithoutUpdated_import_jobInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_import_jobInput, UserUpdateWithoutUpdated_import_jobInput>, UserUncheckedUpdateWithoutUpdated_import_jobInput>
  }

  export type UserUpdateOneWithoutDeleted_import_jobNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_import_jobInput, UserUncheckedCreateWithoutDeleted_import_jobInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_import_jobInput
    upsert?: UserUpsertWithoutDeleted_import_jobInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_import_jobInput, UserUpdateWithoutDeleted_import_jobInput>, UserUncheckedUpdateWithoutDeleted_import_jobInput>
  }

  export type ImportJobLineItemUpdateManyWithoutImport_jobNestedInput = {
    create?: XOR<ImportJobLineItemCreateWithoutImport_jobInput, ImportJobLineItemUncheckedCreateWithoutImport_jobInput> | ImportJobLineItemCreateWithoutImport_jobInput[] | ImportJobLineItemUncheckedCreateWithoutImport_jobInput[]
    connectOrCreate?: ImportJobLineItemCreateOrConnectWithoutImport_jobInput | ImportJobLineItemCreateOrConnectWithoutImport_jobInput[]
    upsert?: ImportJobLineItemUpsertWithWhereUniqueWithoutImport_jobInput | ImportJobLineItemUpsertWithWhereUniqueWithoutImport_jobInput[]
    createMany?: ImportJobLineItemCreateManyImport_jobInputEnvelope
    set?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    disconnect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    delete?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    connect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    update?: ImportJobLineItemUpdateWithWhereUniqueWithoutImport_jobInput | ImportJobLineItemUpdateWithWhereUniqueWithoutImport_jobInput[]
    updateMany?: ImportJobLineItemUpdateManyWithWhereWithoutImport_jobInput | ImportJobLineItemUpdateManyWithWhereWithoutImport_jobInput[]
    deleteMany?: ImportJobLineItemScalarWhereInput | ImportJobLineItemScalarWhereInput[]
  }

  export type ImportJobLineItemUncheckedUpdateManyWithoutImport_jobNestedInput = {
    create?: XOR<ImportJobLineItemCreateWithoutImport_jobInput, ImportJobLineItemUncheckedCreateWithoutImport_jobInput> | ImportJobLineItemCreateWithoutImport_jobInput[] | ImportJobLineItemUncheckedCreateWithoutImport_jobInput[]
    connectOrCreate?: ImportJobLineItemCreateOrConnectWithoutImport_jobInput | ImportJobLineItemCreateOrConnectWithoutImport_jobInput[]
    upsert?: ImportJobLineItemUpsertWithWhereUniqueWithoutImport_jobInput | ImportJobLineItemUpsertWithWhereUniqueWithoutImport_jobInput[]
    createMany?: ImportJobLineItemCreateManyImport_jobInputEnvelope
    set?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    disconnect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    delete?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    connect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    update?: ImportJobLineItemUpdateWithWhereUniqueWithoutImport_jobInput | ImportJobLineItemUpdateWithWhereUniqueWithoutImport_jobInput[]
    updateMany?: ImportJobLineItemUpdateManyWithWhereWithoutImport_jobInput | ImportJobLineItemUpdateManyWithWhereWithoutImport_jobInput[]
    deleteMany?: ImportJobLineItemScalarWhereInput | ImportJobLineItemScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutImport_job_line_itemsInput = {
    create?: XOR<StatusCreateWithoutImport_job_line_itemsInput, StatusUncheckedCreateWithoutImport_job_line_itemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_job_line_itemsInput
    connect?: StatusWhereUniqueInput
  }

  export type ImportJobCreateNestedOneWithoutLine_itemsInput = {
    create?: XOR<ImportJobCreateWithoutLine_itemsInput, ImportJobUncheckedCreateWithoutLine_itemsInput>
    connectOrCreate?: ImportJobCreateOrConnectWithoutLine_itemsInput
    connect?: ImportJobWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutImport_job_line_itemsNestedInput = {
    create?: XOR<StatusCreateWithoutImport_job_line_itemsInput, StatusUncheckedCreateWithoutImport_job_line_itemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutImport_job_line_itemsInput
    upsert?: StatusUpsertWithoutImport_job_line_itemsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutImport_job_line_itemsInput, StatusUpdateWithoutImport_job_line_itemsInput>, StatusUncheckedUpdateWithoutImport_job_line_itemsInput>
  }

  export type ImportJobUpdateOneRequiredWithoutLine_itemsNestedInput = {
    create?: XOR<ImportJobCreateWithoutLine_itemsInput, ImportJobUncheckedCreateWithoutLine_itemsInput>
    connectOrCreate?: ImportJobCreateOrConnectWithoutLine_itemsInput
    upsert?: ImportJobUpsertWithoutLine_itemsInput
    connect?: ImportJobWhereUniqueInput
    update?: XOR<XOR<ImportJobUpdateToOneWithWhereWithoutLine_itemsInput, ImportJobUpdateWithoutLine_itemsInput>, ImportJobUncheckedUpdateWithoutLine_itemsInput>
  }

  export type StatusCreateNestedOneWithoutExport_templatesInput = {
    create?: XOR<StatusCreateWithoutExport_templatesInput, StatusUncheckedCreateWithoutExport_templatesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutExport_templatesInput
    connect?: StatusWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_export_templatesInput = {
    create?: XOR<UserCreateWithoutCreated_export_templatesInput, UserUncheckedCreateWithoutCreated_export_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_export_templatesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_export_templatesInput = {
    create?: XOR<UserCreateWithoutUpdated_export_templatesInput, UserUncheckedCreateWithoutUpdated_export_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_export_templatesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_export_templatesInput = {
    create?: XOR<UserCreateWithoutDeleted_export_templatesInput, UserUncheckedCreateWithoutDeleted_export_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_export_templatesInput
    connect?: UserWhereUniqueInput
  }

  export type ExportTemplateLineItemCreateNestedManyWithoutExport_templateInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutExport_templateInput, ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput> | ExportTemplateLineItemCreateWithoutExport_templateInput[] | ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutExport_templateInput | ExportTemplateLineItemCreateOrConnectWithoutExport_templateInput[]
    createMany?: ExportTemplateLineItemCreateManyExport_templateInputEnvelope
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
  }

  export type ExportTemplateQueriesCreateNestedManyWithoutExport_templateInput = {
    create?: XOR<ExportTemplateQueriesCreateWithoutExport_templateInput, ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput> | ExportTemplateQueriesCreateWithoutExport_templateInput[] | ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput[]
    connectOrCreate?: ExportTemplateQueriesCreateOrConnectWithoutExport_templateInput | ExportTemplateQueriesCreateOrConnectWithoutExport_templateInput[]
    createMany?: ExportTemplateQueriesCreateManyExport_templateInputEnvelope
    connect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
  }

  export type ExportTemplateLineItemUncheckedCreateNestedManyWithoutExport_templateInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutExport_templateInput, ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput> | ExportTemplateLineItemCreateWithoutExport_templateInput[] | ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutExport_templateInput | ExportTemplateLineItemCreateOrConnectWithoutExport_templateInput[]
    createMany?: ExportTemplateLineItemCreateManyExport_templateInputEnvelope
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
  }

  export type ExportTemplateQueriesUncheckedCreateNestedManyWithoutExport_templateInput = {
    create?: XOR<ExportTemplateQueriesCreateWithoutExport_templateInput, ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput> | ExportTemplateQueriesCreateWithoutExport_templateInput[] | ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput[]
    connectOrCreate?: ExportTemplateQueriesCreateOrConnectWithoutExport_templateInput | ExportTemplateQueriesCreateOrConnectWithoutExport_templateInput[]
    createMany?: ExportTemplateQueriesCreateManyExport_templateInputEnvelope
    connect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
  }

  export type StatusUpdateOneRequiredWithoutExport_templatesNestedInput = {
    create?: XOR<StatusCreateWithoutExport_templatesInput, StatusUncheckedCreateWithoutExport_templatesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutExport_templatesInput
    upsert?: StatusUpsertWithoutExport_templatesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutExport_templatesInput, StatusUpdateWithoutExport_templatesInput>, StatusUncheckedUpdateWithoutExport_templatesInput>
  }

  export type UserUpdateOneWithoutCreated_export_templatesNestedInput = {
    create?: XOR<UserCreateWithoutCreated_export_templatesInput, UserUncheckedCreateWithoutCreated_export_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_export_templatesInput
    upsert?: UserUpsertWithoutCreated_export_templatesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_export_templatesInput, UserUpdateWithoutCreated_export_templatesInput>, UserUncheckedUpdateWithoutCreated_export_templatesInput>
  }

  export type UserUpdateOneWithoutUpdated_export_templatesNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_export_templatesInput, UserUncheckedCreateWithoutUpdated_export_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_export_templatesInput
    upsert?: UserUpsertWithoutUpdated_export_templatesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_export_templatesInput, UserUpdateWithoutUpdated_export_templatesInput>, UserUncheckedUpdateWithoutUpdated_export_templatesInput>
  }

  export type UserUpdateOneWithoutDeleted_export_templatesNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_export_templatesInput, UserUncheckedCreateWithoutDeleted_export_templatesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_export_templatesInput
    upsert?: UserUpsertWithoutDeleted_export_templatesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_export_templatesInput, UserUpdateWithoutDeleted_export_templatesInput>, UserUncheckedUpdateWithoutDeleted_export_templatesInput>
  }

  export type ExportTemplateLineItemUpdateManyWithoutExport_templateNestedInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutExport_templateInput, ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput> | ExportTemplateLineItemCreateWithoutExport_templateInput[] | ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutExport_templateInput | ExportTemplateLineItemCreateOrConnectWithoutExport_templateInput[]
    upsert?: ExportTemplateLineItemUpsertWithWhereUniqueWithoutExport_templateInput | ExportTemplateLineItemUpsertWithWhereUniqueWithoutExport_templateInput[]
    createMany?: ExportTemplateLineItemCreateManyExport_templateInputEnvelope
    set?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    disconnect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    delete?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    update?: ExportTemplateLineItemUpdateWithWhereUniqueWithoutExport_templateInput | ExportTemplateLineItemUpdateWithWhereUniqueWithoutExport_templateInput[]
    updateMany?: ExportTemplateLineItemUpdateManyWithWhereWithoutExport_templateInput | ExportTemplateLineItemUpdateManyWithWhereWithoutExport_templateInput[]
    deleteMany?: ExportTemplateLineItemScalarWhereInput | ExportTemplateLineItemScalarWhereInput[]
  }

  export type ExportTemplateQueriesUpdateManyWithoutExport_templateNestedInput = {
    create?: XOR<ExportTemplateQueriesCreateWithoutExport_templateInput, ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput> | ExportTemplateQueriesCreateWithoutExport_templateInput[] | ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput[]
    connectOrCreate?: ExportTemplateQueriesCreateOrConnectWithoutExport_templateInput | ExportTemplateQueriesCreateOrConnectWithoutExport_templateInput[]
    upsert?: ExportTemplateQueriesUpsertWithWhereUniqueWithoutExport_templateInput | ExportTemplateQueriesUpsertWithWhereUniqueWithoutExport_templateInput[]
    createMany?: ExportTemplateQueriesCreateManyExport_templateInputEnvelope
    set?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    disconnect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    delete?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    connect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    update?: ExportTemplateQueriesUpdateWithWhereUniqueWithoutExport_templateInput | ExportTemplateQueriesUpdateWithWhereUniqueWithoutExport_templateInput[]
    updateMany?: ExportTemplateQueriesUpdateManyWithWhereWithoutExport_templateInput | ExportTemplateQueriesUpdateManyWithWhereWithoutExport_templateInput[]
    deleteMany?: ExportTemplateQueriesScalarWhereInput | ExportTemplateQueriesScalarWhereInput[]
  }

  export type ExportTemplateLineItemUncheckedUpdateManyWithoutExport_templateNestedInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutExport_templateInput, ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput> | ExportTemplateLineItemCreateWithoutExport_templateInput[] | ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutExport_templateInput | ExportTemplateLineItemCreateOrConnectWithoutExport_templateInput[]
    upsert?: ExportTemplateLineItemUpsertWithWhereUniqueWithoutExport_templateInput | ExportTemplateLineItemUpsertWithWhereUniqueWithoutExport_templateInput[]
    createMany?: ExportTemplateLineItemCreateManyExport_templateInputEnvelope
    set?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    disconnect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    delete?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    update?: ExportTemplateLineItemUpdateWithWhereUniqueWithoutExport_templateInput | ExportTemplateLineItemUpdateWithWhereUniqueWithoutExport_templateInput[]
    updateMany?: ExportTemplateLineItemUpdateManyWithWhereWithoutExport_templateInput | ExportTemplateLineItemUpdateManyWithWhereWithoutExport_templateInput[]
    deleteMany?: ExportTemplateLineItemScalarWhereInput | ExportTemplateLineItemScalarWhereInput[]
  }

  export type ExportTemplateQueriesUncheckedUpdateManyWithoutExport_templateNestedInput = {
    create?: XOR<ExportTemplateQueriesCreateWithoutExport_templateInput, ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput> | ExportTemplateQueriesCreateWithoutExport_templateInput[] | ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput[]
    connectOrCreate?: ExportTemplateQueriesCreateOrConnectWithoutExport_templateInput | ExportTemplateQueriesCreateOrConnectWithoutExport_templateInput[]
    upsert?: ExportTemplateQueriesUpsertWithWhereUniqueWithoutExport_templateInput | ExportTemplateQueriesUpsertWithWhereUniqueWithoutExport_templateInput[]
    createMany?: ExportTemplateQueriesCreateManyExport_templateInputEnvelope
    set?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    disconnect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    delete?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    connect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    update?: ExportTemplateQueriesUpdateWithWhereUniqueWithoutExport_templateInput | ExportTemplateQueriesUpdateWithWhereUniqueWithoutExport_templateInput[]
    updateMany?: ExportTemplateQueriesUpdateManyWithWhereWithoutExport_templateInput | ExportTemplateQueriesUpdateManyWithWhereWithoutExport_templateInput[]
    deleteMany?: ExportTemplateQueriesScalarWhereInput | ExportTemplateQueriesScalarWhereInput[]
  }

  export type StatusCreateNestedOneWithoutExport_template_line_itemsInput = {
    create?: XOR<StatusCreateWithoutExport_template_line_itemsInput, StatusUncheckedCreateWithoutExport_template_line_itemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutExport_template_line_itemsInput
    connect?: StatusWhereUniqueInput
  }

  export type ExportTemplateCreateNestedOneWithoutLine_itemsInput = {
    create?: XOR<ExportTemplateCreateWithoutLine_itemsInput, ExportTemplateUncheckedCreateWithoutLine_itemsInput>
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutLine_itemsInput
    connect?: ExportTemplateWhereUniqueInput
  }

  export type FieldTypeCreateNestedOneWithoutExportTemplateLineItemInput = {
    create?: XOR<FieldTypeCreateWithoutExportTemplateLineItemInput, FieldTypeUncheckedCreateWithoutExportTemplateLineItemInput>
    connectOrCreate?: FieldTypeCreateOrConnectWithoutExportTemplateLineItemInput
    connect?: FieldTypeWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutExport_template_line_itemsNestedInput = {
    create?: XOR<StatusCreateWithoutExport_template_line_itemsInput, StatusUncheckedCreateWithoutExport_template_line_itemsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutExport_template_line_itemsInput
    upsert?: StatusUpsertWithoutExport_template_line_itemsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutExport_template_line_itemsInput, StatusUpdateWithoutExport_template_line_itemsInput>, StatusUncheckedUpdateWithoutExport_template_line_itemsInput>
  }

  export type ExportTemplateUpdateOneRequiredWithoutLine_itemsNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutLine_itemsInput, ExportTemplateUncheckedCreateWithoutLine_itemsInput>
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutLine_itemsInput
    upsert?: ExportTemplateUpsertWithoutLine_itemsInput
    connect?: ExportTemplateWhereUniqueInput
    update?: XOR<XOR<ExportTemplateUpdateToOneWithWhereWithoutLine_itemsInput, ExportTemplateUpdateWithoutLine_itemsInput>, ExportTemplateUncheckedUpdateWithoutLine_itemsInput>
  }

  export type FieldTypeUpdateOneWithoutExportTemplateLineItemNestedInput = {
    create?: XOR<FieldTypeCreateWithoutExportTemplateLineItemInput, FieldTypeUncheckedCreateWithoutExportTemplateLineItemInput>
    connectOrCreate?: FieldTypeCreateOrConnectWithoutExportTemplateLineItemInput
    upsert?: FieldTypeUpsertWithoutExportTemplateLineItemInput
    disconnect?: FieldTypeWhereInput | boolean
    delete?: FieldTypeWhereInput | boolean
    connect?: FieldTypeWhereUniqueInput
    update?: XOR<XOR<FieldTypeUpdateToOneWithWhereWithoutExportTemplateLineItemInput, FieldTypeUpdateWithoutExportTemplateLineItemInput>, FieldTypeUncheckedUpdateWithoutExportTemplateLineItemInput>
  }

  export type StatusCreateNestedOneWithoutExport_template_queriesInput = {
    create?: XOR<StatusCreateWithoutExport_template_queriesInput, StatusUncheckedCreateWithoutExport_template_queriesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutExport_template_queriesInput
    connect?: StatusWhereUniqueInput
  }

  export type ExportTemplateCreateNestedOneWithoutQueriesInput = {
    create?: XOR<ExportTemplateCreateWithoutQueriesInput, ExportTemplateUncheckedCreateWithoutQueriesInput>
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutQueriesInput
    connect?: ExportTemplateWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutExport_template_queriesNestedInput = {
    create?: XOR<StatusCreateWithoutExport_template_queriesInput, StatusUncheckedCreateWithoutExport_template_queriesInput>
    connectOrCreate?: StatusCreateOrConnectWithoutExport_template_queriesInput
    upsert?: StatusUpsertWithoutExport_template_queriesInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutExport_template_queriesInput, StatusUpdateWithoutExport_template_queriesInput>, StatusUncheckedUpdateWithoutExport_template_queriesInput>
  }

  export type ExportTemplateUpdateOneRequiredWithoutQueriesNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutQueriesInput, ExportTemplateUncheckedCreateWithoutQueriesInput>
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutQueriesInput
    upsert?: ExportTemplateUpsertWithoutQueriesInput
    connect?: ExportTemplateWhereUniqueInput
    update?: XOR<XOR<ExportTemplateUpdateToOneWithWhereWithoutQueriesInput, ExportTemplateUpdateWithoutQueriesInput>, ExportTemplateUncheckedUpdateWithoutQueriesInput>
  }

  export type StatusCreateNestedOneWithoutStatus_listInput = {
    create?: XOR<StatusCreateWithoutStatus_listInput, StatusUncheckedCreateWithoutStatus_listInput>
    connectOrCreate?: StatusCreateOrConnectWithoutStatus_listInput
    connect?: StatusWhereUniqueInput
  }

  export type StatusCreateNestedManyWithoutStatusInput = {
    create?: XOR<StatusCreateWithoutStatusInput, StatusUncheckedCreateWithoutStatusInput> | StatusCreateWithoutStatusInput[] | StatusUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: StatusCreateOrConnectWithoutStatusInput | StatusCreateOrConnectWithoutStatusInput[]
    createMany?: StatusCreateManyStatusInputEnvelope
    connect?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
  }

  export type UserCreateNestedManyWithoutStatusInput = {
    create?: XOR<UserCreateWithoutStatusInput, UserUncheckedCreateWithoutStatusInput> | UserCreateWithoutStatusInput[] | UserUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: UserCreateOrConnectWithoutStatusInput | UserCreateOrConnectWithoutStatusInput[]
    createMany?: UserCreateManyStatusInputEnvelope
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
  }

  export type RequestLogCreateNestedManyWithoutStatusInput = {
    create?: XOR<RequestLogCreateWithoutStatusInput, RequestLogUncheckedCreateWithoutStatusInput> | RequestLogCreateWithoutStatusInput[] | RequestLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: RequestLogCreateOrConnectWithoutStatusInput | RequestLogCreateOrConnectWithoutStatusInput[]
    createMany?: RequestLogCreateManyStatusInputEnvelope
    connect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
  }

  export type PermissionsCreateNestedManyWithoutStatusInput = {
    create?: XOR<PermissionsCreateWithoutStatusInput, PermissionsUncheckedCreateWithoutStatusInput> | PermissionsCreateWithoutStatusInput[] | PermissionsUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: PermissionsCreateOrConnectWithoutStatusInput | PermissionsCreateOrConnectWithoutStatusInput[]
    createMany?: PermissionsCreateManyStatusInputEnvelope
    connect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
  }

  export type RoleCreateNestedManyWithoutStatusInput = {
    create?: XOR<RoleCreateWithoutStatusInput, RoleUncheckedCreateWithoutStatusInput> | RoleCreateWithoutStatusInput[] | RoleUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutStatusInput | RoleCreateOrConnectWithoutStatusInput[]
    createMany?: RoleCreateManyStatusInputEnvelope
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
  }

  export type LanguageCreateNestedManyWithoutStatusInput = {
    create?: XOR<LanguageCreateWithoutStatusInput, LanguageUncheckedCreateWithoutStatusInput> | LanguageCreateWithoutStatusInput[] | LanguageUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutStatusInput | LanguageCreateOrConnectWithoutStatusInput[]
    createMany?: LanguageCreateManyStatusInputEnvelope
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
  }

  export type LanguageContentCreateNestedManyWithoutStatusInput = {
    create?: XOR<LanguageContentCreateWithoutStatusInput, LanguageContentUncheckedCreateWithoutStatusInput> | LanguageContentCreateWithoutStatusInput[] | LanguageContentUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: LanguageContentCreateOrConnectWithoutStatusInput | LanguageContentCreateOrConnectWithoutStatusInput[]
    createMany?: LanguageContentCreateManyStatusInputEnvelope
    connect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
  }

  export type MenuItemsCreateNestedManyWithoutStatusInput = {
    create?: XOR<MenuItemsCreateWithoutStatusInput, MenuItemsUncheckedCreateWithoutStatusInput> | MenuItemsCreateWithoutStatusInput[] | MenuItemsUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutStatusInput | MenuItemsCreateOrConnectWithoutStatusInput[]
    createMany?: MenuItemsCreateManyStatusInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type MenusCreateNestedManyWithoutStatusInput = {
    create?: XOR<MenusCreateWithoutStatusInput, MenusUncheckedCreateWithoutStatusInput> | MenusCreateWithoutStatusInput[] | MenusUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutStatusInput | MenusCreateOrConnectWithoutStatusInput[]
    createMany?: MenusCreateManyStatusInputEnvelope
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
  }

  export type MasterEntityCreateNestedManyWithoutStatusInput = {
    create?: XOR<MasterEntityCreateWithoutStatusInput, MasterEntityUncheckedCreateWithoutStatusInput> | MasterEntityCreateWithoutStatusInput[] | MasterEntityUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MasterEntityCreateOrConnectWithoutStatusInput | MasterEntityCreateOrConnectWithoutStatusInput[]
    createMany?: MasterEntityCreateManyStatusInputEnvelope
    connect?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
  }

  export type MasterEntityLineItemCreateNestedManyWithoutStatusInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutStatusInput, MasterEntityLineItemUncheckedCreateWithoutStatusInput> | MasterEntityLineItemCreateWithoutStatusInput[] | MasterEntityLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutStatusInput | MasterEntityLineItemCreateOrConnectWithoutStatusInput[]
    createMany?: MasterEntityLineItemCreateManyStatusInputEnvelope
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
  }

  export type FieldTypeCreateNestedManyWithoutStatusInput = {
    create?: XOR<FieldTypeCreateWithoutStatusInput, FieldTypeUncheckedCreateWithoutStatusInput> | FieldTypeCreateWithoutStatusInput[] | FieldTypeUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FieldTypeCreateOrConnectWithoutStatusInput | FieldTypeCreateOrConnectWithoutStatusInput[]
    createMany?: FieldTypeCreateManyStatusInputEnvelope
    connect?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
  }

  export type menuTypeCreateNestedManyWithoutStatusInput = {
    create?: XOR<menuTypeCreateWithoutStatusInput, menuTypeUncheckedCreateWithoutStatusInput> | menuTypeCreateWithoutStatusInput[] | menuTypeUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: menuTypeCreateOrConnectWithoutStatusInput | menuTypeCreateOrConnectWithoutStatusInput[]
    createMany?: menuTypeCreateManyStatusInputEnvelope
    connect?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
  }

  export type EmailTemplateProcessCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutStatusInput, EmailTemplateProcessUncheckedCreateWithoutStatusInput> | EmailTemplateProcessCreateWithoutStatusInput[] | EmailTemplateProcessUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutStatusInput | EmailTemplateProcessCreateOrConnectWithoutStatusInput[]
    createMany?: EmailTemplateProcessCreateManyStatusInputEnvelope
    connect?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
  }

  export type EmailTemplateTagCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailTemplateTagCreateWithoutStatusInput, EmailTemplateTagUncheckedCreateWithoutStatusInput> | EmailTemplateTagCreateWithoutStatusInput[] | EmailTemplateTagUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateTagCreateOrConnectWithoutStatusInput | EmailTemplateTagCreateOrConnectWithoutStatusInput[]
    createMany?: EmailTemplateTagCreateManyStatusInputEnvelope
    connect?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
  }

  export type EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailTemplateRecipientTagCreateWithoutStatusInput, EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput> | EmailTemplateRecipientTagCreateWithoutStatusInput[] | EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateRecipientTagCreateOrConnectWithoutStatusInput | EmailTemplateRecipientTagCreateOrConnectWithoutStatusInput[]
    createMany?: EmailTemplateRecipientTagCreateManyStatusInputEnvelope
    connect?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
  }

  export type EmailTemplateCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailTemplateCreateWithoutStatusInput, EmailTemplateUncheckedCreateWithoutStatusInput> | EmailTemplateCreateWithoutStatusInput[] | EmailTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutStatusInput | EmailTemplateCreateOrConnectWithoutStatusInput[]
    createMany?: EmailTemplateCreateManyStatusInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailProcessJobCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailProcessJobCreateWithoutStatusInput, EmailProcessJobUncheckedCreateWithoutStatusInput> | EmailProcessJobCreateWithoutStatusInput[] | EmailProcessJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailProcessJobCreateOrConnectWithoutStatusInput | EmailProcessJobCreateOrConnectWithoutStatusInput[]
    createMany?: EmailProcessJobCreateManyStatusInputEnvelope
    connect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
  }

  export type NotificationJobCreateNestedManyWithoutStatusInput = {
    create?: XOR<NotificationJobCreateWithoutStatusInput, NotificationJobUncheckedCreateWithoutStatusInput> | NotificationJobCreateWithoutStatusInput[] | NotificationJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: NotificationJobCreateOrConnectWithoutStatusInput | NotificationJobCreateOrConnectWithoutStatusInput[]
    createMany?: NotificationJobCreateManyStatusInputEnvelope
    connect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
  }

  export type ImportTemplateCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportTemplateCreateWithoutStatusInput, ImportTemplateUncheckedCreateWithoutStatusInput> | ImportTemplateCreateWithoutStatusInput[] | ImportTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutStatusInput | ImportTemplateCreateOrConnectWithoutStatusInput[]
    createMany?: ImportTemplateCreateManyStatusInputEnvelope
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
  }

  export type ImportTemplateLineItemCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutStatusInput, ImportTemplateLineItemUncheckedCreateWithoutStatusInput> | ImportTemplateLineItemCreateWithoutStatusInput[] | ImportTemplateLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutStatusInput | ImportTemplateLineItemCreateOrConnectWithoutStatusInput[]
    createMany?: ImportTemplateLineItemCreateManyStatusInputEnvelope
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
  }

  export type ImportTemplateQueriesCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportTemplateQueriesCreateWithoutStatusInput, ImportTemplateQueriesUncheckedCreateWithoutStatusInput> | ImportTemplateQueriesCreateWithoutStatusInput[] | ImportTemplateQueriesUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateQueriesCreateOrConnectWithoutStatusInput | ImportTemplateQueriesCreateOrConnectWithoutStatusInput[]
    createMany?: ImportTemplateQueriesCreateManyStatusInputEnvelope
    connect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
  }

  export type ExportTemplateCreateNestedManyWithoutStatusInput = {
    create?: XOR<ExportTemplateCreateWithoutStatusInput, ExportTemplateUncheckedCreateWithoutStatusInput> | ExportTemplateCreateWithoutStatusInput[] | ExportTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutStatusInput | ExportTemplateCreateOrConnectWithoutStatusInput[]
    createMany?: ExportTemplateCreateManyStatusInputEnvelope
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
  }

  export type ExportTemplateLineItemCreateNestedManyWithoutStatusInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutStatusInput, ExportTemplateLineItemUncheckedCreateWithoutStatusInput> | ExportTemplateLineItemCreateWithoutStatusInput[] | ExportTemplateLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutStatusInput | ExportTemplateLineItemCreateOrConnectWithoutStatusInput[]
    createMany?: ExportTemplateLineItemCreateManyStatusInputEnvelope
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
  }

  export type ExportTemplateQueriesCreateNestedManyWithoutStatusInput = {
    create?: XOR<ExportTemplateQueriesCreateWithoutStatusInput, ExportTemplateQueriesUncheckedCreateWithoutStatusInput> | ExportTemplateQueriesCreateWithoutStatusInput[] | ExportTemplateQueriesUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateQueriesCreateOrConnectWithoutStatusInput | ExportTemplateQueriesCreateOrConnectWithoutStatusInput[]
    createMany?: ExportTemplateQueriesCreateManyStatusInputEnvelope
    connect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
  }

  export type DesignationCreateNestedManyWithoutStatusInput = {
    create?: XOR<DesignationCreateWithoutStatusInput, DesignationUncheckedCreateWithoutStatusInput> | DesignationCreateWithoutStatusInput[] | DesignationUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutStatusInput | DesignationCreateOrConnectWithoutStatusInput[]
    createMany?: DesignationCreateManyStatusInputEnvelope
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
  }

  export type DepartmentCreateNestedManyWithoutStatusInput = {
    create?: XOR<DepartmentCreateWithoutStatusInput, DepartmentUncheckedCreateWithoutStatusInput> | DepartmentCreateWithoutStatusInput[] | DepartmentUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutStatusInput | DepartmentCreateOrConnectWithoutStatusInput[]
    createMany?: DepartmentCreateManyStatusInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type AuditLogCreateNestedManyWithoutStatusInput = {
    create?: XOR<AuditLogCreateWithoutStatusInput, AuditLogUncheckedCreateWithoutStatusInput> | AuditLogCreateWithoutStatusInput[] | AuditLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: AuditLogCreateOrConnectWithoutStatusInput | AuditLogCreateOrConnectWithoutStatusInput[]
    createMany?: AuditLogCreateManyStatusInputEnvelope
    connect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
  }

  export type FinancialYearCreateNestedManyWithoutStatusInput = {
    create?: XOR<FinancialYearCreateWithoutStatusInput, FinancialYearUncheckedCreateWithoutStatusInput> | FinancialYearCreateWithoutStatusInput[] | FinancialYearUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutStatusInput | FinancialYearCreateOrConnectWithoutStatusInput[]
    createMany?: FinancialYearCreateManyStatusInputEnvelope
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
  }

  export type DocumentSequenceCreateNestedManyWithoutStatusInput = {
    create?: XOR<DocumentSequenceCreateWithoutStatusInput, DocumentSequenceUncheckedCreateWithoutStatusInput> | DocumentSequenceCreateWithoutStatusInput[] | DocumentSequenceUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutStatusInput | DocumentSequenceCreateOrConnectWithoutStatusInput[]
    createMany?: DocumentSequenceCreateManyStatusInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type FileUploadLogCreateNestedManyWithoutStatusInput = {
    create?: XOR<FileUploadLogCreateWithoutStatusInput, FileUploadLogUncheckedCreateWithoutStatusInput> | FileUploadLogCreateWithoutStatusInput[] | FileUploadLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FileUploadLogCreateOrConnectWithoutStatusInput | FileUploadLogCreateOrConnectWithoutStatusInput[]
    createMany?: FileUploadLogCreateManyStatusInputEnvelope
    connect?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
  }

  export type DeviceRegistrationCreateNestedManyWithoutStatusInput = {
    create?: XOR<DeviceRegistrationCreateWithoutStatusInput, DeviceRegistrationUncheckedCreateWithoutStatusInput> | DeviceRegistrationCreateWithoutStatusInput[] | DeviceRegistrationUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutStatusInput | DeviceRegistrationCreateOrConnectWithoutStatusInput[]
    createMany?: DeviceRegistrationCreateManyStatusInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type ImportJobCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportJobCreateWithoutStatusInput, ImportJobUncheckedCreateWithoutStatusInput> | ImportJobCreateWithoutStatusInput[] | ImportJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutStatusInput | ImportJobCreateOrConnectWithoutStatusInput[]
    createMany?: ImportJobCreateManyStatusInputEnvelope
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
  }

  export type ImportJobLineItemCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportJobLineItemCreateWithoutStatusInput, ImportJobLineItemUncheckedCreateWithoutStatusInput> | ImportJobLineItemCreateWithoutStatusInput[] | ImportJobLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportJobLineItemCreateOrConnectWithoutStatusInput | ImportJobLineItemCreateOrConnectWithoutStatusInput[]
    createMany?: ImportJobLineItemCreateManyStatusInputEnvelope
    connect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
  }

  export type StatusUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<StatusCreateWithoutStatusInput, StatusUncheckedCreateWithoutStatusInput> | StatusCreateWithoutStatusInput[] | StatusUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: StatusCreateOrConnectWithoutStatusInput | StatusCreateOrConnectWithoutStatusInput[]
    createMany?: StatusCreateManyStatusInputEnvelope
    connect?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
  }

  export type UserUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<UserCreateWithoutStatusInput, UserUncheckedCreateWithoutStatusInput> | UserCreateWithoutStatusInput[] | UserUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: UserCreateOrConnectWithoutStatusInput | UserCreateOrConnectWithoutStatusInput[]
    createMany?: UserCreateManyStatusInputEnvelope
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
  }

  export type RequestLogUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<RequestLogCreateWithoutStatusInput, RequestLogUncheckedCreateWithoutStatusInput> | RequestLogCreateWithoutStatusInput[] | RequestLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: RequestLogCreateOrConnectWithoutStatusInput | RequestLogCreateOrConnectWithoutStatusInput[]
    createMany?: RequestLogCreateManyStatusInputEnvelope
    connect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
  }

  export type PermissionsUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<PermissionsCreateWithoutStatusInput, PermissionsUncheckedCreateWithoutStatusInput> | PermissionsCreateWithoutStatusInput[] | PermissionsUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: PermissionsCreateOrConnectWithoutStatusInput | PermissionsCreateOrConnectWithoutStatusInput[]
    createMany?: PermissionsCreateManyStatusInputEnvelope
    connect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
  }

  export type RoleUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<RoleCreateWithoutStatusInput, RoleUncheckedCreateWithoutStatusInput> | RoleCreateWithoutStatusInput[] | RoleUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutStatusInput | RoleCreateOrConnectWithoutStatusInput[]
    createMany?: RoleCreateManyStatusInputEnvelope
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
  }

  export type LanguageUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<LanguageCreateWithoutStatusInput, LanguageUncheckedCreateWithoutStatusInput> | LanguageCreateWithoutStatusInput[] | LanguageUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutStatusInput | LanguageCreateOrConnectWithoutStatusInput[]
    createMany?: LanguageCreateManyStatusInputEnvelope
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
  }

  export type LanguageContentUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<LanguageContentCreateWithoutStatusInput, LanguageContentUncheckedCreateWithoutStatusInput> | LanguageContentCreateWithoutStatusInput[] | LanguageContentUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: LanguageContentCreateOrConnectWithoutStatusInput | LanguageContentCreateOrConnectWithoutStatusInput[]
    createMany?: LanguageContentCreateManyStatusInputEnvelope
    connect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
  }

  export type MenuItemsUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<MenuItemsCreateWithoutStatusInput, MenuItemsUncheckedCreateWithoutStatusInput> | MenuItemsCreateWithoutStatusInput[] | MenuItemsUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutStatusInput | MenuItemsCreateOrConnectWithoutStatusInput[]
    createMany?: MenuItemsCreateManyStatusInputEnvelope
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
  }

  export type MenusUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<MenusCreateWithoutStatusInput, MenusUncheckedCreateWithoutStatusInput> | MenusCreateWithoutStatusInput[] | MenusUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutStatusInput | MenusCreateOrConnectWithoutStatusInput[]
    createMany?: MenusCreateManyStatusInputEnvelope
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
  }

  export type MasterEntityUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<MasterEntityCreateWithoutStatusInput, MasterEntityUncheckedCreateWithoutStatusInput> | MasterEntityCreateWithoutStatusInput[] | MasterEntityUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MasterEntityCreateOrConnectWithoutStatusInput | MasterEntityCreateOrConnectWithoutStatusInput[]
    createMany?: MasterEntityCreateManyStatusInputEnvelope
    connect?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
  }

  export type MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutStatusInput, MasterEntityLineItemUncheckedCreateWithoutStatusInput> | MasterEntityLineItemCreateWithoutStatusInput[] | MasterEntityLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutStatusInput | MasterEntityLineItemCreateOrConnectWithoutStatusInput[]
    createMany?: MasterEntityLineItemCreateManyStatusInputEnvelope
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
  }

  export type FieldTypeUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<FieldTypeCreateWithoutStatusInput, FieldTypeUncheckedCreateWithoutStatusInput> | FieldTypeCreateWithoutStatusInput[] | FieldTypeUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FieldTypeCreateOrConnectWithoutStatusInput | FieldTypeCreateOrConnectWithoutStatusInput[]
    createMany?: FieldTypeCreateManyStatusInputEnvelope
    connect?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
  }

  export type menuTypeUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<menuTypeCreateWithoutStatusInput, menuTypeUncheckedCreateWithoutStatusInput> | menuTypeCreateWithoutStatusInput[] | menuTypeUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: menuTypeCreateOrConnectWithoutStatusInput | menuTypeCreateOrConnectWithoutStatusInput[]
    createMany?: menuTypeCreateManyStatusInputEnvelope
    connect?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
  }

  export type EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutStatusInput, EmailTemplateProcessUncheckedCreateWithoutStatusInput> | EmailTemplateProcessCreateWithoutStatusInput[] | EmailTemplateProcessUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutStatusInput | EmailTemplateProcessCreateOrConnectWithoutStatusInput[]
    createMany?: EmailTemplateProcessCreateManyStatusInputEnvelope
    connect?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
  }

  export type EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailTemplateTagCreateWithoutStatusInput, EmailTemplateTagUncheckedCreateWithoutStatusInput> | EmailTemplateTagCreateWithoutStatusInput[] | EmailTemplateTagUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateTagCreateOrConnectWithoutStatusInput | EmailTemplateTagCreateOrConnectWithoutStatusInput[]
    createMany?: EmailTemplateTagCreateManyStatusInputEnvelope
    connect?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
  }

  export type EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailTemplateRecipientTagCreateWithoutStatusInput, EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput> | EmailTemplateRecipientTagCreateWithoutStatusInput[] | EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateRecipientTagCreateOrConnectWithoutStatusInput | EmailTemplateRecipientTagCreateOrConnectWithoutStatusInput[]
    createMany?: EmailTemplateRecipientTagCreateManyStatusInputEnvelope
    connect?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
  }

  export type EmailTemplateUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailTemplateCreateWithoutStatusInput, EmailTemplateUncheckedCreateWithoutStatusInput> | EmailTemplateCreateWithoutStatusInput[] | EmailTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutStatusInput | EmailTemplateCreateOrConnectWithoutStatusInput[]
    createMany?: EmailTemplateCreateManyStatusInputEnvelope
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
  }

  export type EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<EmailProcessJobCreateWithoutStatusInput, EmailProcessJobUncheckedCreateWithoutStatusInput> | EmailProcessJobCreateWithoutStatusInput[] | EmailProcessJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailProcessJobCreateOrConnectWithoutStatusInput | EmailProcessJobCreateOrConnectWithoutStatusInput[]
    createMany?: EmailProcessJobCreateManyStatusInputEnvelope
    connect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
  }

  export type NotificationJobUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<NotificationJobCreateWithoutStatusInput, NotificationJobUncheckedCreateWithoutStatusInput> | NotificationJobCreateWithoutStatusInput[] | NotificationJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: NotificationJobCreateOrConnectWithoutStatusInput | NotificationJobCreateOrConnectWithoutStatusInput[]
    createMany?: NotificationJobCreateManyStatusInputEnvelope
    connect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
  }

  export type ImportTemplateUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportTemplateCreateWithoutStatusInput, ImportTemplateUncheckedCreateWithoutStatusInput> | ImportTemplateCreateWithoutStatusInput[] | ImportTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutStatusInput | ImportTemplateCreateOrConnectWithoutStatusInput[]
    createMany?: ImportTemplateCreateManyStatusInputEnvelope
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
  }

  export type ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutStatusInput, ImportTemplateLineItemUncheckedCreateWithoutStatusInput> | ImportTemplateLineItemCreateWithoutStatusInput[] | ImportTemplateLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutStatusInput | ImportTemplateLineItemCreateOrConnectWithoutStatusInput[]
    createMany?: ImportTemplateLineItemCreateManyStatusInputEnvelope
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
  }

  export type ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportTemplateQueriesCreateWithoutStatusInput, ImportTemplateQueriesUncheckedCreateWithoutStatusInput> | ImportTemplateQueriesCreateWithoutStatusInput[] | ImportTemplateQueriesUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateQueriesCreateOrConnectWithoutStatusInput | ImportTemplateQueriesCreateOrConnectWithoutStatusInput[]
    createMany?: ImportTemplateQueriesCreateManyStatusInputEnvelope
    connect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
  }

  export type ExportTemplateUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<ExportTemplateCreateWithoutStatusInput, ExportTemplateUncheckedCreateWithoutStatusInput> | ExportTemplateCreateWithoutStatusInput[] | ExportTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutStatusInput | ExportTemplateCreateOrConnectWithoutStatusInput[]
    createMany?: ExportTemplateCreateManyStatusInputEnvelope
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
  }

  export type ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutStatusInput, ExportTemplateLineItemUncheckedCreateWithoutStatusInput> | ExportTemplateLineItemCreateWithoutStatusInput[] | ExportTemplateLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutStatusInput | ExportTemplateLineItemCreateOrConnectWithoutStatusInput[]
    createMany?: ExportTemplateLineItemCreateManyStatusInputEnvelope
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
  }

  export type ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<ExportTemplateQueriesCreateWithoutStatusInput, ExportTemplateQueriesUncheckedCreateWithoutStatusInput> | ExportTemplateQueriesCreateWithoutStatusInput[] | ExportTemplateQueriesUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateQueriesCreateOrConnectWithoutStatusInput | ExportTemplateQueriesCreateOrConnectWithoutStatusInput[]
    createMany?: ExportTemplateQueriesCreateManyStatusInputEnvelope
    connect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
  }

  export type DesignationUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<DesignationCreateWithoutStatusInput, DesignationUncheckedCreateWithoutStatusInput> | DesignationCreateWithoutStatusInput[] | DesignationUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutStatusInput | DesignationCreateOrConnectWithoutStatusInput[]
    createMany?: DesignationCreateManyStatusInputEnvelope
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
  }

  export type DepartmentUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<DepartmentCreateWithoutStatusInput, DepartmentUncheckedCreateWithoutStatusInput> | DepartmentCreateWithoutStatusInput[] | DepartmentUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutStatusInput | DepartmentCreateOrConnectWithoutStatusInput[]
    createMany?: DepartmentCreateManyStatusInputEnvelope
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
  }

  export type AuditLogUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<AuditLogCreateWithoutStatusInput, AuditLogUncheckedCreateWithoutStatusInput> | AuditLogCreateWithoutStatusInput[] | AuditLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: AuditLogCreateOrConnectWithoutStatusInput | AuditLogCreateOrConnectWithoutStatusInput[]
    createMany?: AuditLogCreateManyStatusInputEnvelope
    connect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
  }

  export type FinancialYearUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<FinancialYearCreateWithoutStatusInput, FinancialYearUncheckedCreateWithoutStatusInput> | FinancialYearCreateWithoutStatusInput[] | FinancialYearUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutStatusInput | FinancialYearCreateOrConnectWithoutStatusInput[]
    createMany?: FinancialYearCreateManyStatusInputEnvelope
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
  }

  export type DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<DocumentSequenceCreateWithoutStatusInput, DocumentSequenceUncheckedCreateWithoutStatusInput> | DocumentSequenceCreateWithoutStatusInput[] | DocumentSequenceUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutStatusInput | DocumentSequenceCreateOrConnectWithoutStatusInput[]
    createMany?: DocumentSequenceCreateManyStatusInputEnvelope
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
  }

  export type FileUploadLogUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<FileUploadLogCreateWithoutStatusInput, FileUploadLogUncheckedCreateWithoutStatusInput> | FileUploadLogCreateWithoutStatusInput[] | FileUploadLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FileUploadLogCreateOrConnectWithoutStatusInput | FileUploadLogCreateOrConnectWithoutStatusInput[]
    createMany?: FileUploadLogCreateManyStatusInputEnvelope
    connect?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
  }

  export type DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<DeviceRegistrationCreateWithoutStatusInput, DeviceRegistrationUncheckedCreateWithoutStatusInput> | DeviceRegistrationCreateWithoutStatusInput[] | DeviceRegistrationUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutStatusInput | DeviceRegistrationCreateOrConnectWithoutStatusInput[]
    createMany?: DeviceRegistrationCreateManyStatusInputEnvelope
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
  }

  export type ImportJobUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportJobCreateWithoutStatusInput, ImportJobUncheckedCreateWithoutStatusInput> | ImportJobCreateWithoutStatusInput[] | ImportJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutStatusInput | ImportJobCreateOrConnectWithoutStatusInput[]
    createMany?: ImportJobCreateManyStatusInputEnvelope
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
  }

  export type ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput = {
    create?: XOR<ImportJobLineItemCreateWithoutStatusInput, ImportJobLineItemUncheckedCreateWithoutStatusInput> | ImportJobLineItemCreateWithoutStatusInput[] | ImportJobLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportJobLineItemCreateOrConnectWithoutStatusInput | ImportJobLineItemCreateOrConnectWithoutStatusInput[]
    createMany?: ImportJobLineItemCreateManyStatusInputEnvelope
    connect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
  }

  export type StatusUpdateOneWithoutStatus_listNestedInput = {
    create?: XOR<StatusCreateWithoutStatus_listInput, StatusUncheckedCreateWithoutStatus_listInput>
    connectOrCreate?: StatusCreateOrConnectWithoutStatus_listInput
    upsert?: StatusUpsertWithoutStatus_listInput
    disconnect?: StatusWhereInput | boolean
    delete?: StatusWhereInput | boolean
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutStatus_listInput, StatusUpdateWithoutStatus_listInput>, StatusUncheckedUpdateWithoutStatus_listInput>
  }

  export type StatusUpdateManyWithoutStatusNestedInput = {
    create?: XOR<StatusCreateWithoutStatusInput, StatusUncheckedCreateWithoutStatusInput> | StatusCreateWithoutStatusInput[] | StatusUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: StatusCreateOrConnectWithoutStatusInput | StatusCreateOrConnectWithoutStatusInput[]
    upsert?: StatusUpsertWithWhereUniqueWithoutStatusInput | StatusUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: StatusCreateManyStatusInputEnvelope
    set?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
    disconnect?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
    delete?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
    connect?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
    update?: StatusUpdateWithWhereUniqueWithoutStatusInput | StatusUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: StatusUpdateManyWithWhereWithoutStatusInput | StatusUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: StatusScalarWhereInput | StatusScalarWhereInput[]
  }

  export type UserUpdateManyWithoutStatusNestedInput = {
    create?: XOR<UserCreateWithoutStatusInput, UserUncheckedCreateWithoutStatusInput> | UserCreateWithoutStatusInput[] | UserUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: UserCreateOrConnectWithoutStatusInput | UserCreateOrConnectWithoutStatusInput[]
    upsert?: UserUpsertWithWhereUniqueWithoutStatusInput | UserUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: UserCreateManyStatusInputEnvelope
    set?: UserWhereUniqueInput | UserWhereUniqueInput[]
    disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    update?: UserUpdateWithWhereUniqueWithoutStatusInput | UserUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: UserUpdateManyWithWhereWithoutStatusInput | UserUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
  }

  export type RequestLogUpdateManyWithoutStatusNestedInput = {
    create?: XOR<RequestLogCreateWithoutStatusInput, RequestLogUncheckedCreateWithoutStatusInput> | RequestLogCreateWithoutStatusInput[] | RequestLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: RequestLogCreateOrConnectWithoutStatusInput | RequestLogCreateOrConnectWithoutStatusInput[]
    upsert?: RequestLogUpsertWithWhereUniqueWithoutStatusInput | RequestLogUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: RequestLogCreateManyStatusInputEnvelope
    set?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    disconnect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    delete?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    connect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    update?: RequestLogUpdateWithWhereUniqueWithoutStatusInput | RequestLogUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: RequestLogUpdateManyWithWhereWithoutStatusInput | RequestLogUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: RequestLogScalarWhereInput | RequestLogScalarWhereInput[]
  }

  export type PermissionsUpdateManyWithoutStatusNestedInput = {
    create?: XOR<PermissionsCreateWithoutStatusInput, PermissionsUncheckedCreateWithoutStatusInput> | PermissionsCreateWithoutStatusInput[] | PermissionsUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: PermissionsCreateOrConnectWithoutStatusInput | PermissionsCreateOrConnectWithoutStatusInput[]
    upsert?: PermissionsUpsertWithWhereUniqueWithoutStatusInput | PermissionsUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: PermissionsCreateManyStatusInputEnvelope
    set?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    disconnect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    delete?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    connect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    update?: PermissionsUpdateWithWhereUniqueWithoutStatusInput | PermissionsUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: PermissionsUpdateManyWithWhereWithoutStatusInput | PermissionsUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: PermissionsScalarWhereInput | PermissionsScalarWhereInput[]
  }

  export type RoleUpdateManyWithoutStatusNestedInput = {
    create?: XOR<RoleCreateWithoutStatusInput, RoleUncheckedCreateWithoutStatusInput> | RoleCreateWithoutStatusInput[] | RoleUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutStatusInput | RoleCreateOrConnectWithoutStatusInput[]
    upsert?: RoleUpsertWithWhereUniqueWithoutStatusInput | RoleUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: RoleCreateManyStatusInputEnvelope
    set?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    disconnect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    delete?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    update?: RoleUpdateWithWhereUniqueWithoutStatusInput | RoleUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: RoleUpdateManyWithWhereWithoutStatusInput | RoleUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: RoleScalarWhereInput | RoleScalarWhereInput[]
  }

  export type LanguageUpdateManyWithoutStatusNestedInput = {
    create?: XOR<LanguageCreateWithoutStatusInput, LanguageUncheckedCreateWithoutStatusInput> | LanguageCreateWithoutStatusInput[] | LanguageUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutStatusInput | LanguageCreateOrConnectWithoutStatusInput[]
    upsert?: LanguageUpsertWithWhereUniqueWithoutStatusInput | LanguageUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: LanguageCreateManyStatusInputEnvelope
    set?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    disconnect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    delete?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    update?: LanguageUpdateWithWhereUniqueWithoutStatusInput | LanguageUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: LanguageUpdateManyWithWhereWithoutStatusInput | LanguageUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
  }

  export type LanguageContentUpdateManyWithoutStatusNestedInput = {
    create?: XOR<LanguageContentCreateWithoutStatusInput, LanguageContentUncheckedCreateWithoutStatusInput> | LanguageContentCreateWithoutStatusInput[] | LanguageContentUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: LanguageContentCreateOrConnectWithoutStatusInput | LanguageContentCreateOrConnectWithoutStatusInput[]
    upsert?: LanguageContentUpsertWithWhereUniqueWithoutStatusInput | LanguageContentUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: LanguageContentCreateManyStatusInputEnvelope
    set?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    disconnect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    delete?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    connect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    update?: LanguageContentUpdateWithWhereUniqueWithoutStatusInput | LanguageContentUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: LanguageContentUpdateManyWithWhereWithoutStatusInput | LanguageContentUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: LanguageContentScalarWhereInput | LanguageContentScalarWhereInput[]
  }

  export type MenuItemsUpdateManyWithoutStatusNestedInput = {
    create?: XOR<MenuItemsCreateWithoutStatusInput, MenuItemsUncheckedCreateWithoutStatusInput> | MenuItemsCreateWithoutStatusInput[] | MenuItemsUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutStatusInput | MenuItemsCreateOrConnectWithoutStatusInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutStatusInput | MenuItemsUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: MenuItemsCreateManyStatusInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutStatusInput | MenuItemsUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutStatusInput | MenuItemsUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type MenusUpdateManyWithoutStatusNestedInput = {
    create?: XOR<MenusCreateWithoutStatusInput, MenusUncheckedCreateWithoutStatusInput> | MenusCreateWithoutStatusInput[] | MenusUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutStatusInput | MenusCreateOrConnectWithoutStatusInput[]
    upsert?: MenusUpsertWithWhereUniqueWithoutStatusInput | MenusUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: MenusCreateManyStatusInputEnvelope
    set?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    disconnect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    delete?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    update?: MenusUpdateWithWhereUniqueWithoutStatusInput | MenusUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: MenusUpdateManyWithWhereWithoutStatusInput | MenusUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: MenusScalarWhereInput | MenusScalarWhereInput[]
  }

  export type MasterEntityUpdateManyWithoutStatusNestedInput = {
    create?: XOR<MasterEntityCreateWithoutStatusInput, MasterEntityUncheckedCreateWithoutStatusInput> | MasterEntityCreateWithoutStatusInput[] | MasterEntityUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MasterEntityCreateOrConnectWithoutStatusInput | MasterEntityCreateOrConnectWithoutStatusInput[]
    upsert?: MasterEntityUpsertWithWhereUniqueWithoutStatusInput | MasterEntityUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: MasterEntityCreateManyStatusInputEnvelope
    set?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
    disconnect?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
    delete?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
    connect?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
    update?: MasterEntityUpdateWithWhereUniqueWithoutStatusInput | MasterEntityUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: MasterEntityUpdateManyWithWhereWithoutStatusInput | MasterEntityUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: MasterEntityScalarWhereInput | MasterEntityScalarWhereInput[]
  }

  export type MasterEntityLineItemUpdateManyWithoutStatusNestedInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutStatusInput, MasterEntityLineItemUncheckedCreateWithoutStatusInput> | MasterEntityLineItemCreateWithoutStatusInput[] | MasterEntityLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutStatusInput | MasterEntityLineItemCreateOrConnectWithoutStatusInput[]
    upsert?: MasterEntityLineItemUpsertWithWhereUniqueWithoutStatusInput | MasterEntityLineItemUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: MasterEntityLineItemCreateManyStatusInputEnvelope
    set?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    disconnect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    delete?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    update?: MasterEntityLineItemUpdateWithWhereUniqueWithoutStatusInput | MasterEntityLineItemUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: MasterEntityLineItemUpdateManyWithWhereWithoutStatusInput | MasterEntityLineItemUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: MasterEntityLineItemScalarWhereInput | MasterEntityLineItemScalarWhereInput[]
  }

  export type FieldTypeUpdateManyWithoutStatusNestedInput = {
    create?: XOR<FieldTypeCreateWithoutStatusInput, FieldTypeUncheckedCreateWithoutStatusInput> | FieldTypeCreateWithoutStatusInput[] | FieldTypeUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FieldTypeCreateOrConnectWithoutStatusInput | FieldTypeCreateOrConnectWithoutStatusInput[]
    upsert?: FieldTypeUpsertWithWhereUniqueWithoutStatusInput | FieldTypeUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: FieldTypeCreateManyStatusInputEnvelope
    set?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
    disconnect?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
    delete?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
    connect?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
    update?: FieldTypeUpdateWithWhereUniqueWithoutStatusInput | FieldTypeUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: FieldTypeUpdateManyWithWhereWithoutStatusInput | FieldTypeUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: FieldTypeScalarWhereInput | FieldTypeScalarWhereInput[]
  }

  export type menuTypeUpdateManyWithoutStatusNestedInput = {
    create?: XOR<menuTypeCreateWithoutStatusInput, menuTypeUncheckedCreateWithoutStatusInput> | menuTypeCreateWithoutStatusInput[] | menuTypeUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: menuTypeCreateOrConnectWithoutStatusInput | menuTypeCreateOrConnectWithoutStatusInput[]
    upsert?: menuTypeUpsertWithWhereUniqueWithoutStatusInput | menuTypeUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: menuTypeCreateManyStatusInputEnvelope
    set?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
    disconnect?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
    delete?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
    connect?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
    update?: menuTypeUpdateWithWhereUniqueWithoutStatusInput | menuTypeUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: menuTypeUpdateManyWithWhereWithoutStatusInput | menuTypeUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: menuTypeScalarWhereInput | menuTypeScalarWhereInput[]
  }

  export type EmailTemplateProcessUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutStatusInput, EmailTemplateProcessUncheckedCreateWithoutStatusInput> | EmailTemplateProcessCreateWithoutStatusInput[] | EmailTemplateProcessUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutStatusInput | EmailTemplateProcessCreateOrConnectWithoutStatusInput[]
    upsert?: EmailTemplateProcessUpsertWithWhereUniqueWithoutStatusInput | EmailTemplateProcessUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailTemplateProcessCreateManyStatusInputEnvelope
    set?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
    disconnect?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
    delete?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
    connect?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
    update?: EmailTemplateProcessUpdateWithWhereUniqueWithoutStatusInput | EmailTemplateProcessUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailTemplateProcessUpdateManyWithWhereWithoutStatusInput | EmailTemplateProcessUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailTemplateProcessScalarWhereInput | EmailTemplateProcessScalarWhereInput[]
  }

  export type EmailTemplateTagUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailTemplateTagCreateWithoutStatusInput, EmailTemplateTagUncheckedCreateWithoutStatusInput> | EmailTemplateTagCreateWithoutStatusInput[] | EmailTemplateTagUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateTagCreateOrConnectWithoutStatusInput | EmailTemplateTagCreateOrConnectWithoutStatusInput[]
    upsert?: EmailTemplateTagUpsertWithWhereUniqueWithoutStatusInput | EmailTemplateTagUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailTemplateTagCreateManyStatusInputEnvelope
    set?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
    disconnect?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
    delete?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
    connect?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
    update?: EmailTemplateTagUpdateWithWhereUniqueWithoutStatusInput | EmailTemplateTagUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailTemplateTagUpdateManyWithWhereWithoutStatusInput | EmailTemplateTagUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailTemplateTagScalarWhereInput | EmailTemplateTagScalarWhereInput[]
  }

  export type EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailTemplateRecipientTagCreateWithoutStatusInput, EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput> | EmailTemplateRecipientTagCreateWithoutStatusInput[] | EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateRecipientTagCreateOrConnectWithoutStatusInput | EmailTemplateRecipientTagCreateOrConnectWithoutStatusInput[]
    upsert?: EmailTemplateRecipientTagUpsertWithWhereUniqueWithoutStatusInput | EmailTemplateRecipientTagUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailTemplateRecipientTagCreateManyStatusInputEnvelope
    set?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
    disconnect?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
    delete?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
    connect?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
    update?: EmailTemplateRecipientTagUpdateWithWhereUniqueWithoutStatusInput | EmailTemplateRecipientTagUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailTemplateRecipientTagUpdateManyWithWhereWithoutStatusInput | EmailTemplateRecipientTagUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailTemplateRecipientTagScalarWhereInput | EmailTemplateRecipientTagScalarWhereInput[]
  }

  export type EmailTemplateUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutStatusInput, EmailTemplateUncheckedCreateWithoutStatusInput> | EmailTemplateCreateWithoutStatusInput[] | EmailTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutStatusInput | EmailTemplateCreateOrConnectWithoutStatusInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutStatusInput | EmailTemplateUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailTemplateCreateManyStatusInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutStatusInput | EmailTemplateUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutStatusInput | EmailTemplateUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailProcessJobUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailProcessJobCreateWithoutStatusInput, EmailProcessJobUncheckedCreateWithoutStatusInput> | EmailProcessJobCreateWithoutStatusInput[] | EmailProcessJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailProcessJobCreateOrConnectWithoutStatusInput | EmailProcessJobCreateOrConnectWithoutStatusInput[]
    upsert?: EmailProcessJobUpsertWithWhereUniqueWithoutStatusInput | EmailProcessJobUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailProcessJobCreateManyStatusInputEnvelope
    set?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    disconnect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    delete?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    connect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    update?: EmailProcessJobUpdateWithWhereUniqueWithoutStatusInput | EmailProcessJobUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailProcessJobUpdateManyWithWhereWithoutStatusInput | EmailProcessJobUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailProcessJobScalarWhereInput | EmailProcessJobScalarWhereInput[]
  }

  export type NotificationJobUpdateManyWithoutStatusNestedInput = {
    create?: XOR<NotificationJobCreateWithoutStatusInput, NotificationJobUncheckedCreateWithoutStatusInput> | NotificationJobCreateWithoutStatusInput[] | NotificationJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: NotificationJobCreateOrConnectWithoutStatusInput | NotificationJobCreateOrConnectWithoutStatusInput[]
    upsert?: NotificationJobUpsertWithWhereUniqueWithoutStatusInput | NotificationJobUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: NotificationJobCreateManyStatusInputEnvelope
    set?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    disconnect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    delete?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    connect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    update?: NotificationJobUpdateWithWhereUniqueWithoutStatusInput | NotificationJobUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: NotificationJobUpdateManyWithWhereWithoutStatusInput | NotificationJobUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: NotificationJobScalarWhereInput | NotificationJobScalarWhereInput[]
  }

  export type ImportTemplateUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutStatusInput, ImportTemplateUncheckedCreateWithoutStatusInput> | ImportTemplateCreateWithoutStatusInput[] | ImportTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutStatusInput | ImportTemplateCreateOrConnectWithoutStatusInput[]
    upsert?: ImportTemplateUpsertWithWhereUniqueWithoutStatusInput | ImportTemplateUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportTemplateCreateManyStatusInputEnvelope
    set?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    disconnect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    delete?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    update?: ImportTemplateUpdateWithWhereUniqueWithoutStatusInput | ImportTemplateUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportTemplateUpdateManyWithWhereWithoutStatusInput | ImportTemplateUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
  }

  export type ImportTemplateLineItemUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutStatusInput, ImportTemplateLineItemUncheckedCreateWithoutStatusInput> | ImportTemplateLineItemCreateWithoutStatusInput[] | ImportTemplateLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutStatusInput | ImportTemplateLineItemCreateOrConnectWithoutStatusInput[]
    upsert?: ImportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput | ImportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportTemplateLineItemCreateManyStatusInputEnvelope
    set?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    disconnect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    delete?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    update?: ImportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput | ImportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportTemplateLineItemUpdateManyWithWhereWithoutStatusInput | ImportTemplateLineItemUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportTemplateLineItemScalarWhereInput | ImportTemplateLineItemScalarWhereInput[]
  }

  export type ImportTemplateQueriesUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportTemplateQueriesCreateWithoutStatusInput, ImportTemplateQueriesUncheckedCreateWithoutStatusInput> | ImportTemplateQueriesCreateWithoutStatusInput[] | ImportTemplateQueriesUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateQueriesCreateOrConnectWithoutStatusInput | ImportTemplateQueriesCreateOrConnectWithoutStatusInput[]
    upsert?: ImportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput | ImportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportTemplateQueriesCreateManyStatusInputEnvelope
    set?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    disconnect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    delete?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    connect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    update?: ImportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput | ImportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportTemplateQueriesUpdateManyWithWhereWithoutStatusInput | ImportTemplateQueriesUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportTemplateQueriesScalarWhereInput | ImportTemplateQueriesScalarWhereInput[]
  }

  export type ExportTemplateUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutStatusInput, ExportTemplateUncheckedCreateWithoutStatusInput> | ExportTemplateCreateWithoutStatusInput[] | ExportTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutStatusInput | ExportTemplateCreateOrConnectWithoutStatusInput[]
    upsert?: ExportTemplateUpsertWithWhereUniqueWithoutStatusInput | ExportTemplateUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ExportTemplateCreateManyStatusInputEnvelope
    set?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    disconnect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    delete?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    update?: ExportTemplateUpdateWithWhereUniqueWithoutStatusInput | ExportTemplateUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ExportTemplateUpdateManyWithWhereWithoutStatusInput | ExportTemplateUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
  }

  export type ExportTemplateLineItemUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutStatusInput, ExportTemplateLineItemUncheckedCreateWithoutStatusInput> | ExportTemplateLineItemCreateWithoutStatusInput[] | ExportTemplateLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutStatusInput | ExportTemplateLineItemCreateOrConnectWithoutStatusInput[]
    upsert?: ExportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput | ExportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ExportTemplateLineItemCreateManyStatusInputEnvelope
    set?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    disconnect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    delete?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    update?: ExportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput | ExportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ExportTemplateLineItemUpdateManyWithWhereWithoutStatusInput | ExportTemplateLineItemUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ExportTemplateLineItemScalarWhereInput | ExportTemplateLineItemScalarWhereInput[]
  }

  export type ExportTemplateQueriesUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ExportTemplateQueriesCreateWithoutStatusInput, ExportTemplateQueriesUncheckedCreateWithoutStatusInput> | ExportTemplateQueriesCreateWithoutStatusInput[] | ExportTemplateQueriesUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateQueriesCreateOrConnectWithoutStatusInput | ExportTemplateQueriesCreateOrConnectWithoutStatusInput[]
    upsert?: ExportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput | ExportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ExportTemplateQueriesCreateManyStatusInputEnvelope
    set?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    disconnect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    delete?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    connect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    update?: ExportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput | ExportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ExportTemplateQueriesUpdateManyWithWhereWithoutStatusInput | ExportTemplateQueriesUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ExportTemplateQueriesScalarWhereInput | ExportTemplateQueriesScalarWhereInput[]
  }

  export type DesignationUpdateManyWithoutStatusNestedInput = {
    create?: XOR<DesignationCreateWithoutStatusInput, DesignationUncheckedCreateWithoutStatusInput> | DesignationCreateWithoutStatusInput[] | DesignationUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutStatusInput | DesignationCreateOrConnectWithoutStatusInput[]
    upsert?: DesignationUpsertWithWhereUniqueWithoutStatusInput | DesignationUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: DesignationCreateManyStatusInputEnvelope
    set?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    disconnect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    delete?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    update?: DesignationUpdateWithWhereUniqueWithoutStatusInput | DesignationUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: DesignationUpdateManyWithWhereWithoutStatusInput | DesignationUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
  }

  export type DepartmentUpdateManyWithoutStatusNestedInput = {
    create?: XOR<DepartmentCreateWithoutStatusInput, DepartmentUncheckedCreateWithoutStatusInput> | DepartmentCreateWithoutStatusInput[] | DepartmentUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutStatusInput | DepartmentCreateOrConnectWithoutStatusInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutStatusInput | DepartmentUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: DepartmentCreateManyStatusInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutStatusInput | DepartmentUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutStatusInput | DepartmentUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type AuditLogUpdateManyWithoutStatusNestedInput = {
    create?: XOR<AuditLogCreateWithoutStatusInput, AuditLogUncheckedCreateWithoutStatusInput> | AuditLogCreateWithoutStatusInput[] | AuditLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: AuditLogCreateOrConnectWithoutStatusInput | AuditLogCreateOrConnectWithoutStatusInput[]
    upsert?: AuditLogUpsertWithWhereUniqueWithoutStatusInput | AuditLogUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: AuditLogCreateManyStatusInputEnvelope
    set?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    disconnect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    delete?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    connect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    update?: AuditLogUpdateWithWhereUniqueWithoutStatusInput | AuditLogUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: AuditLogUpdateManyWithWhereWithoutStatusInput | AuditLogUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: AuditLogScalarWhereInput | AuditLogScalarWhereInput[]
  }

  export type FinancialYearUpdateManyWithoutStatusNestedInput = {
    create?: XOR<FinancialYearCreateWithoutStatusInput, FinancialYearUncheckedCreateWithoutStatusInput> | FinancialYearCreateWithoutStatusInput[] | FinancialYearUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutStatusInput | FinancialYearCreateOrConnectWithoutStatusInput[]
    upsert?: FinancialYearUpsertWithWhereUniqueWithoutStatusInput | FinancialYearUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: FinancialYearCreateManyStatusInputEnvelope
    set?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    disconnect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    delete?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    update?: FinancialYearUpdateWithWhereUniqueWithoutStatusInput | FinancialYearUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: FinancialYearUpdateManyWithWhereWithoutStatusInput | FinancialYearUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
  }

  export type DocumentSequenceUpdateManyWithoutStatusNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutStatusInput, DocumentSequenceUncheckedCreateWithoutStatusInput> | DocumentSequenceCreateWithoutStatusInput[] | DocumentSequenceUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutStatusInput | DocumentSequenceCreateOrConnectWithoutStatusInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutStatusInput | DocumentSequenceUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: DocumentSequenceCreateManyStatusInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutStatusInput | DocumentSequenceUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutStatusInput | DocumentSequenceUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type FileUploadLogUpdateManyWithoutStatusNestedInput = {
    create?: XOR<FileUploadLogCreateWithoutStatusInput, FileUploadLogUncheckedCreateWithoutStatusInput> | FileUploadLogCreateWithoutStatusInput[] | FileUploadLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FileUploadLogCreateOrConnectWithoutStatusInput | FileUploadLogCreateOrConnectWithoutStatusInput[]
    upsert?: FileUploadLogUpsertWithWhereUniqueWithoutStatusInput | FileUploadLogUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: FileUploadLogCreateManyStatusInputEnvelope
    set?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
    disconnect?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
    delete?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
    connect?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
    update?: FileUploadLogUpdateWithWhereUniqueWithoutStatusInput | FileUploadLogUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: FileUploadLogUpdateManyWithWhereWithoutStatusInput | FileUploadLogUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: FileUploadLogScalarWhereInput | FileUploadLogScalarWhereInput[]
  }

  export type DeviceRegistrationUpdateManyWithoutStatusNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutStatusInput, DeviceRegistrationUncheckedCreateWithoutStatusInput> | DeviceRegistrationCreateWithoutStatusInput[] | DeviceRegistrationUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutStatusInput | DeviceRegistrationCreateOrConnectWithoutStatusInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutStatusInput | DeviceRegistrationUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: DeviceRegistrationCreateManyStatusInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutStatusInput | DeviceRegistrationUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutStatusInput | DeviceRegistrationUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type ImportJobUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportJobCreateWithoutStatusInput, ImportJobUncheckedCreateWithoutStatusInput> | ImportJobCreateWithoutStatusInput[] | ImportJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutStatusInput | ImportJobCreateOrConnectWithoutStatusInput[]
    upsert?: ImportJobUpsertWithWhereUniqueWithoutStatusInput | ImportJobUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportJobCreateManyStatusInputEnvelope
    set?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    disconnect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    delete?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    update?: ImportJobUpdateWithWhereUniqueWithoutStatusInput | ImportJobUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportJobUpdateManyWithWhereWithoutStatusInput | ImportJobUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
  }

  export type ImportJobLineItemUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportJobLineItemCreateWithoutStatusInput, ImportJobLineItemUncheckedCreateWithoutStatusInput> | ImportJobLineItemCreateWithoutStatusInput[] | ImportJobLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportJobLineItemCreateOrConnectWithoutStatusInput | ImportJobLineItemCreateOrConnectWithoutStatusInput[]
    upsert?: ImportJobLineItemUpsertWithWhereUniqueWithoutStatusInput | ImportJobLineItemUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportJobLineItemCreateManyStatusInputEnvelope
    set?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    disconnect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    delete?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    connect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    update?: ImportJobLineItemUpdateWithWhereUniqueWithoutStatusInput | ImportJobLineItemUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportJobLineItemUpdateManyWithWhereWithoutStatusInput | ImportJobLineItemUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportJobLineItemScalarWhereInput | ImportJobLineItemScalarWhereInput[]
  }

  export type StatusUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<StatusCreateWithoutStatusInput, StatusUncheckedCreateWithoutStatusInput> | StatusCreateWithoutStatusInput[] | StatusUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: StatusCreateOrConnectWithoutStatusInput | StatusCreateOrConnectWithoutStatusInput[]
    upsert?: StatusUpsertWithWhereUniqueWithoutStatusInput | StatusUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: StatusCreateManyStatusInputEnvelope
    set?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
    disconnect?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
    delete?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
    connect?: StatusWhereUniqueInput | StatusWhereUniqueInput[]
    update?: StatusUpdateWithWhereUniqueWithoutStatusInput | StatusUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: StatusUpdateManyWithWhereWithoutStatusInput | StatusUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: StatusScalarWhereInput | StatusScalarWhereInput[]
  }

  export type UserUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<UserCreateWithoutStatusInput, UserUncheckedCreateWithoutStatusInput> | UserCreateWithoutStatusInput[] | UserUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: UserCreateOrConnectWithoutStatusInput | UserCreateOrConnectWithoutStatusInput[]
    upsert?: UserUpsertWithWhereUniqueWithoutStatusInput | UserUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: UserCreateManyStatusInputEnvelope
    set?: UserWhereUniqueInput | UserWhereUniqueInput[]
    disconnect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    delete?: UserWhereUniqueInput | UserWhereUniqueInput[]
    connect?: UserWhereUniqueInput | UserWhereUniqueInput[]
    update?: UserUpdateWithWhereUniqueWithoutStatusInput | UserUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: UserUpdateManyWithWhereWithoutStatusInput | UserUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: UserScalarWhereInput | UserScalarWhereInput[]
  }

  export type RequestLogUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<RequestLogCreateWithoutStatusInput, RequestLogUncheckedCreateWithoutStatusInput> | RequestLogCreateWithoutStatusInput[] | RequestLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: RequestLogCreateOrConnectWithoutStatusInput | RequestLogCreateOrConnectWithoutStatusInput[]
    upsert?: RequestLogUpsertWithWhereUniqueWithoutStatusInput | RequestLogUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: RequestLogCreateManyStatusInputEnvelope
    set?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    disconnect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    delete?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    connect?: RequestLogWhereUniqueInput | RequestLogWhereUniqueInput[]
    update?: RequestLogUpdateWithWhereUniqueWithoutStatusInput | RequestLogUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: RequestLogUpdateManyWithWhereWithoutStatusInput | RequestLogUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: RequestLogScalarWhereInput | RequestLogScalarWhereInput[]
  }

  export type PermissionsUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<PermissionsCreateWithoutStatusInput, PermissionsUncheckedCreateWithoutStatusInput> | PermissionsCreateWithoutStatusInput[] | PermissionsUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: PermissionsCreateOrConnectWithoutStatusInput | PermissionsCreateOrConnectWithoutStatusInput[]
    upsert?: PermissionsUpsertWithWhereUniqueWithoutStatusInput | PermissionsUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: PermissionsCreateManyStatusInputEnvelope
    set?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    disconnect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    delete?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    connect?: PermissionsWhereUniqueInput | PermissionsWhereUniqueInput[]
    update?: PermissionsUpdateWithWhereUniqueWithoutStatusInput | PermissionsUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: PermissionsUpdateManyWithWhereWithoutStatusInput | PermissionsUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: PermissionsScalarWhereInput | PermissionsScalarWhereInput[]
  }

  export type RoleUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<RoleCreateWithoutStatusInput, RoleUncheckedCreateWithoutStatusInput> | RoleCreateWithoutStatusInput[] | RoleUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: RoleCreateOrConnectWithoutStatusInput | RoleCreateOrConnectWithoutStatusInput[]
    upsert?: RoleUpsertWithWhereUniqueWithoutStatusInput | RoleUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: RoleCreateManyStatusInputEnvelope
    set?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    disconnect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    delete?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    connect?: RoleWhereUniqueInput | RoleWhereUniqueInput[]
    update?: RoleUpdateWithWhereUniqueWithoutStatusInput | RoleUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: RoleUpdateManyWithWhereWithoutStatusInput | RoleUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: RoleScalarWhereInput | RoleScalarWhereInput[]
  }

  export type LanguageUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<LanguageCreateWithoutStatusInput, LanguageUncheckedCreateWithoutStatusInput> | LanguageCreateWithoutStatusInput[] | LanguageUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: LanguageCreateOrConnectWithoutStatusInput | LanguageCreateOrConnectWithoutStatusInput[]
    upsert?: LanguageUpsertWithWhereUniqueWithoutStatusInput | LanguageUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: LanguageCreateManyStatusInputEnvelope
    set?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    disconnect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    delete?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    connect?: LanguageWhereUniqueInput | LanguageWhereUniqueInput[]
    update?: LanguageUpdateWithWhereUniqueWithoutStatusInput | LanguageUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: LanguageUpdateManyWithWhereWithoutStatusInput | LanguageUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
  }

  export type LanguageContentUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<LanguageContentCreateWithoutStatusInput, LanguageContentUncheckedCreateWithoutStatusInput> | LanguageContentCreateWithoutStatusInput[] | LanguageContentUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: LanguageContentCreateOrConnectWithoutStatusInput | LanguageContentCreateOrConnectWithoutStatusInput[]
    upsert?: LanguageContentUpsertWithWhereUniqueWithoutStatusInput | LanguageContentUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: LanguageContentCreateManyStatusInputEnvelope
    set?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    disconnect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    delete?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    connect?: LanguageContentWhereUniqueInput | LanguageContentWhereUniqueInput[]
    update?: LanguageContentUpdateWithWhereUniqueWithoutStatusInput | LanguageContentUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: LanguageContentUpdateManyWithWhereWithoutStatusInput | LanguageContentUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: LanguageContentScalarWhereInput | LanguageContentScalarWhereInput[]
  }

  export type MenuItemsUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<MenuItemsCreateWithoutStatusInput, MenuItemsUncheckedCreateWithoutStatusInput> | MenuItemsCreateWithoutStatusInput[] | MenuItemsUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MenuItemsCreateOrConnectWithoutStatusInput | MenuItemsCreateOrConnectWithoutStatusInput[]
    upsert?: MenuItemsUpsertWithWhereUniqueWithoutStatusInput | MenuItemsUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: MenuItemsCreateManyStatusInputEnvelope
    set?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    disconnect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    delete?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    connect?: MenuItemsWhereUniqueInput | MenuItemsWhereUniqueInput[]
    update?: MenuItemsUpdateWithWhereUniqueWithoutStatusInput | MenuItemsUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: MenuItemsUpdateManyWithWhereWithoutStatusInput | MenuItemsUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
  }

  export type MenusUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<MenusCreateWithoutStatusInput, MenusUncheckedCreateWithoutStatusInput> | MenusCreateWithoutStatusInput[] | MenusUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MenusCreateOrConnectWithoutStatusInput | MenusCreateOrConnectWithoutStatusInput[]
    upsert?: MenusUpsertWithWhereUniqueWithoutStatusInput | MenusUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: MenusCreateManyStatusInputEnvelope
    set?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    disconnect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    delete?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    connect?: MenusWhereUniqueInput | MenusWhereUniqueInput[]
    update?: MenusUpdateWithWhereUniqueWithoutStatusInput | MenusUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: MenusUpdateManyWithWhereWithoutStatusInput | MenusUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: MenusScalarWhereInput | MenusScalarWhereInput[]
  }

  export type MasterEntityUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<MasterEntityCreateWithoutStatusInput, MasterEntityUncheckedCreateWithoutStatusInput> | MasterEntityCreateWithoutStatusInput[] | MasterEntityUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MasterEntityCreateOrConnectWithoutStatusInput | MasterEntityCreateOrConnectWithoutStatusInput[]
    upsert?: MasterEntityUpsertWithWhereUniqueWithoutStatusInput | MasterEntityUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: MasterEntityCreateManyStatusInputEnvelope
    set?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
    disconnect?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
    delete?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
    connect?: MasterEntityWhereUniqueInput | MasterEntityWhereUniqueInput[]
    update?: MasterEntityUpdateWithWhereUniqueWithoutStatusInput | MasterEntityUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: MasterEntityUpdateManyWithWhereWithoutStatusInput | MasterEntityUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: MasterEntityScalarWhereInput | MasterEntityScalarWhereInput[]
  }

  export type MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<MasterEntityLineItemCreateWithoutStatusInput, MasterEntityLineItemUncheckedCreateWithoutStatusInput> | MasterEntityLineItemCreateWithoutStatusInput[] | MasterEntityLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: MasterEntityLineItemCreateOrConnectWithoutStatusInput | MasterEntityLineItemCreateOrConnectWithoutStatusInput[]
    upsert?: MasterEntityLineItemUpsertWithWhereUniqueWithoutStatusInput | MasterEntityLineItemUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: MasterEntityLineItemCreateManyStatusInputEnvelope
    set?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    disconnect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    delete?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    connect?: MasterEntityLineItemWhereUniqueInput | MasterEntityLineItemWhereUniqueInput[]
    update?: MasterEntityLineItemUpdateWithWhereUniqueWithoutStatusInput | MasterEntityLineItemUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: MasterEntityLineItemUpdateManyWithWhereWithoutStatusInput | MasterEntityLineItemUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: MasterEntityLineItemScalarWhereInput | MasterEntityLineItemScalarWhereInput[]
  }

  export type FieldTypeUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<FieldTypeCreateWithoutStatusInput, FieldTypeUncheckedCreateWithoutStatusInput> | FieldTypeCreateWithoutStatusInput[] | FieldTypeUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FieldTypeCreateOrConnectWithoutStatusInput | FieldTypeCreateOrConnectWithoutStatusInput[]
    upsert?: FieldTypeUpsertWithWhereUniqueWithoutStatusInput | FieldTypeUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: FieldTypeCreateManyStatusInputEnvelope
    set?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
    disconnect?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
    delete?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
    connect?: FieldTypeWhereUniqueInput | FieldTypeWhereUniqueInput[]
    update?: FieldTypeUpdateWithWhereUniqueWithoutStatusInput | FieldTypeUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: FieldTypeUpdateManyWithWhereWithoutStatusInput | FieldTypeUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: FieldTypeScalarWhereInput | FieldTypeScalarWhereInput[]
  }

  export type menuTypeUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<menuTypeCreateWithoutStatusInput, menuTypeUncheckedCreateWithoutStatusInput> | menuTypeCreateWithoutStatusInput[] | menuTypeUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: menuTypeCreateOrConnectWithoutStatusInput | menuTypeCreateOrConnectWithoutStatusInput[]
    upsert?: menuTypeUpsertWithWhereUniqueWithoutStatusInput | menuTypeUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: menuTypeCreateManyStatusInputEnvelope
    set?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
    disconnect?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
    delete?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
    connect?: menuTypeWhereUniqueInput | menuTypeWhereUniqueInput[]
    update?: menuTypeUpdateWithWhereUniqueWithoutStatusInput | menuTypeUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: menuTypeUpdateManyWithWhereWithoutStatusInput | menuTypeUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: menuTypeScalarWhereInput | menuTypeScalarWhereInput[]
  }

  export type EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailTemplateProcessCreateWithoutStatusInput, EmailTemplateProcessUncheckedCreateWithoutStatusInput> | EmailTemplateProcessCreateWithoutStatusInput[] | EmailTemplateProcessUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateProcessCreateOrConnectWithoutStatusInput | EmailTemplateProcessCreateOrConnectWithoutStatusInput[]
    upsert?: EmailTemplateProcessUpsertWithWhereUniqueWithoutStatusInput | EmailTemplateProcessUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailTemplateProcessCreateManyStatusInputEnvelope
    set?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
    disconnect?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
    delete?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
    connect?: EmailTemplateProcessWhereUniqueInput | EmailTemplateProcessWhereUniqueInput[]
    update?: EmailTemplateProcessUpdateWithWhereUniqueWithoutStatusInput | EmailTemplateProcessUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailTemplateProcessUpdateManyWithWhereWithoutStatusInput | EmailTemplateProcessUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailTemplateProcessScalarWhereInput | EmailTemplateProcessScalarWhereInput[]
  }

  export type EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailTemplateTagCreateWithoutStatusInput, EmailTemplateTagUncheckedCreateWithoutStatusInput> | EmailTemplateTagCreateWithoutStatusInput[] | EmailTemplateTagUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateTagCreateOrConnectWithoutStatusInput | EmailTemplateTagCreateOrConnectWithoutStatusInput[]
    upsert?: EmailTemplateTagUpsertWithWhereUniqueWithoutStatusInput | EmailTemplateTagUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailTemplateTagCreateManyStatusInputEnvelope
    set?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
    disconnect?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
    delete?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
    connect?: EmailTemplateTagWhereUniqueInput | EmailTemplateTagWhereUniqueInput[]
    update?: EmailTemplateTagUpdateWithWhereUniqueWithoutStatusInput | EmailTemplateTagUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailTemplateTagUpdateManyWithWhereWithoutStatusInput | EmailTemplateTagUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailTemplateTagScalarWhereInput | EmailTemplateTagScalarWhereInput[]
  }

  export type EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailTemplateRecipientTagCreateWithoutStatusInput, EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput> | EmailTemplateRecipientTagCreateWithoutStatusInput[] | EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateRecipientTagCreateOrConnectWithoutStatusInput | EmailTemplateRecipientTagCreateOrConnectWithoutStatusInput[]
    upsert?: EmailTemplateRecipientTagUpsertWithWhereUniqueWithoutStatusInput | EmailTemplateRecipientTagUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailTemplateRecipientTagCreateManyStatusInputEnvelope
    set?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
    disconnect?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
    delete?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
    connect?: EmailTemplateRecipientTagWhereUniqueInput | EmailTemplateRecipientTagWhereUniqueInput[]
    update?: EmailTemplateRecipientTagUpdateWithWhereUniqueWithoutStatusInput | EmailTemplateRecipientTagUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailTemplateRecipientTagUpdateManyWithWhereWithoutStatusInput | EmailTemplateRecipientTagUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailTemplateRecipientTagScalarWhereInput | EmailTemplateRecipientTagScalarWhereInput[]
  }

  export type EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailTemplateCreateWithoutStatusInput, EmailTemplateUncheckedCreateWithoutStatusInput> | EmailTemplateCreateWithoutStatusInput[] | EmailTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailTemplateCreateOrConnectWithoutStatusInput | EmailTemplateCreateOrConnectWithoutStatusInput[]
    upsert?: EmailTemplateUpsertWithWhereUniqueWithoutStatusInput | EmailTemplateUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailTemplateCreateManyStatusInputEnvelope
    set?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    disconnect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    delete?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    connect?: EmailTemplateWhereUniqueInput | EmailTemplateWhereUniqueInput[]
    update?: EmailTemplateUpdateWithWhereUniqueWithoutStatusInput | EmailTemplateUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailTemplateUpdateManyWithWhereWithoutStatusInput | EmailTemplateUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
  }

  export type EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<EmailProcessJobCreateWithoutStatusInput, EmailProcessJobUncheckedCreateWithoutStatusInput> | EmailProcessJobCreateWithoutStatusInput[] | EmailProcessJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: EmailProcessJobCreateOrConnectWithoutStatusInput | EmailProcessJobCreateOrConnectWithoutStatusInput[]
    upsert?: EmailProcessJobUpsertWithWhereUniqueWithoutStatusInput | EmailProcessJobUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: EmailProcessJobCreateManyStatusInputEnvelope
    set?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    disconnect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    delete?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    connect?: EmailProcessJobWhereUniqueInput | EmailProcessJobWhereUniqueInput[]
    update?: EmailProcessJobUpdateWithWhereUniqueWithoutStatusInput | EmailProcessJobUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: EmailProcessJobUpdateManyWithWhereWithoutStatusInput | EmailProcessJobUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: EmailProcessJobScalarWhereInput | EmailProcessJobScalarWhereInput[]
  }

  export type NotificationJobUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<NotificationJobCreateWithoutStatusInput, NotificationJobUncheckedCreateWithoutStatusInput> | NotificationJobCreateWithoutStatusInput[] | NotificationJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: NotificationJobCreateOrConnectWithoutStatusInput | NotificationJobCreateOrConnectWithoutStatusInput[]
    upsert?: NotificationJobUpsertWithWhereUniqueWithoutStatusInput | NotificationJobUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: NotificationJobCreateManyStatusInputEnvelope
    set?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    disconnect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    delete?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    connect?: NotificationJobWhereUniqueInput | NotificationJobWhereUniqueInput[]
    update?: NotificationJobUpdateWithWhereUniqueWithoutStatusInput | NotificationJobUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: NotificationJobUpdateManyWithWhereWithoutStatusInput | NotificationJobUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: NotificationJobScalarWhereInput | NotificationJobScalarWhereInput[]
  }

  export type ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportTemplateCreateWithoutStatusInput, ImportTemplateUncheckedCreateWithoutStatusInput> | ImportTemplateCreateWithoutStatusInput[] | ImportTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateCreateOrConnectWithoutStatusInput | ImportTemplateCreateOrConnectWithoutStatusInput[]
    upsert?: ImportTemplateUpsertWithWhereUniqueWithoutStatusInput | ImportTemplateUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportTemplateCreateManyStatusInputEnvelope
    set?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    disconnect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    delete?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    connect?: ImportTemplateWhereUniqueInput | ImportTemplateWhereUniqueInput[]
    update?: ImportTemplateUpdateWithWhereUniqueWithoutStatusInput | ImportTemplateUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportTemplateUpdateManyWithWhereWithoutStatusInput | ImportTemplateUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
  }

  export type ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportTemplateLineItemCreateWithoutStatusInput, ImportTemplateLineItemUncheckedCreateWithoutStatusInput> | ImportTemplateLineItemCreateWithoutStatusInput[] | ImportTemplateLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateLineItemCreateOrConnectWithoutStatusInput | ImportTemplateLineItemCreateOrConnectWithoutStatusInput[]
    upsert?: ImportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput | ImportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportTemplateLineItemCreateManyStatusInputEnvelope
    set?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    disconnect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    delete?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    connect?: ImportTemplateLineItemWhereUniqueInput | ImportTemplateLineItemWhereUniqueInput[]
    update?: ImportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput | ImportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportTemplateLineItemUpdateManyWithWhereWithoutStatusInput | ImportTemplateLineItemUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportTemplateLineItemScalarWhereInput | ImportTemplateLineItemScalarWhereInput[]
  }

  export type ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportTemplateQueriesCreateWithoutStatusInput, ImportTemplateQueriesUncheckedCreateWithoutStatusInput> | ImportTemplateQueriesCreateWithoutStatusInput[] | ImportTemplateQueriesUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportTemplateQueriesCreateOrConnectWithoutStatusInput | ImportTemplateQueriesCreateOrConnectWithoutStatusInput[]
    upsert?: ImportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput | ImportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportTemplateQueriesCreateManyStatusInputEnvelope
    set?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    disconnect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    delete?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    connect?: ImportTemplateQueriesWhereUniqueInput | ImportTemplateQueriesWhereUniqueInput[]
    update?: ImportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput | ImportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportTemplateQueriesUpdateManyWithWhereWithoutStatusInput | ImportTemplateQueriesUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportTemplateQueriesScalarWhereInput | ImportTemplateQueriesScalarWhereInput[]
  }

  export type ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ExportTemplateCreateWithoutStatusInput, ExportTemplateUncheckedCreateWithoutStatusInput> | ExportTemplateCreateWithoutStatusInput[] | ExportTemplateUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateCreateOrConnectWithoutStatusInput | ExportTemplateCreateOrConnectWithoutStatusInput[]
    upsert?: ExportTemplateUpsertWithWhereUniqueWithoutStatusInput | ExportTemplateUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ExportTemplateCreateManyStatusInputEnvelope
    set?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    disconnect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    delete?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    connect?: ExportTemplateWhereUniqueInput | ExportTemplateWhereUniqueInput[]
    update?: ExportTemplateUpdateWithWhereUniqueWithoutStatusInput | ExportTemplateUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ExportTemplateUpdateManyWithWhereWithoutStatusInput | ExportTemplateUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
  }

  export type ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ExportTemplateLineItemCreateWithoutStatusInput, ExportTemplateLineItemUncheckedCreateWithoutStatusInput> | ExportTemplateLineItemCreateWithoutStatusInput[] | ExportTemplateLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateLineItemCreateOrConnectWithoutStatusInput | ExportTemplateLineItemCreateOrConnectWithoutStatusInput[]
    upsert?: ExportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput | ExportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ExportTemplateLineItemCreateManyStatusInputEnvelope
    set?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    disconnect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    delete?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    connect?: ExportTemplateLineItemWhereUniqueInput | ExportTemplateLineItemWhereUniqueInput[]
    update?: ExportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput | ExportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ExportTemplateLineItemUpdateManyWithWhereWithoutStatusInput | ExportTemplateLineItemUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ExportTemplateLineItemScalarWhereInput | ExportTemplateLineItemScalarWhereInput[]
  }

  export type ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ExportTemplateQueriesCreateWithoutStatusInput, ExportTemplateQueriesUncheckedCreateWithoutStatusInput> | ExportTemplateQueriesCreateWithoutStatusInput[] | ExportTemplateQueriesUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ExportTemplateQueriesCreateOrConnectWithoutStatusInput | ExportTemplateQueriesCreateOrConnectWithoutStatusInput[]
    upsert?: ExportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput | ExportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ExportTemplateQueriesCreateManyStatusInputEnvelope
    set?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    disconnect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    delete?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    connect?: ExportTemplateQueriesWhereUniqueInput | ExportTemplateQueriesWhereUniqueInput[]
    update?: ExportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput | ExportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ExportTemplateQueriesUpdateManyWithWhereWithoutStatusInput | ExportTemplateQueriesUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ExportTemplateQueriesScalarWhereInput | ExportTemplateQueriesScalarWhereInput[]
  }

  export type DesignationUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<DesignationCreateWithoutStatusInput, DesignationUncheckedCreateWithoutStatusInput> | DesignationCreateWithoutStatusInput[] | DesignationUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DesignationCreateOrConnectWithoutStatusInput | DesignationCreateOrConnectWithoutStatusInput[]
    upsert?: DesignationUpsertWithWhereUniqueWithoutStatusInput | DesignationUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: DesignationCreateManyStatusInputEnvelope
    set?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    disconnect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    delete?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    connect?: DesignationWhereUniqueInput | DesignationWhereUniqueInput[]
    update?: DesignationUpdateWithWhereUniqueWithoutStatusInput | DesignationUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: DesignationUpdateManyWithWhereWithoutStatusInput | DesignationUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
  }

  export type DepartmentUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<DepartmentCreateWithoutStatusInput, DepartmentUncheckedCreateWithoutStatusInput> | DepartmentCreateWithoutStatusInput[] | DepartmentUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DepartmentCreateOrConnectWithoutStatusInput | DepartmentCreateOrConnectWithoutStatusInput[]
    upsert?: DepartmentUpsertWithWhereUniqueWithoutStatusInput | DepartmentUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: DepartmentCreateManyStatusInputEnvelope
    set?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    disconnect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    delete?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    connect?: DepartmentWhereUniqueInput | DepartmentWhereUniqueInput[]
    update?: DepartmentUpdateWithWhereUniqueWithoutStatusInput | DepartmentUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: DepartmentUpdateManyWithWhereWithoutStatusInput | DepartmentUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
  }

  export type AuditLogUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<AuditLogCreateWithoutStatusInput, AuditLogUncheckedCreateWithoutStatusInput> | AuditLogCreateWithoutStatusInput[] | AuditLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: AuditLogCreateOrConnectWithoutStatusInput | AuditLogCreateOrConnectWithoutStatusInput[]
    upsert?: AuditLogUpsertWithWhereUniqueWithoutStatusInput | AuditLogUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: AuditLogCreateManyStatusInputEnvelope
    set?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    disconnect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    delete?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    connect?: AuditLogWhereUniqueInput | AuditLogWhereUniqueInput[]
    update?: AuditLogUpdateWithWhereUniqueWithoutStatusInput | AuditLogUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: AuditLogUpdateManyWithWhereWithoutStatusInput | AuditLogUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: AuditLogScalarWhereInput | AuditLogScalarWhereInput[]
  }

  export type FinancialYearUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<FinancialYearCreateWithoutStatusInput, FinancialYearUncheckedCreateWithoutStatusInput> | FinancialYearCreateWithoutStatusInput[] | FinancialYearUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FinancialYearCreateOrConnectWithoutStatusInput | FinancialYearCreateOrConnectWithoutStatusInput[]
    upsert?: FinancialYearUpsertWithWhereUniqueWithoutStatusInput | FinancialYearUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: FinancialYearCreateManyStatusInputEnvelope
    set?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    disconnect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    delete?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    connect?: FinancialYearWhereUniqueInput | FinancialYearWhereUniqueInput[]
    update?: FinancialYearUpdateWithWhereUniqueWithoutStatusInput | FinancialYearUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: FinancialYearUpdateManyWithWhereWithoutStatusInput | FinancialYearUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<DocumentSequenceCreateWithoutStatusInput, DocumentSequenceUncheckedCreateWithoutStatusInput> | DocumentSequenceCreateWithoutStatusInput[] | DocumentSequenceUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DocumentSequenceCreateOrConnectWithoutStatusInput | DocumentSequenceCreateOrConnectWithoutStatusInput[]
    upsert?: DocumentSequenceUpsertWithWhereUniqueWithoutStatusInput | DocumentSequenceUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: DocumentSequenceCreateManyStatusInputEnvelope
    set?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    disconnect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    delete?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    connect?: DocumentSequenceWhereUniqueInput | DocumentSequenceWhereUniqueInput[]
    update?: DocumentSequenceUpdateWithWhereUniqueWithoutStatusInput | DocumentSequenceUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: DocumentSequenceUpdateManyWithWhereWithoutStatusInput | DocumentSequenceUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
  }

  export type FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<FileUploadLogCreateWithoutStatusInput, FileUploadLogUncheckedCreateWithoutStatusInput> | FileUploadLogCreateWithoutStatusInput[] | FileUploadLogUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: FileUploadLogCreateOrConnectWithoutStatusInput | FileUploadLogCreateOrConnectWithoutStatusInput[]
    upsert?: FileUploadLogUpsertWithWhereUniqueWithoutStatusInput | FileUploadLogUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: FileUploadLogCreateManyStatusInputEnvelope
    set?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
    disconnect?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
    delete?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
    connect?: FileUploadLogWhereUniqueInput | FileUploadLogWhereUniqueInput[]
    update?: FileUploadLogUpdateWithWhereUniqueWithoutStatusInput | FileUploadLogUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: FileUploadLogUpdateManyWithWhereWithoutStatusInput | FileUploadLogUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: FileUploadLogScalarWhereInput | FileUploadLogScalarWhereInput[]
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<DeviceRegistrationCreateWithoutStatusInput, DeviceRegistrationUncheckedCreateWithoutStatusInput> | DeviceRegistrationCreateWithoutStatusInput[] | DeviceRegistrationUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: DeviceRegistrationCreateOrConnectWithoutStatusInput | DeviceRegistrationCreateOrConnectWithoutStatusInput[]
    upsert?: DeviceRegistrationUpsertWithWhereUniqueWithoutStatusInput | DeviceRegistrationUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: DeviceRegistrationCreateManyStatusInputEnvelope
    set?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    disconnect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    delete?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    connect?: DeviceRegistrationWhereUniqueInput | DeviceRegistrationWhereUniqueInput[]
    update?: DeviceRegistrationUpdateWithWhereUniqueWithoutStatusInput | DeviceRegistrationUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: DeviceRegistrationUpdateManyWithWhereWithoutStatusInput | DeviceRegistrationUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
  }

  export type ImportJobUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportJobCreateWithoutStatusInput, ImportJobUncheckedCreateWithoutStatusInput> | ImportJobCreateWithoutStatusInput[] | ImportJobUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportJobCreateOrConnectWithoutStatusInput | ImportJobCreateOrConnectWithoutStatusInput[]
    upsert?: ImportJobUpsertWithWhereUniqueWithoutStatusInput | ImportJobUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportJobCreateManyStatusInputEnvelope
    set?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    disconnect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    delete?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    connect?: ImportJobWhereUniqueInput | ImportJobWhereUniqueInput[]
    update?: ImportJobUpdateWithWhereUniqueWithoutStatusInput | ImportJobUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportJobUpdateManyWithWhereWithoutStatusInput | ImportJobUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
  }

  export type ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput = {
    create?: XOR<ImportJobLineItemCreateWithoutStatusInput, ImportJobLineItemUncheckedCreateWithoutStatusInput> | ImportJobLineItemCreateWithoutStatusInput[] | ImportJobLineItemUncheckedCreateWithoutStatusInput[]
    connectOrCreate?: ImportJobLineItemCreateOrConnectWithoutStatusInput | ImportJobLineItemCreateOrConnectWithoutStatusInput[]
    upsert?: ImportJobLineItemUpsertWithWhereUniqueWithoutStatusInput | ImportJobLineItemUpsertWithWhereUniqueWithoutStatusInput[]
    createMany?: ImportJobLineItemCreateManyStatusInputEnvelope
    set?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    disconnect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    delete?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    connect?: ImportJobLineItemWhereUniqueInput | ImportJobLineItemWhereUniqueInput[]
    update?: ImportJobLineItemUpdateWithWhereUniqueWithoutStatusInput | ImportJobLineItemUpdateWithWhereUniqueWithoutStatusInput[]
    updateMany?: ImportJobLineItemUpdateManyWithWhereWithoutStatusInput | ImportJobLineItemUpdateManyWithWhereWithoutStatusInput[]
    deleteMany?: ImportJobLineItemScalarWhereInput | ImportJobLineItemScalarWhereInput[]
  }

  export type UserCreateNestedOneWithoutCreated_category_typesInput = {
    create?: XOR<UserCreateWithoutCreated_category_typesInput, UserUncheckedCreateWithoutCreated_category_typesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_category_typesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_category_typesInput = {
    create?: XOR<UserCreateWithoutUpdated_category_typesInput, UserUncheckedCreateWithoutUpdated_category_typesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_category_typesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_category_typesInput = {
    create?: XOR<UserCreateWithoutDeleted_category_typesInput, UserUncheckedCreateWithoutDeleted_category_typesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_category_typesInput
    connect?: UserWhereUniqueInput
  }

  export type CategoriesCreateNestedManyWithoutCategory_typeInput = {
    create?: XOR<CategoriesCreateWithoutCategory_typeInput, CategoriesUncheckedCreateWithoutCategory_typeInput> | CategoriesCreateWithoutCategory_typeInput[] | CategoriesUncheckedCreateWithoutCategory_typeInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutCategory_typeInput | CategoriesCreateOrConnectWithoutCategory_typeInput[]
    createMany?: CategoriesCreateManyCategory_typeInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type CategoriesUncheckedCreateNestedManyWithoutCategory_typeInput = {
    create?: XOR<CategoriesCreateWithoutCategory_typeInput, CategoriesUncheckedCreateWithoutCategory_typeInput> | CategoriesCreateWithoutCategory_typeInput[] | CategoriesUncheckedCreateWithoutCategory_typeInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutCategory_typeInput | CategoriesCreateOrConnectWithoutCategory_typeInput[]
    createMany?: CategoriesCreateManyCategory_typeInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type UserUpdateOneWithoutCreated_category_typesNestedInput = {
    create?: XOR<UserCreateWithoutCreated_category_typesInput, UserUncheckedCreateWithoutCreated_category_typesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_category_typesInput
    upsert?: UserUpsertWithoutCreated_category_typesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_category_typesInput, UserUpdateWithoutCreated_category_typesInput>, UserUncheckedUpdateWithoutCreated_category_typesInput>
  }

  export type UserUpdateOneWithoutUpdated_category_typesNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_category_typesInput, UserUncheckedCreateWithoutUpdated_category_typesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_category_typesInput
    upsert?: UserUpsertWithoutUpdated_category_typesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_category_typesInput, UserUpdateWithoutUpdated_category_typesInput>, UserUncheckedUpdateWithoutUpdated_category_typesInput>
  }

  export type UserUpdateOneWithoutDeleted_category_typesNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_category_typesInput, UserUncheckedCreateWithoutDeleted_category_typesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_category_typesInput
    upsert?: UserUpsertWithoutDeleted_category_typesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_category_typesInput, UserUpdateWithoutDeleted_category_typesInput>, UserUncheckedUpdateWithoutDeleted_category_typesInput>
  }

  export type CategoriesUpdateManyWithoutCategory_typeNestedInput = {
    create?: XOR<CategoriesCreateWithoutCategory_typeInput, CategoriesUncheckedCreateWithoutCategory_typeInput> | CategoriesCreateWithoutCategory_typeInput[] | CategoriesUncheckedCreateWithoutCategory_typeInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutCategory_typeInput | CategoriesCreateOrConnectWithoutCategory_typeInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutCategory_typeInput | CategoriesUpsertWithWhereUniqueWithoutCategory_typeInput[]
    createMany?: CategoriesCreateManyCategory_typeInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutCategory_typeInput | CategoriesUpdateWithWhereUniqueWithoutCategory_typeInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutCategory_typeInput | CategoriesUpdateManyWithWhereWithoutCategory_typeInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type CategoriesUncheckedUpdateManyWithoutCategory_typeNestedInput = {
    create?: XOR<CategoriesCreateWithoutCategory_typeInput, CategoriesUncheckedCreateWithoutCategory_typeInput> | CategoriesCreateWithoutCategory_typeInput[] | CategoriesUncheckedCreateWithoutCategory_typeInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutCategory_typeInput | CategoriesCreateOrConnectWithoutCategory_typeInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutCategory_typeInput | CategoriesUpsertWithWhereUniqueWithoutCategory_typeInput[]
    createMany?: CategoriesCreateManyCategory_typeInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutCategory_typeInput | CategoriesUpdateWithWhereUniqueWithoutCategory_typeInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutCategory_typeInput | CategoriesUpdateManyWithWhereWithoutCategory_typeInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type CategoriesCreateNestedOneWithoutSubcategoriesInput = {
    create?: XOR<CategoriesCreateWithoutSubcategoriesInput, CategoriesUncheckedCreateWithoutSubcategoriesInput>
    connectOrCreate?: CategoriesCreateOrConnectWithoutSubcategoriesInput
    connect?: CategoriesWhereUniqueInput
  }

  export type CategoriesCreateNestedManyWithoutParentInput = {
    create?: XOR<CategoriesCreateWithoutParentInput, CategoriesUncheckedCreateWithoutParentInput> | CategoriesCreateWithoutParentInput[] | CategoriesUncheckedCreateWithoutParentInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutParentInput | CategoriesCreateOrConnectWithoutParentInput[]
    createMany?: CategoriesCreateManyParentInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type CategoryTypesCreateNestedOneWithoutCategoriesInput = {
    create?: XOR<CategoryTypesCreateWithoutCategoriesInput, CategoryTypesUncheckedCreateWithoutCategoriesInput>
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutCategoriesInput
    connect?: CategoryTypesWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_categoriesInput = {
    create?: XOR<UserCreateWithoutCreated_categoriesInput, UserUncheckedCreateWithoutCreated_categoriesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_categoriesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_categoriesInput = {
    create?: XOR<UserCreateWithoutUpdated_categoriesInput, UserUncheckedCreateWithoutUpdated_categoriesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_categoriesInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_categoriesInput = {
    create?: XOR<UserCreateWithoutDeleted_categoriesInput, UserUncheckedCreateWithoutDeleted_categoriesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_categoriesInput
    connect?: UserWhereUniqueInput
  }

  export type ConfigurationsCreateNestedManyWithoutCategoryInput = {
    create?: XOR<ConfigurationsCreateWithoutCategoryInput, ConfigurationsUncheckedCreateWithoutCategoryInput> | ConfigurationsCreateWithoutCategoryInput[] | ConfigurationsUncheckedCreateWithoutCategoryInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutCategoryInput | ConfigurationsCreateOrConnectWithoutCategoryInput[]
    createMany?: ConfigurationsCreateManyCategoryInputEnvelope
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
  }

  export type CategoriesUncheckedCreateNestedManyWithoutParentInput = {
    create?: XOR<CategoriesCreateWithoutParentInput, CategoriesUncheckedCreateWithoutParentInput> | CategoriesCreateWithoutParentInput[] | CategoriesUncheckedCreateWithoutParentInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutParentInput | CategoriesCreateOrConnectWithoutParentInput[]
    createMany?: CategoriesCreateManyParentInputEnvelope
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
  }

  export type ConfigurationsUncheckedCreateNestedManyWithoutCategoryInput = {
    create?: XOR<ConfigurationsCreateWithoutCategoryInput, ConfigurationsUncheckedCreateWithoutCategoryInput> | ConfigurationsCreateWithoutCategoryInput[] | ConfigurationsUncheckedCreateWithoutCategoryInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutCategoryInput | ConfigurationsCreateOrConnectWithoutCategoryInput[]
    createMany?: ConfigurationsCreateManyCategoryInputEnvelope
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
  }

  export type CategoriesUpdateOneWithoutSubcategoriesNestedInput = {
    create?: XOR<CategoriesCreateWithoutSubcategoriesInput, CategoriesUncheckedCreateWithoutSubcategoriesInput>
    connectOrCreate?: CategoriesCreateOrConnectWithoutSubcategoriesInput
    upsert?: CategoriesUpsertWithoutSubcategoriesInput
    disconnect?: CategoriesWhereInput | boolean
    delete?: CategoriesWhereInput | boolean
    connect?: CategoriesWhereUniqueInput
    update?: XOR<XOR<CategoriesUpdateToOneWithWhereWithoutSubcategoriesInput, CategoriesUpdateWithoutSubcategoriesInput>, CategoriesUncheckedUpdateWithoutSubcategoriesInput>
  }

  export type CategoriesUpdateManyWithoutParentNestedInput = {
    create?: XOR<CategoriesCreateWithoutParentInput, CategoriesUncheckedCreateWithoutParentInput> | CategoriesCreateWithoutParentInput[] | CategoriesUncheckedCreateWithoutParentInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutParentInput | CategoriesCreateOrConnectWithoutParentInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutParentInput | CategoriesUpsertWithWhereUniqueWithoutParentInput[]
    createMany?: CategoriesCreateManyParentInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutParentInput | CategoriesUpdateWithWhereUniqueWithoutParentInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutParentInput | CategoriesUpdateManyWithWhereWithoutParentInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type CategoryTypesUpdateOneRequiredWithoutCategoriesNestedInput = {
    create?: XOR<CategoryTypesCreateWithoutCategoriesInput, CategoryTypesUncheckedCreateWithoutCategoriesInput>
    connectOrCreate?: CategoryTypesCreateOrConnectWithoutCategoriesInput
    upsert?: CategoryTypesUpsertWithoutCategoriesInput
    connect?: CategoryTypesWhereUniqueInput
    update?: XOR<XOR<CategoryTypesUpdateToOneWithWhereWithoutCategoriesInput, CategoryTypesUpdateWithoutCategoriesInput>, CategoryTypesUncheckedUpdateWithoutCategoriesInput>
  }

  export type UserUpdateOneWithoutCreated_categoriesNestedInput = {
    create?: XOR<UserCreateWithoutCreated_categoriesInput, UserUncheckedCreateWithoutCreated_categoriesInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_categoriesInput
    upsert?: UserUpsertWithoutCreated_categoriesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_categoriesInput, UserUpdateWithoutCreated_categoriesInput>, UserUncheckedUpdateWithoutCreated_categoriesInput>
  }

  export type UserUpdateOneWithoutUpdated_categoriesNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_categoriesInput, UserUncheckedCreateWithoutUpdated_categoriesInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_categoriesInput
    upsert?: UserUpsertWithoutUpdated_categoriesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_categoriesInput, UserUpdateWithoutUpdated_categoriesInput>, UserUncheckedUpdateWithoutUpdated_categoriesInput>
  }

  export type UserUpdateOneWithoutDeleted_categoriesNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_categoriesInput, UserUncheckedCreateWithoutDeleted_categoriesInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_categoriesInput
    upsert?: UserUpsertWithoutDeleted_categoriesInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_categoriesInput, UserUpdateWithoutDeleted_categoriesInput>, UserUncheckedUpdateWithoutDeleted_categoriesInput>
  }

  export type ConfigurationsUpdateManyWithoutCategoryNestedInput = {
    create?: XOR<ConfigurationsCreateWithoutCategoryInput, ConfigurationsUncheckedCreateWithoutCategoryInput> | ConfigurationsCreateWithoutCategoryInput[] | ConfigurationsUncheckedCreateWithoutCategoryInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutCategoryInput | ConfigurationsCreateOrConnectWithoutCategoryInput[]
    upsert?: ConfigurationsUpsertWithWhereUniqueWithoutCategoryInput | ConfigurationsUpsertWithWhereUniqueWithoutCategoryInput[]
    createMany?: ConfigurationsCreateManyCategoryInputEnvelope
    set?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    disconnect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    delete?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    update?: ConfigurationsUpdateWithWhereUniqueWithoutCategoryInput | ConfigurationsUpdateWithWhereUniqueWithoutCategoryInput[]
    updateMany?: ConfigurationsUpdateManyWithWhereWithoutCategoryInput | ConfigurationsUpdateManyWithWhereWithoutCategoryInput[]
    deleteMany?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
  }

  export type CategoriesUncheckedUpdateManyWithoutParentNestedInput = {
    create?: XOR<CategoriesCreateWithoutParentInput, CategoriesUncheckedCreateWithoutParentInput> | CategoriesCreateWithoutParentInput[] | CategoriesUncheckedCreateWithoutParentInput[]
    connectOrCreate?: CategoriesCreateOrConnectWithoutParentInput | CategoriesCreateOrConnectWithoutParentInput[]
    upsert?: CategoriesUpsertWithWhereUniqueWithoutParentInput | CategoriesUpsertWithWhereUniqueWithoutParentInput[]
    createMany?: CategoriesCreateManyParentInputEnvelope
    set?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    disconnect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    delete?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    connect?: CategoriesWhereUniqueInput | CategoriesWhereUniqueInput[]
    update?: CategoriesUpdateWithWhereUniqueWithoutParentInput | CategoriesUpdateWithWhereUniqueWithoutParentInput[]
    updateMany?: CategoriesUpdateManyWithWhereWithoutParentInput | CategoriesUpdateManyWithWhereWithoutParentInput[]
    deleteMany?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
  }

  export type ConfigurationsUncheckedUpdateManyWithoutCategoryNestedInput = {
    create?: XOR<ConfigurationsCreateWithoutCategoryInput, ConfigurationsUncheckedCreateWithoutCategoryInput> | ConfigurationsCreateWithoutCategoryInput[] | ConfigurationsUncheckedCreateWithoutCategoryInput[]
    connectOrCreate?: ConfigurationsCreateOrConnectWithoutCategoryInput | ConfigurationsCreateOrConnectWithoutCategoryInput[]
    upsert?: ConfigurationsUpsertWithWhereUniqueWithoutCategoryInput | ConfigurationsUpsertWithWhereUniqueWithoutCategoryInput[]
    createMany?: ConfigurationsCreateManyCategoryInputEnvelope
    set?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    disconnect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    delete?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    connect?: ConfigurationsWhereUniqueInput | ConfigurationsWhereUniqueInput[]
    update?: ConfigurationsUpdateWithWhereUniqueWithoutCategoryInput | ConfigurationsUpdateWithWhereUniqueWithoutCategoryInput[]
    updateMany?: ConfigurationsUpdateManyWithWhereWithoutCategoryInput | ConfigurationsUpdateManyWithWhereWithoutCategoryInput[]
    deleteMany?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
  }

  export type CategoriesCreateNestedOneWithoutConfigurationsInput = {
    create?: XOR<CategoriesCreateWithoutConfigurationsInput, CategoriesUncheckedCreateWithoutConfigurationsInput>
    connectOrCreate?: CategoriesCreateOrConnectWithoutConfigurationsInput
    connect?: CategoriesWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_configurationsInput = {
    create?: XOR<UserCreateWithoutCreated_configurationsInput, UserUncheckedCreateWithoutCreated_configurationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_configurationsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_configurationsInput = {
    create?: XOR<UserCreateWithoutUpdated_configurationsInput, UserUncheckedCreateWithoutUpdated_configurationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_configurationsInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_configurationsInput = {
    create?: XOR<UserCreateWithoutDeleted_configurationsInput, UserUncheckedCreateWithoutDeleted_configurationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_configurationsInput
    connect?: UserWhereUniqueInput
  }

  export type CategoriesUpdateOneRequiredWithoutConfigurationsNestedInput = {
    create?: XOR<CategoriesCreateWithoutConfigurationsInput, CategoriesUncheckedCreateWithoutConfigurationsInput>
    connectOrCreate?: CategoriesCreateOrConnectWithoutConfigurationsInput
    upsert?: CategoriesUpsertWithoutConfigurationsInput
    connect?: CategoriesWhereUniqueInput
    update?: XOR<XOR<CategoriesUpdateToOneWithWhereWithoutConfigurationsInput, CategoriesUpdateWithoutConfigurationsInput>, CategoriesUncheckedUpdateWithoutConfigurationsInput>
  }

  export type UserUpdateOneWithoutCreated_configurationsNestedInput = {
    create?: XOR<UserCreateWithoutCreated_configurationsInput, UserUncheckedCreateWithoutCreated_configurationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_configurationsInput
    upsert?: UserUpsertWithoutCreated_configurationsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_configurationsInput, UserUpdateWithoutCreated_configurationsInput>, UserUncheckedUpdateWithoutCreated_configurationsInput>
  }

  export type UserUpdateOneWithoutUpdated_configurationsNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_configurationsInput, UserUncheckedCreateWithoutUpdated_configurationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_configurationsInput
    upsert?: UserUpsertWithoutUpdated_configurationsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_configurationsInput, UserUpdateWithoutUpdated_configurationsInput>, UserUncheckedUpdateWithoutUpdated_configurationsInput>
  }

  export type UserUpdateOneWithoutDeleted_configurationsNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_configurationsInput, UserUncheckedCreateWithoutDeleted_configurationsInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_configurationsInput
    upsert?: UserUpsertWithoutDeleted_configurationsInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_configurationsInput, UserUpdateWithoutDeleted_configurationsInput>, UserUncheckedUpdateWithoutDeleted_configurationsInput>
  }

  export type StatusCreateNestedOneWithoutFile_upload_logsInput = {
    create?: XOR<StatusCreateWithoutFile_upload_logsInput, StatusUncheckedCreateWithoutFile_upload_logsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutFile_upload_logsInput
    connect?: StatusWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutFile_upload_logsNestedInput = {
    create?: XOR<StatusCreateWithoutFile_upload_logsInput, StatusUncheckedCreateWithoutFile_upload_logsInput>
    connectOrCreate?: StatusCreateOrConnectWithoutFile_upload_logsInput
    upsert?: StatusUpsertWithoutFile_upload_logsInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutFile_upload_logsInput, StatusUpdateWithoutFile_upload_logsInput>, StatusUncheckedUpdateWithoutFile_upload_logsInput>
  }

  export type StatusCreateNestedOneWithoutDevice_registrationInput = {
    create?: XOR<StatusCreateWithoutDevice_registrationInput, StatusUncheckedCreateWithoutDevice_registrationInput>
    connectOrCreate?: StatusCreateOrConnectWithoutDevice_registrationInput
    connect?: StatusWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutCreated_device_registrationInput = {
    create?: XOR<UserCreateWithoutCreated_device_registrationInput, UserUncheckedCreateWithoutCreated_device_registrationInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_device_registrationInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutUpdated_device_registrationInput = {
    create?: XOR<UserCreateWithoutUpdated_device_registrationInput, UserUncheckedCreateWithoutUpdated_device_registrationInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_device_registrationInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeleted_device_registrationInput = {
    create?: XOR<UserCreateWithoutDeleted_device_registrationInput, UserUncheckedCreateWithoutDeleted_device_registrationInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_device_registrationInput
    connect?: UserWhereUniqueInput
  }

  export type UserCreateNestedOneWithoutDeviceRegistrationInput = {
    create?: XOR<UserCreateWithoutDeviceRegistrationInput, UserUncheckedCreateWithoutDeviceRegistrationInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeviceRegistrationInput
    connect?: UserWhereUniqueInput
  }

  export type StatusUpdateOneRequiredWithoutDevice_registrationNestedInput = {
    create?: XOR<StatusCreateWithoutDevice_registrationInput, StatusUncheckedCreateWithoutDevice_registrationInput>
    connectOrCreate?: StatusCreateOrConnectWithoutDevice_registrationInput
    upsert?: StatusUpsertWithoutDevice_registrationInput
    connect?: StatusWhereUniqueInput
    update?: XOR<XOR<StatusUpdateToOneWithWhereWithoutDevice_registrationInput, StatusUpdateWithoutDevice_registrationInput>, StatusUncheckedUpdateWithoutDevice_registrationInput>
  }

  export type UserUpdateOneRequiredWithoutCreated_device_registrationNestedInput = {
    create?: XOR<UserCreateWithoutCreated_device_registrationInput, UserUncheckedCreateWithoutCreated_device_registrationInput>
    connectOrCreate?: UserCreateOrConnectWithoutCreated_device_registrationInput
    upsert?: UserUpsertWithoutCreated_device_registrationInput
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutCreated_device_registrationInput, UserUpdateWithoutCreated_device_registrationInput>, UserUncheckedUpdateWithoutCreated_device_registrationInput>
  }

  export type UserUpdateOneWithoutUpdated_device_registrationNestedInput = {
    create?: XOR<UserCreateWithoutUpdated_device_registrationInput, UserUncheckedCreateWithoutUpdated_device_registrationInput>
    connectOrCreate?: UserCreateOrConnectWithoutUpdated_device_registrationInput
    upsert?: UserUpsertWithoutUpdated_device_registrationInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutUpdated_device_registrationInput, UserUpdateWithoutUpdated_device_registrationInput>, UserUncheckedUpdateWithoutUpdated_device_registrationInput>
  }

  export type UserUpdateOneWithoutDeleted_device_registrationNestedInput = {
    create?: XOR<UserCreateWithoutDeleted_device_registrationInput, UserUncheckedCreateWithoutDeleted_device_registrationInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeleted_device_registrationInput
    upsert?: UserUpsertWithoutDeleted_device_registrationInput
    disconnect?: UserWhereInput | boolean
    delete?: UserWhereInput | boolean
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeleted_device_registrationInput, UserUpdateWithoutDeleted_device_registrationInput>, UserUncheckedUpdateWithoutDeleted_device_registrationInput>
  }

  export type UserUpdateOneRequiredWithoutDeviceRegistrationNestedInput = {
    create?: XOR<UserCreateWithoutDeviceRegistrationInput, UserUncheckedCreateWithoutDeviceRegistrationInput>
    connectOrCreate?: UserCreateOrConnectWithoutDeviceRegistrationInput
    upsert?: UserUpsertWithoutDeviceRegistrationInput
    connect?: UserWhereUniqueInput
    update?: XOR<XOR<UserUpdateToOneWithWhereWithoutDeviceRegistrationInput, UserUpdateWithoutDeviceRegistrationInput>, UserUncheckedUpdateWithoutDeviceRegistrationInput>
  }

  export type NestedIntFilter<$PrismaModel = never> = {
    equals?: number | IntFieldRefInput<$PrismaModel>
    in?: number[]
    notIn?: number[]
    lt?: number | IntFieldRefInput<$PrismaModel>
    lte?: number | IntFieldRefInput<$PrismaModel>
    gt?: number | IntFieldRefInput<$PrismaModel>
    gte?: number | IntFieldRefInput<$PrismaModel>
    not?: NestedIntFilter<$PrismaModel> | number
  }

  export type NestedStringFilter<$PrismaModel = never> = {
    equals?: string | StringFieldRefInput<$PrismaModel>
    in?: string[]
    notIn?: string[]
    lt?: string | StringFieldRefInput<$PrismaModel>
    lte?: string | StringFieldRefInput<$PrismaModel>
    gt?: string | StringFieldRefInput<$PrismaModel>
    gte?: string | StringFieldRefInput<$PrismaModel>
    contains?: string | StringFieldRefInput<$PrismaModel>
    startsWith?: string | StringFieldRefInput<$PrismaModel>
    endsWith?: string | StringFieldRefInput<$PrismaModel>
    not?: NestedStringFilter<$PrismaModel> | string
  }

  export type NestedBoolFilter<$PrismaModel = never> = {
    equals?: boolean | BooleanFieldRefInput<$PrismaModel>
    not?: NestedBoolFilter<$PrismaModel> | boolean
  }

  export type NestedStringNullableFilter<$PrismaModel = never> = {
    equals?: string | StringFieldRefInput<$PrismaModel> | null
    in?: string[] | null
    notIn?: string[] | null
    lt?: string | StringFieldRefInput<$PrismaModel>
    lte?: string | StringFieldRefInput<$PrismaModel>
    gt?: string | StringFieldRefInput<$PrismaModel>
    gte?: string | StringFieldRefInput<$PrismaModel>
    contains?: string | StringFieldRefInput<$PrismaModel>
    startsWith?: string | StringFieldRefInput<$PrismaModel>
    endsWith?: string | StringFieldRefInput<$PrismaModel>
    not?: NestedStringNullableFilter<$PrismaModel> | string | null
  }

  export type NestedIntNullableFilter<$PrismaModel = never> = {
    equals?: number | IntFieldRefInput<$PrismaModel> | null
    in?: number[] | null
    notIn?: number[] | null
    lt?: number | IntFieldRefInput<$PrismaModel>
    lte?: number | IntFieldRefInput<$PrismaModel>
    gt?: number | IntFieldRefInput<$PrismaModel>
    gte?: number | IntFieldRefInput<$PrismaModel>
    not?: NestedIntNullableFilter<$PrismaModel> | number | null
  }

  export type NestedDateTimeFilter<$PrismaModel = never> = {
    equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    in?: Date[] | string[]
    notIn?: Date[] | string[]
    lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  }

  export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
    equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
    in?: Date[] | string[] | null
    notIn?: Date[] | string[] | null
    lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  }

  export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
    equals?: number | IntFieldRefInput<$PrismaModel>
    in?: number[]
    notIn?: number[]
    lt?: number | IntFieldRefInput<$PrismaModel>
    lte?: number | IntFieldRefInput<$PrismaModel>
    gt?: number | IntFieldRefInput<$PrismaModel>
    gte?: number | IntFieldRefInput<$PrismaModel>
    not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
    _count?: NestedIntFilter<$PrismaModel>
    _avg?: NestedFloatFilter<$PrismaModel>
    _sum?: NestedIntFilter<$PrismaModel>
    _min?: NestedIntFilter<$PrismaModel>
    _max?: NestedIntFilter<$PrismaModel>
  }

  export type NestedFloatFilter<$PrismaModel = never> = {
    equals?: number | FloatFieldRefInput<$PrismaModel>
    in?: number[]
    notIn?: number[]
    lt?: number | FloatFieldRefInput<$PrismaModel>
    lte?: number | FloatFieldRefInput<$PrismaModel>
    gt?: number | FloatFieldRefInput<$PrismaModel>
    gte?: number | FloatFieldRefInput<$PrismaModel>
    not?: NestedFloatFilter<$PrismaModel> | number
  }

  export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
    equals?: string | StringFieldRefInput<$PrismaModel>
    in?: string[]
    notIn?: string[]
    lt?: string | StringFieldRefInput<$PrismaModel>
    lte?: string | StringFieldRefInput<$PrismaModel>
    gt?: string | StringFieldRefInput<$PrismaModel>
    gte?: string | StringFieldRefInput<$PrismaModel>
    contains?: string | StringFieldRefInput<$PrismaModel>
    startsWith?: string | StringFieldRefInput<$PrismaModel>
    endsWith?: string | StringFieldRefInput<$PrismaModel>
    not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
    _count?: NestedIntFilter<$PrismaModel>
    _min?: NestedStringFilter<$PrismaModel>
    _max?: NestedStringFilter<$PrismaModel>
  }

  export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
    equals?: boolean | BooleanFieldRefInput<$PrismaModel>
    not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
    _count?: NestedIntFilter<$PrismaModel>
    _min?: NestedBoolFilter<$PrismaModel>
    _max?: NestedBoolFilter<$PrismaModel>
  }

  export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
    equals?: string | StringFieldRefInput<$PrismaModel> | null
    in?: string[] | null
    notIn?: string[] | null
    lt?: string | StringFieldRefInput<$PrismaModel>
    lte?: string | StringFieldRefInput<$PrismaModel>
    gt?: string | StringFieldRefInput<$PrismaModel>
    gte?: string | StringFieldRefInput<$PrismaModel>
    contains?: string | StringFieldRefInput<$PrismaModel>
    startsWith?: string | StringFieldRefInput<$PrismaModel>
    endsWith?: string | StringFieldRefInput<$PrismaModel>
    not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
    _count?: NestedIntNullableFilter<$PrismaModel>
    _min?: NestedStringNullableFilter<$PrismaModel>
    _max?: NestedStringNullableFilter<$PrismaModel>
  }

  export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
    equals?: number | IntFieldRefInput<$PrismaModel> | null
    in?: number[] | null
    notIn?: number[] | null
    lt?: number | IntFieldRefInput<$PrismaModel>
    lte?: number | IntFieldRefInput<$PrismaModel>
    gt?: number | IntFieldRefInput<$PrismaModel>
    gte?: number | IntFieldRefInput<$PrismaModel>
    not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
    _count?: NestedIntNullableFilter<$PrismaModel>
    _avg?: NestedFloatNullableFilter<$PrismaModel>
    _sum?: NestedIntNullableFilter<$PrismaModel>
    _min?: NestedIntNullableFilter<$PrismaModel>
    _max?: NestedIntNullableFilter<$PrismaModel>
  }

  export type NestedFloatNullableFilter<$PrismaModel = never> = {
    equals?: number | FloatFieldRefInput<$PrismaModel> | null
    in?: number[] | null
    notIn?: number[] | null
    lt?: number | FloatFieldRefInput<$PrismaModel>
    lte?: number | FloatFieldRefInput<$PrismaModel>
    gt?: number | FloatFieldRefInput<$PrismaModel>
    gte?: number | FloatFieldRefInput<$PrismaModel>
    not?: NestedFloatNullableFilter<$PrismaModel> | number | null
  }

  export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
    equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    in?: Date[] | string[]
    notIn?: Date[] | string[]
    lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
    _count?: NestedIntFilter<$PrismaModel>
    _min?: NestedDateTimeFilter<$PrismaModel>
    _max?: NestedDateTimeFilter<$PrismaModel>
  }

  export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
    equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
    in?: Date[] | string[] | null
    notIn?: Date[] | string[] | null
    lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
    not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
    _count?: NestedIntNullableFilter<$PrismaModel>
    _min?: NestedDateTimeNullableFilter<$PrismaModel>
    _max?: NestedDateTimeNullableFilter<$PrismaModel>
  }

  export type NestedBigIntFilter<$PrismaModel = never> = {
    equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
    in?: bigint[] | number[]
    notIn?: bigint[] | number[]
    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[]
    notIn?: bigint[] | number[]
    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 NestedDecimalFilter<$PrismaModel = never> = {
    equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    in?: Decimal[] | DecimalJsLike[] | number[] | string[]
    notIn?: Decimal[] | DecimalJsLike[] | number[] | string[]
    lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    not?: NestedDecimalFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string
  }

  export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = {
    equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    in?: Decimal[] | DecimalJsLike[] | number[] | string[]
    notIn?: Decimal[] | DecimalJsLike[] | number[] | string[]
    lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    not?: NestedDecimalWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string
    _count?: NestedIntFilter<$PrismaModel>
    _avg?: NestedDecimalFilter<$PrismaModel>
    _sum?: NestedDecimalFilter<$PrismaModel>
    _min?: NestedDecimalFilter<$PrismaModel>
    _max?: NestedDecimalFilter<$PrismaModel>
  }

  export type NestedDecimalNullableFilter<$PrismaModel = never> = {
    equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
    in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
    notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
    lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    not?: NestedDecimalNullableFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
  }

  export type NestedDecimalNullableWithAggregatesFilter<$PrismaModel = never> = {
    equals?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel> | null
    in?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
    notIn?: Decimal[] | DecimalJsLike[] | number[] | string[] | null
    lt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    lte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gt?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    gte?: Decimal | DecimalJsLike | number | string | DecimalFieldRefInput<$PrismaModel>
    not?: NestedDecimalNullableWithAggregatesFilter<$PrismaModel> | Decimal | DecimalJsLike | number | string | null
    _count?: NestedIntNullableFilter<$PrismaModel>
    _avg?: NestedDecimalNullableFilter<$PrismaModel>
    _sum?: NestedDecimalNullableFilter<$PrismaModel>
    _min?: NestedDecimalNullableFilter<$PrismaModel>
    _max?: NestedDecimalNullableFilter<$PrismaModel>
  }

  export type StatusCreateWithoutUsersInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutUsersInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutUsersInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutUsersInput, StatusUncheckedCreateWithoutUsersInput>
  }

  export type UserDetailCreateWithoutUserInput = {
    code: string
    first_name: string
    last_name?: string | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    designation?: DesignationCreateNestedOneWithoutUsersInput
    department?: DepartmentCreateNestedOneWithoutUsersInput
    created?: UserCreateNestedOneWithoutCreated_user_detailsInput
    updated?: UserCreateNestedOneWithoutUpdated_user_detailsInput
    deleted?: UserCreateNestedOneWithoutDeleted_user_detailsInput
  }

  export type UserDetailUncheckedCreateWithoutUserInput = {
    id?: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailCreateOrConnectWithoutUserInput = {
    where: UserDetailWhereUniqueInput
    create: XOR<UserDetailCreateWithoutUserInput, UserDetailUncheckedCreateWithoutUserInput>
  }

  export type RequestLogCreateWithoutUserInput = {
    id?: bigint | number
    uuid?: string
    req_method?: string | null
    req_url?: string | null
    req_body?: string | null
    res_status?: boolean
    res_code?: number
    res_message?: string | null
    req_response?: string | null
    req_headers?: string | null
    req_ip?: string | null
    req_device?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutRequest_logsInput
  }

  export type RequestLogUncheckedCreateWithoutUserInput = {
    id?: bigint | number
    uuid?: string
    req_method?: string | null
    req_url?: string | null
    req_body?: string | null
    res_status?: boolean
    res_code?: number
    res_message?: string | null
    req_response?: string | null
    req_headers?: string | null
    req_ip?: string | null
    req_device?: string | null
    status_id?: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RequestLogCreateOrConnectWithoutUserInput = {
    where: RequestLogWhereUniqueInput
    create: XOR<RequestLogCreateWithoutUserInput, RequestLogUncheckedCreateWithoutUserInput>
  }

  export type RequestLogCreateManyUserInputEnvelope = {
    data: RequestLogCreateManyUserInput | RequestLogCreateManyUserInput[]
  }

  export type UserRolesCreateWithoutUserInput = {
    role: RoleCreateNestedOneWithoutUsersInput
  }

  export type UserRolesUncheckedCreateWithoutUserInput = {
    role_id: number
  }

  export type UserRolesCreateOrConnectWithoutUserInput = {
    where: UserRolesWhereUniqueInput
    create: XOR<UserRolesCreateWithoutUserInput, UserRolesUncheckedCreateWithoutUserInput>
  }

  export type UserRolesCreateManyUserInputEnvelope = {
    data: UserRolesCreateManyUserInput | UserRolesCreateManyUserInput[]
  }

  export type UserPermissionsCreateWithoutUserInput = {
    permission: PermissionsCreateNestedOneWithoutUsersInput
  }

  export type UserPermissionsUncheckedCreateWithoutUserInput = {
    permission_id: number
  }

  export type UserPermissionsCreateOrConnectWithoutUserInput = {
    where: UserPermissionsWhereUniqueInput
    create: XOR<UserPermissionsCreateWithoutUserInput, UserPermissionsUncheckedCreateWithoutUserInput>
  }

  export type UserPermissionsCreateManyUserInputEnvelope = {
    data: UserPermissionsCreateManyUserInput | UserPermissionsCreateManyUserInput[]
  }

  export type OtpCreateWithoutUserInput = {
    otp: string
    purpose: string
    created_at?: Date | string
  }

  export type OtpUncheckedCreateWithoutUserInput = {
    id?: number
    otp: string
    purpose: string
    created_at?: Date | string
  }

  export type OtpCreateOrConnectWithoutUserInput = {
    where: OtpWhereUniqueInput
    create: XOR<OtpCreateWithoutUserInput, OtpUncheckedCreateWithoutUserInput>
  }

  export type OtpCreateManyUserInputEnvelope = {
    data: OtpCreateManyUserInput | OtpCreateManyUserInput[]
  }

  export type UserCreateWithoutCreated_usersInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_usersInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_usersInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_usersInput, UserUncheckedCreateWithoutCreated_usersInput>
  }

  export type UserCreateWithoutUpdated_usersInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_usersInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_usersInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_usersInput, UserUncheckedCreateWithoutUpdated_usersInput>
  }

  export type UserCreateWithoutDeleted_usersInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_usersInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_usersInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_usersInput, UserUncheckedCreateWithoutDeleted_usersInput>
  }

  export type UserCreateWithoutCreatedInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreatedInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreatedInput, UserUncheckedCreateWithoutCreatedInput>
  }

  export type UserCreateManyCreatedInputEnvelope = {
    data: UserCreateManyCreatedInput | UserCreateManyCreatedInput[]
  }

  export type UserCreateWithoutUpdatedInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdatedInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdatedInput, UserUncheckedCreateWithoutUpdatedInput>
  }

  export type UserCreateManyUpdatedInputEnvelope = {
    data: UserCreateManyUpdatedInput | UserCreateManyUpdatedInput[]
  }

  export type UserCreateWithoutDeletedInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeletedInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeletedInput, UserUncheckedCreateWithoutDeletedInput>
  }

  export type UserCreateManyDeletedInputEnvelope = {
    data: UserCreateManyDeletedInput | UserCreateManyDeletedInput[]
  }

  export type UserDetailCreateWithoutCreatedInput = {
    code: string
    first_name: string
    last_name?: string | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    designation?: DesignationCreateNestedOneWithoutUsersInput
    department?: DepartmentCreateNestedOneWithoutUsersInput
    user: UserCreateNestedOneWithoutUser_detailInput
    updated?: UserCreateNestedOneWithoutUpdated_user_detailsInput
    deleted?: UserCreateNestedOneWithoutDeleted_user_detailsInput
  }

  export type UserDetailUncheckedCreateWithoutCreatedInput = {
    id?: number
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailCreateOrConnectWithoutCreatedInput = {
    where: UserDetailWhereUniqueInput
    create: XOR<UserDetailCreateWithoutCreatedInput, UserDetailUncheckedCreateWithoutCreatedInput>
  }

  export type UserDetailCreateManyCreatedInputEnvelope = {
    data: UserDetailCreateManyCreatedInput | UserDetailCreateManyCreatedInput[]
  }

  export type UserDetailCreateWithoutUpdatedInput = {
    code: string
    first_name: string
    last_name?: string | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    designation?: DesignationCreateNestedOneWithoutUsersInput
    department?: DepartmentCreateNestedOneWithoutUsersInput
    user: UserCreateNestedOneWithoutUser_detailInput
    created?: UserCreateNestedOneWithoutCreated_user_detailsInput
    deleted?: UserCreateNestedOneWithoutDeleted_user_detailsInput
  }

  export type UserDetailUncheckedCreateWithoutUpdatedInput = {
    id?: number
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailCreateOrConnectWithoutUpdatedInput = {
    where: UserDetailWhereUniqueInput
    create: XOR<UserDetailCreateWithoutUpdatedInput, UserDetailUncheckedCreateWithoutUpdatedInput>
  }

  export type UserDetailCreateManyUpdatedInputEnvelope = {
    data: UserDetailCreateManyUpdatedInput | UserDetailCreateManyUpdatedInput[]
  }

  export type UserDetailCreateWithoutDeletedInput = {
    code: string
    first_name: string
    last_name?: string | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    designation?: DesignationCreateNestedOneWithoutUsersInput
    department?: DepartmentCreateNestedOneWithoutUsersInput
    user: UserCreateNestedOneWithoutUser_detailInput
    created?: UserCreateNestedOneWithoutCreated_user_detailsInput
    updated?: UserCreateNestedOneWithoutUpdated_user_detailsInput
  }

  export type UserDetailUncheckedCreateWithoutDeletedInput = {
    id?: number
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailCreateOrConnectWithoutDeletedInput = {
    where: UserDetailWhereUniqueInput
    create: XOR<UserDetailCreateWithoutDeletedInput, UserDetailUncheckedCreateWithoutDeletedInput>
  }

  export type UserDetailCreateManyDeletedInputEnvelope = {
    data: UserDetailCreateManyDeletedInput | UserDetailCreateManyDeletedInput[]
  }

  export type RoleCreateWithoutCreatedInput = {
    uuid?: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutRolesInput
    permissions?: RolePermissionsCreateNestedManyWithoutRoleInput
    users?: UserRolesCreateNestedManyWithoutRoleInput
    updated?: UserCreateNestedOneWithoutUpdated_rolesInput
    deleted?: UserCreateNestedOneWithoutDeleted_rolesInput
  }

  export type RoleUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: RolePermissionsUncheckedCreateNestedManyWithoutRoleInput
    users?: UserRolesUncheckedCreateNestedManyWithoutRoleInput
  }

  export type RoleCreateOrConnectWithoutCreatedInput = {
    where: RoleWhereUniqueInput
    create: XOR<RoleCreateWithoutCreatedInput, RoleUncheckedCreateWithoutCreatedInput>
  }

  export type RoleCreateManyCreatedInputEnvelope = {
    data: RoleCreateManyCreatedInput | RoleCreateManyCreatedInput[]
  }

  export type RoleCreateWithoutUpdatedInput = {
    uuid?: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutRolesInput
    permissions?: RolePermissionsCreateNestedManyWithoutRoleInput
    users?: UserRolesCreateNestedManyWithoutRoleInput
    created?: UserCreateNestedOneWithoutCreated_rolesInput
    deleted?: UserCreateNestedOneWithoutDeleted_rolesInput
  }

  export type RoleUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: RolePermissionsUncheckedCreateNestedManyWithoutRoleInput
    users?: UserRolesUncheckedCreateNestedManyWithoutRoleInput
  }

  export type RoleCreateOrConnectWithoutUpdatedInput = {
    where: RoleWhereUniqueInput
    create: XOR<RoleCreateWithoutUpdatedInput, RoleUncheckedCreateWithoutUpdatedInput>
  }

  export type RoleCreateManyUpdatedInputEnvelope = {
    data: RoleCreateManyUpdatedInput | RoleCreateManyUpdatedInput[]
  }

  export type RoleCreateWithoutDeletedInput = {
    uuid?: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutRolesInput
    permissions?: RolePermissionsCreateNestedManyWithoutRoleInput
    users?: UserRolesCreateNestedManyWithoutRoleInput
    created?: UserCreateNestedOneWithoutCreated_rolesInput
    updated?: UserCreateNestedOneWithoutUpdated_rolesInput
  }

  export type RoleUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: RolePermissionsUncheckedCreateNestedManyWithoutRoleInput
    users?: UserRolesUncheckedCreateNestedManyWithoutRoleInput
  }

  export type RoleCreateOrConnectWithoutDeletedInput = {
    where: RoleWhereUniqueInput
    create: XOR<RoleCreateWithoutDeletedInput, RoleUncheckedCreateWithoutDeletedInput>
  }

  export type RoleCreateManyDeletedInputEnvelope = {
    data: RoleCreateManyDeletedInput | RoleCreateManyDeletedInput[]
  }

  export type LanguageCreateWithoutCreatedInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutLanguagesInput
    translations?: LanguageContentCreateNestedManyWithoutLanguageInput
    updated?: UserCreateNestedOneWithoutUpdated_languagesInput
    deleted?: UserCreateNestedOneWithoutDeleted_languagesInput
  }

  export type LanguageUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    translations?: LanguageContentUncheckedCreateNestedManyWithoutLanguageInput
  }

  export type LanguageCreateOrConnectWithoutCreatedInput = {
    where: LanguageWhereUniqueInput
    create: XOR<LanguageCreateWithoutCreatedInput, LanguageUncheckedCreateWithoutCreatedInput>
  }

  export type LanguageCreateManyCreatedInputEnvelope = {
    data: LanguageCreateManyCreatedInput | LanguageCreateManyCreatedInput[]
  }

  export type LanguageCreateWithoutUpdatedInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutLanguagesInput
    translations?: LanguageContentCreateNestedManyWithoutLanguageInput
    created?: UserCreateNestedOneWithoutCreated_languagesInput
    deleted?: UserCreateNestedOneWithoutDeleted_languagesInput
  }

  export type LanguageUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    translations?: LanguageContentUncheckedCreateNestedManyWithoutLanguageInput
  }

  export type LanguageCreateOrConnectWithoutUpdatedInput = {
    where: LanguageWhereUniqueInput
    create: XOR<LanguageCreateWithoutUpdatedInput, LanguageUncheckedCreateWithoutUpdatedInput>
  }

  export type LanguageCreateManyUpdatedInputEnvelope = {
    data: LanguageCreateManyUpdatedInput | LanguageCreateManyUpdatedInput[]
  }

  export type LanguageCreateWithoutDeletedInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutLanguagesInput
    translations?: LanguageContentCreateNestedManyWithoutLanguageInput
    created?: UserCreateNestedOneWithoutCreated_languagesInput
    updated?: UserCreateNestedOneWithoutUpdated_languagesInput
  }

  export type LanguageUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    translations?: LanguageContentUncheckedCreateNestedManyWithoutLanguageInput
  }

  export type LanguageCreateOrConnectWithoutDeletedInput = {
    where: LanguageWhereUniqueInput
    create: XOR<LanguageCreateWithoutDeletedInput, LanguageUncheckedCreateWithoutDeletedInput>
  }

  export type LanguageCreateManyDeletedInputEnvelope = {
    data: LanguageCreateManyDeletedInput | LanguageCreateManyDeletedInput[]
  }

  export type MenusCreateWithoutCreatedInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenusInput
    menuitems?: MenuItemsCreateNestedManyWithoutMenusInput
    updated?: UserCreateNestedOneWithoutUpdated_menusInput
    deleted?: UserCreateNestedOneWithoutDeleted_menusInput
  }

  export type MenusUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutMenusInput
  }

  export type MenusCreateOrConnectWithoutCreatedInput = {
    where: MenusWhereUniqueInput
    create: XOR<MenusCreateWithoutCreatedInput, MenusUncheckedCreateWithoutCreatedInput>
  }

  export type MenusCreateManyCreatedInputEnvelope = {
    data: MenusCreateManyCreatedInput | MenusCreateManyCreatedInput[]
  }

  export type MenusCreateWithoutUpdatedInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenusInput
    menuitems?: MenuItemsCreateNestedManyWithoutMenusInput
    created?: UserCreateNestedOneWithoutCreated_menusInput
    deleted?: UserCreateNestedOneWithoutDeleted_menusInput
  }

  export type MenusUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutMenusInput
  }

  export type MenusCreateOrConnectWithoutUpdatedInput = {
    where: MenusWhereUniqueInput
    create: XOR<MenusCreateWithoutUpdatedInput, MenusUncheckedCreateWithoutUpdatedInput>
  }

  export type MenusCreateManyUpdatedInputEnvelope = {
    data: MenusCreateManyUpdatedInput | MenusCreateManyUpdatedInput[]
  }

  export type MenusCreateWithoutDeletedInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenusInput
    menuitems?: MenuItemsCreateNestedManyWithoutMenusInput
    created?: UserCreateNestedOneWithoutCreated_menusInput
    updated?: UserCreateNestedOneWithoutUpdated_menusInput
  }

  export type MenusUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutMenusInput
  }

  export type MenusCreateOrConnectWithoutDeletedInput = {
    where: MenusWhereUniqueInput
    create: XOR<MenusCreateWithoutDeletedInput, MenusUncheckedCreateWithoutDeletedInput>
  }

  export type MenusCreateManyDeletedInputEnvelope = {
    data: MenusCreateManyDeletedInput | MenusCreateManyDeletedInput[]
  }

  export type MenuItemsCreateWithoutCreatedInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenuitemsInput
    menus?: MenusCreateNestedOneWithoutMenuitemsInput
    entity?: MasterEntityCreateNestedOneWithoutMenusInput
    permission?: PermissionsCreateNestedOneWithoutMenusInput
    parent?: MenuItemsCreateNestedOneWithoutChildrenInput
    children?: MenuItemsCreateNestedManyWithoutParentInput
    updated?: UserCreateNestedOneWithoutUpdated_menu_itemsInput
    deleted?: UserCreateNestedOneWithoutDeleted_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateWithoutCreatedInput = {
    id?: number
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    children?: MenuItemsUncheckedCreateNestedManyWithoutParentInput
  }

  export type MenuItemsCreateOrConnectWithoutCreatedInput = {
    where: MenuItemsWhereUniqueInput
    create: XOR<MenuItemsCreateWithoutCreatedInput, MenuItemsUncheckedCreateWithoutCreatedInput>
  }

  export type MenuItemsCreateManyCreatedInputEnvelope = {
    data: MenuItemsCreateManyCreatedInput | MenuItemsCreateManyCreatedInput[]
  }

  export type MenuItemsCreateWithoutUpdatedInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenuitemsInput
    menus?: MenusCreateNestedOneWithoutMenuitemsInput
    entity?: MasterEntityCreateNestedOneWithoutMenusInput
    permission?: PermissionsCreateNestedOneWithoutMenusInput
    parent?: MenuItemsCreateNestedOneWithoutChildrenInput
    children?: MenuItemsCreateNestedManyWithoutParentInput
    created?: UserCreateNestedOneWithoutCreated_menu_itemsInput
    deleted?: UserCreateNestedOneWithoutDeleted_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateWithoutUpdatedInput = {
    id?: number
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    children?: MenuItemsUncheckedCreateNestedManyWithoutParentInput
  }

  export type MenuItemsCreateOrConnectWithoutUpdatedInput = {
    where: MenuItemsWhereUniqueInput
    create: XOR<MenuItemsCreateWithoutUpdatedInput, MenuItemsUncheckedCreateWithoutUpdatedInput>
  }

  export type MenuItemsCreateManyUpdatedInputEnvelope = {
    data: MenuItemsCreateManyUpdatedInput | MenuItemsCreateManyUpdatedInput[]
  }

  export type MenuItemsCreateWithoutDeletedInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenuitemsInput
    menus?: MenusCreateNestedOneWithoutMenuitemsInput
    entity?: MasterEntityCreateNestedOneWithoutMenusInput
    permission?: PermissionsCreateNestedOneWithoutMenusInput
    parent?: MenuItemsCreateNestedOneWithoutChildrenInput
    children?: MenuItemsCreateNestedManyWithoutParentInput
    created?: UserCreateNestedOneWithoutCreated_menu_itemsInput
    updated?: UserCreateNestedOneWithoutUpdated_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateWithoutDeletedInput = {
    id?: number
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    children?: MenuItemsUncheckedCreateNestedManyWithoutParentInput
  }

  export type MenuItemsCreateOrConnectWithoutDeletedInput = {
    where: MenuItemsWhereUniqueInput
    create: XOR<MenuItemsCreateWithoutDeletedInput, MenuItemsUncheckedCreateWithoutDeletedInput>
  }

  export type MenuItemsCreateManyDeletedInputEnvelope = {
    data: MenuItemsCreateManyDeletedInput | MenuItemsCreateManyDeletedInput[]
  }

  export type EmailTemplateCreateWithoutCreatedInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutEmail_templatesInput
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_templatesInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_templateInput
    updated?: UserCreateNestedOneWithoutUpdated_email_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_email_templatesInput
  }

  export type EmailTemplateUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id?: number
    created_at?: Date | string
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    deleted_by?: number | null
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_templateInput
  }

  export type EmailTemplateCreateOrConnectWithoutCreatedInput = {
    where: EmailTemplateWhereUniqueInput
    create: XOR<EmailTemplateCreateWithoutCreatedInput, EmailTemplateUncheckedCreateWithoutCreatedInput>
  }

  export type EmailTemplateCreateManyCreatedInputEnvelope = {
    data: EmailTemplateCreateManyCreatedInput | EmailTemplateCreateManyCreatedInput[]
  }

  export type EmailTemplateCreateWithoutUpdatedInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutEmail_templatesInput
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_templatesInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_templateInput
    created?: UserCreateNestedOneWithoutCreated_email_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_email_templatesInput
  }

  export type EmailTemplateUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
    deleted_by?: number | null
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_templateInput
  }

  export type EmailTemplateCreateOrConnectWithoutUpdatedInput = {
    where: EmailTemplateWhereUniqueInput
    create: XOR<EmailTemplateCreateWithoutUpdatedInput, EmailTemplateUncheckedCreateWithoutUpdatedInput>
  }

  export type EmailTemplateCreateManyUpdatedInputEnvelope = {
    data: EmailTemplateCreateManyUpdatedInput | EmailTemplateCreateManyUpdatedInput[]
  }

  export type EmailTemplateCreateWithoutDeletedInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutEmail_templatesInput
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_templatesInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_templateInput
    created?: UserCreateNestedOneWithoutCreated_email_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_email_templatesInput
  }

  export type EmailTemplateUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_templateInput
  }

  export type EmailTemplateCreateOrConnectWithoutDeletedInput = {
    where: EmailTemplateWhereUniqueInput
    create: XOR<EmailTemplateCreateWithoutDeletedInput, EmailTemplateUncheckedCreateWithoutDeletedInput>
  }

  export type EmailTemplateCreateManyDeletedInputEnvelope = {
    data: EmailTemplateCreateManyDeletedInput | EmailTemplateCreateManyDeletedInput[]
  }

  export type EmailTemplateAssignmentCreateWithoutCreatedInput = {
    uuid?: string
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_template_assignmentsInput
    email_template: EmailTemplateCreateNestedOneWithoutEmail_template_assignmentsInput
  }

  export type EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    email_template_process_id: number
    template_id: number
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
  }

  export type EmailTemplateAssignmentCreateOrConnectWithoutCreatedInput = {
    where: EmailTemplateAssignmentWhereUniqueInput
    create: XOR<EmailTemplateAssignmentCreateWithoutCreatedInput, EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput>
  }

  export type EmailTemplateAssignmentCreateManyCreatedInputEnvelope = {
    data: EmailTemplateAssignmentCreateManyCreatedInput | EmailTemplateAssignmentCreateManyCreatedInput[]
  }

  export type EmailProcessJobCreateWithoutCreatedInput = {
    uuid?: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutEmail_process_jobsInput
  }

  export type EmailProcessJobUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data?: string | null
    status_id?: number
    created_at?: Date | string
  }

  export type EmailProcessJobCreateOrConnectWithoutCreatedInput = {
    where: EmailProcessJobWhereUniqueInput
    create: XOR<EmailProcessJobCreateWithoutCreatedInput, EmailProcessJobUncheckedCreateWithoutCreatedInput>
  }

  export type EmailProcessJobCreateManyCreatedInputEnvelope = {
    data: EmailProcessJobCreateManyCreatedInput | EmailProcessJobCreateManyCreatedInput[]
  }

  export type NotificationJobCreateWithoutCreatedInput = {
    uuid?: string
    process_slug: string
    notification_to?: string | null
    notification_subject?: string | null
    notification_content?: string | null
    notification_cc?: string | null
    notification_bcc?: string | null
    notification_type_id: string
    notification_status_id: string
    created_at?: Date | string
    sent_at?: Date | string | null
    read_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutNotification_jobInput
  }

  export type NotificationJobUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    process_slug: string
    notification_to?: string | null
    notification_subject?: string | null
    notification_content?: string | null
    notification_cc?: string | null
    notification_bcc?: string | null
    notification_type_id: string
    notification_status_id: string
    status_id?: number
    created_at?: Date | string
    sent_at?: Date | string | null
    read_at?: Date | string | null
  }

  export type NotificationJobCreateOrConnectWithoutCreatedInput = {
    where: NotificationJobWhereUniqueInput
    create: XOR<NotificationJobCreateWithoutCreatedInput, NotificationJobUncheckedCreateWithoutCreatedInput>
  }

  export type NotificationJobCreateManyCreatedInputEnvelope = {
    data: NotificationJobCreateManyCreatedInput | NotificationJobCreateManyCreatedInput[]
  }

  export type ImportTemplateCreateWithoutCreatedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_import_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_templatesInput
    line_items?: ImportTemplateLineItemCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateCreateOrConnectWithoutCreatedInput = {
    where: ImportTemplateWhereUniqueInput
    create: XOR<ImportTemplateCreateWithoutCreatedInput, ImportTemplateUncheckedCreateWithoutCreatedInput>
  }

  export type ImportTemplateCreateManyCreatedInputEnvelope = {
    data: ImportTemplateCreateManyCreatedInput | ImportTemplateCreateManyCreatedInput[]
  }

  export type ImportTemplateCreateWithoutUpdatedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_import_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_templatesInput
    line_items?: ImportTemplateLineItemCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateCreateOrConnectWithoutUpdatedInput = {
    where: ImportTemplateWhereUniqueInput
    create: XOR<ImportTemplateCreateWithoutUpdatedInput, ImportTemplateUncheckedCreateWithoutUpdatedInput>
  }

  export type ImportTemplateCreateManyUpdatedInputEnvelope = {
    data: ImportTemplateCreateManyUpdatedInput | ImportTemplateCreateManyUpdatedInput[]
  }

  export type ImportTemplateCreateWithoutDeletedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_import_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_import_templatesInput
    line_items?: ImportTemplateLineItemCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
    line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateCreateOrConnectWithoutDeletedInput = {
    where: ImportTemplateWhereUniqueInput
    create: XOR<ImportTemplateCreateWithoutDeletedInput, ImportTemplateUncheckedCreateWithoutDeletedInput>
  }

  export type ImportTemplateCreateManyDeletedInputEnvelope = {
    data: ImportTemplateCreateManyDeletedInput | ImportTemplateCreateManyDeletedInput[]
  }

  export type ExportTemplateCreateWithoutCreatedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutExport_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_export_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_export_templatesInput
    line_items?: ExportTemplateLineItemCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateCreateOrConnectWithoutCreatedInput = {
    where: ExportTemplateWhereUniqueInput
    create: XOR<ExportTemplateCreateWithoutCreatedInput, ExportTemplateUncheckedCreateWithoutCreatedInput>
  }

  export type ExportTemplateCreateManyCreatedInputEnvelope = {
    data: ExportTemplateCreateManyCreatedInput | ExportTemplateCreateManyCreatedInput[]
  }

  export type ExportTemplateCreateWithoutUpdatedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutExport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_export_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_export_templatesInput
    line_items?: ExportTemplateLineItemCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateCreateOrConnectWithoutUpdatedInput = {
    where: ExportTemplateWhereUniqueInput
    create: XOR<ExportTemplateCreateWithoutUpdatedInput, ExportTemplateUncheckedCreateWithoutUpdatedInput>
  }

  export type ExportTemplateCreateManyUpdatedInputEnvelope = {
    data: ExportTemplateCreateManyUpdatedInput | ExportTemplateCreateManyUpdatedInput[]
  }

  export type ExportTemplateCreateWithoutDeletedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutExport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_export_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_export_templatesInput
    line_items?: ExportTemplateLineItemCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
    line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateCreateOrConnectWithoutDeletedInput = {
    where: ExportTemplateWhereUniqueInput
    create: XOR<ExportTemplateCreateWithoutDeletedInput, ExportTemplateUncheckedCreateWithoutDeletedInput>
  }

  export type ExportTemplateCreateManyDeletedInputEnvelope = {
    data: ExportTemplateCreateManyDeletedInput | ExportTemplateCreateManyDeletedInput[]
  }

  export type DepartmentCreateWithoutCreatedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDepartmentsInput
    users?: UserDetailCreateNestedManyWithoutDepartmentInput
    department_head?: UserCreateNestedOneWithoutHead_departmentsInput
    updated?: UserCreateNestedOneWithoutUpdated_departmentsInput
    deleted?: UserCreateNestedOneWithoutDeleted_departmentsInput
  }

  export type DepartmentUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    department_head_id?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDepartmentInput
  }

  export type DepartmentCreateOrConnectWithoutCreatedInput = {
    where: DepartmentWhereUniqueInput
    create: XOR<DepartmentCreateWithoutCreatedInput, DepartmentUncheckedCreateWithoutCreatedInput>
  }

  export type DepartmentCreateManyCreatedInputEnvelope = {
    data: DepartmentCreateManyCreatedInput | DepartmentCreateManyCreatedInput[]
  }

  export type DepartmentCreateWithoutDepartment_headInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDepartmentsInput
    users?: UserDetailCreateNestedManyWithoutDepartmentInput
    created?: UserCreateNestedOneWithoutCreated_departmentsInput
    updated?: UserCreateNestedOneWithoutUpdated_departmentsInput
    deleted?: UserCreateNestedOneWithoutDeleted_departmentsInput
  }

  export type DepartmentUncheckedCreateWithoutDepartment_headInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDepartmentInput
  }

  export type DepartmentCreateOrConnectWithoutDepartment_headInput = {
    where: DepartmentWhereUniqueInput
    create: XOR<DepartmentCreateWithoutDepartment_headInput, DepartmentUncheckedCreateWithoutDepartment_headInput>
  }

  export type DepartmentCreateManyDepartment_headInputEnvelope = {
    data: DepartmentCreateManyDepartment_headInput | DepartmentCreateManyDepartment_headInput[]
  }

  export type DepartmentCreateWithoutUpdatedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDepartmentsInput
    users?: UserDetailCreateNestedManyWithoutDepartmentInput
    department_head?: UserCreateNestedOneWithoutHead_departmentsInput
    created?: UserCreateNestedOneWithoutCreated_departmentsInput
    deleted?: UserCreateNestedOneWithoutDeleted_departmentsInput
  }

  export type DepartmentUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    department_head_id?: number | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDepartmentInput
  }

  export type DepartmentCreateOrConnectWithoutUpdatedInput = {
    where: DepartmentWhereUniqueInput
    create: XOR<DepartmentCreateWithoutUpdatedInput, DepartmentUncheckedCreateWithoutUpdatedInput>
  }

  export type DepartmentCreateManyUpdatedInputEnvelope = {
    data: DepartmentCreateManyUpdatedInput | DepartmentCreateManyUpdatedInput[]
  }

  export type DepartmentCreateWithoutDeletedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDepartmentsInput
    users?: UserDetailCreateNestedManyWithoutDepartmentInput
    department_head?: UserCreateNestedOneWithoutHead_departmentsInput
    created?: UserCreateNestedOneWithoutCreated_departmentsInput
    updated?: UserCreateNestedOneWithoutUpdated_departmentsInput
  }

  export type DepartmentUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    department_head_id?: number | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDepartmentInput
  }

  export type DepartmentCreateOrConnectWithoutDeletedInput = {
    where: DepartmentWhereUniqueInput
    create: XOR<DepartmentCreateWithoutDeletedInput, DepartmentUncheckedCreateWithoutDeletedInput>
  }

  export type DepartmentCreateManyDeletedInputEnvelope = {
    data: DepartmentCreateManyDeletedInput | DepartmentCreateManyDeletedInput[]
  }

  export type DesignationCreateWithoutCreatedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDesignationsInput
    users?: UserDetailCreateNestedManyWithoutDesignationInput
    updated?: UserCreateNestedOneWithoutUpdated_designationsInput
    deleted?: UserCreateNestedOneWithoutDeleted_designationsInput
  }

  export type DesignationUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDesignationInput
  }

  export type DesignationCreateOrConnectWithoutCreatedInput = {
    where: DesignationWhereUniqueInput
    create: XOR<DesignationCreateWithoutCreatedInput, DesignationUncheckedCreateWithoutCreatedInput>
  }

  export type DesignationCreateManyCreatedInputEnvelope = {
    data: DesignationCreateManyCreatedInput | DesignationCreateManyCreatedInput[]
  }

  export type DesignationCreateWithoutUpdatedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDesignationsInput
    users?: UserDetailCreateNestedManyWithoutDesignationInput
    created?: UserCreateNestedOneWithoutCreated_designationsInput
    deleted?: UserCreateNestedOneWithoutDeleted_designationsInput
  }

  export type DesignationUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDesignationInput
  }

  export type DesignationCreateOrConnectWithoutUpdatedInput = {
    where: DesignationWhereUniqueInput
    create: XOR<DesignationCreateWithoutUpdatedInput, DesignationUncheckedCreateWithoutUpdatedInput>
  }

  export type DesignationCreateManyUpdatedInputEnvelope = {
    data: DesignationCreateManyUpdatedInput | DesignationCreateManyUpdatedInput[]
  }

  export type DesignationCreateWithoutDeletedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDesignationsInput
    users?: UserDetailCreateNestedManyWithoutDesignationInput
    created?: UserCreateNestedOneWithoutCreated_designationsInput
    updated?: UserCreateNestedOneWithoutUpdated_designationsInput
  }

  export type DesignationUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDesignationInput
  }

  export type DesignationCreateOrConnectWithoutDeletedInput = {
    where: DesignationWhereUniqueInput
    create: XOR<DesignationCreateWithoutDeletedInput, DesignationUncheckedCreateWithoutDeletedInput>
  }

  export type DesignationCreateManyDeletedInputEnvelope = {
    data: DesignationCreateManyDeletedInput | DesignationCreateManyDeletedInput[]
  }

  export type AuditLogCreateWithoutUserInput = {
    operation_type: string
    table_name: string
    field_name: string
    old_value?: string | null
    new_value?: string | null
    entity_id: number
    company_id?: number | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutAudit_logsInput
  }

  export type AuditLogUncheckedCreateWithoutUserInput = {
    id?: number
    operation_type: string
    table_name: string
    field_name: string
    old_value?: string | null
    new_value?: string | null
    entity_id: number
    status_id?: number
    company_id?: number | null
    created_at?: Date | string
  }

  export type AuditLogCreateOrConnectWithoutUserInput = {
    where: AuditLogWhereUniqueInput
    create: XOR<AuditLogCreateWithoutUserInput, AuditLogUncheckedCreateWithoutUserInput>
  }

  export type AuditLogCreateManyUserInputEnvelope = {
    data: AuditLogCreateManyUserInput | AuditLogCreateManyUserInput[]
  }

  export type CategoryTypesCreateWithoutCreated_category_typesInput = {
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    updated_category_types?: UserCreateNestedOneWithoutUpdated_category_typesInput
    deleted_category_types?: UserCreateNestedOneWithoutDeleted_category_typesInput
    categories?: CategoriesCreateNestedManyWithoutCategory_typeInput
  }

  export type CategoryTypesUncheckedCreateWithoutCreated_category_typesInput = {
    id?: number
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    categories?: CategoriesUncheckedCreateNestedManyWithoutCategory_typeInput
  }

  export type CategoryTypesCreateOrConnectWithoutCreated_category_typesInput = {
    where: CategoryTypesWhereUniqueInput
    create: XOR<CategoryTypesCreateWithoutCreated_category_typesInput, CategoryTypesUncheckedCreateWithoutCreated_category_typesInput>
  }

  export type CategoryTypesCreateManyCreated_category_typesInputEnvelope = {
    data: CategoryTypesCreateManyCreated_category_typesInput | CategoryTypesCreateManyCreated_category_typesInput[]
  }

  export type CategoryTypesCreateWithoutUpdated_category_typesInput = {
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    created_category_types?: UserCreateNestedOneWithoutCreated_category_typesInput
    deleted_category_types?: UserCreateNestedOneWithoutDeleted_category_typesInput
    categories?: CategoriesCreateNestedManyWithoutCategory_typeInput
  }

  export type CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput = {
    id?: number
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    categories?: CategoriesUncheckedCreateNestedManyWithoutCategory_typeInput
  }

  export type CategoryTypesCreateOrConnectWithoutUpdated_category_typesInput = {
    where: CategoryTypesWhereUniqueInput
    create: XOR<CategoryTypesCreateWithoutUpdated_category_typesInput, CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput>
  }

  export type CategoryTypesCreateManyUpdated_category_typesInputEnvelope = {
    data: CategoryTypesCreateManyUpdated_category_typesInput | CategoryTypesCreateManyUpdated_category_typesInput[]
  }

  export type CategoryTypesCreateWithoutDeleted_category_typesInput = {
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    created_category_types?: UserCreateNestedOneWithoutCreated_category_typesInput
    updated_category_types?: UserCreateNestedOneWithoutUpdated_category_typesInput
    categories?: CategoriesCreateNestedManyWithoutCategory_typeInput
  }

  export type CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput = {
    id?: number
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    categories?: CategoriesUncheckedCreateNestedManyWithoutCategory_typeInput
  }

  export type CategoryTypesCreateOrConnectWithoutDeleted_category_typesInput = {
    where: CategoryTypesWhereUniqueInput
    create: XOR<CategoryTypesCreateWithoutDeleted_category_typesInput, CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput>
  }

  export type CategoryTypesCreateManyDeleted_category_typesInputEnvelope = {
    data: CategoryTypesCreateManyDeleted_category_typesInput | CategoryTypesCreateManyDeleted_category_typesInput[]
  }

  export type CategoriesCreateWithoutCreated_categoriesInput = {
    uuid?: string
    category_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    parent?: CategoriesCreateNestedOneWithoutSubcategoriesInput
    subcategories?: CategoriesCreateNestedManyWithoutParentInput
    category_type: CategoryTypesCreateNestedOneWithoutCategoriesInput
    updated_categories?: UserCreateNestedOneWithoutUpdated_categoriesInput
    deleted_categories?: UserCreateNestedOneWithoutDeleted_categoriesInput
    configurations?: ConfigurationsCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesUncheckedCreateWithoutCreated_categoriesInput = {
    id?: number
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    subcategories?: CategoriesUncheckedCreateNestedManyWithoutParentInput
    configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesCreateOrConnectWithoutCreated_categoriesInput = {
    where: CategoriesWhereUniqueInput
    create: XOR<CategoriesCreateWithoutCreated_categoriesInput, CategoriesUncheckedCreateWithoutCreated_categoriesInput>
  }

  export type CategoriesCreateManyCreated_categoriesInputEnvelope = {
    data: CategoriesCreateManyCreated_categoriesInput | CategoriesCreateManyCreated_categoriesInput[]
  }

  export type CategoriesCreateWithoutUpdated_categoriesInput = {
    uuid?: string
    category_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    parent?: CategoriesCreateNestedOneWithoutSubcategoriesInput
    subcategories?: CategoriesCreateNestedManyWithoutParentInput
    category_type: CategoryTypesCreateNestedOneWithoutCategoriesInput
    created_categories?: UserCreateNestedOneWithoutCreated_categoriesInput
    deleted_categories?: UserCreateNestedOneWithoutDeleted_categoriesInput
    configurations?: ConfigurationsCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesUncheckedCreateWithoutUpdated_categoriesInput = {
    id?: number
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    subcategories?: CategoriesUncheckedCreateNestedManyWithoutParentInput
    configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesCreateOrConnectWithoutUpdated_categoriesInput = {
    where: CategoriesWhereUniqueInput
    create: XOR<CategoriesCreateWithoutUpdated_categoriesInput, CategoriesUncheckedCreateWithoutUpdated_categoriesInput>
  }

  export type CategoriesCreateManyUpdated_categoriesInputEnvelope = {
    data: CategoriesCreateManyUpdated_categoriesInput | CategoriesCreateManyUpdated_categoriesInput[]
  }

  export type CategoriesCreateWithoutDeleted_categoriesInput = {
    uuid?: string
    category_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    parent?: CategoriesCreateNestedOneWithoutSubcategoriesInput
    subcategories?: CategoriesCreateNestedManyWithoutParentInput
    category_type: CategoryTypesCreateNestedOneWithoutCategoriesInput
    created_categories?: UserCreateNestedOneWithoutCreated_categoriesInput
    updated_categories?: UserCreateNestedOneWithoutUpdated_categoriesInput
    configurations?: ConfigurationsCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesUncheckedCreateWithoutDeleted_categoriesInput = {
    id?: number
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    subcategories?: CategoriesUncheckedCreateNestedManyWithoutParentInput
    configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesCreateOrConnectWithoutDeleted_categoriesInput = {
    where: CategoriesWhereUniqueInput
    create: XOR<CategoriesCreateWithoutDeleted_categoriesInput, CategoriesUncheckedCreateWithoutDeleted_categoriesInput>
  }

  export type CategoriesCreateManyDeleted_categoriesInputEnvelope = {
    data: CategoriesCreateManyDeleted_categoriesInput | CategoriesCreateManyDeleted_categoriesInput[]
  }

  export type ConfigurationsCreateWithoutCreated_configurationsInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
    category: CategoriesCreateNestedOneWithoutConfigurationsInput
    updated_configurations?: UserCreateNestedOneWithoutUpdated_configurationsInput
    deleted_configurations?: UserCreateNestedOneWithoutDeleted_configurationsInput
  }

  export type ConfigurationsUncheckedCreateWithoutCreated_configurationsInput = {
    id?: number
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    category_id: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type ConfigurationsCreateOrConnectWithoutCreated_configurationsInput = {
    where: ConfigurationsWhereUniqueInput
    create: XOR<ConfigurationsCreateWithoutCreated_configurationsInput, ConfigurationsUncheckedCreateWithoutCreated_configurationsInput>
  }

  export type ConfigurationsCreateManyCreated_configurationsInputEnvelope = {
    data: ConfigurationsCreateManyCreated_configurationsInput | ConfigurationsCreateManyCreated_configurationsInput[]
  }

  export type ConfigurationsCreateWithoutUpdated_configurationsInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
    category: CategoriesCreateNestedOneWithoutConfigurationsInput
    created_configurations?: UserCreateNestedOneWithoutCreated_configurationsInput
    deleted_configurations?: UserCreateNestedOneWithoutDeleted_configurationsInput
  }

  export type ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput = {
    id?: number
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    category_id: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type ConfigurationsCreateOrConnectWithoutUpdated_configurationsInput = {
    where: ConfigurationsWhereUniqueInput
    create: XOR<ConfigurationsCreateWithoutUpdated_configurationsInput, ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput>
  }

  export type ConfigurationsCreateManyUpdated_configurationsInputEnvelope = {
    data: ConfigurationsCreateManyUpdated_configurationsInput | ConfigurationsCreateManyUpdated_configurationsInput[]
  }

  export type ConfigurationsCreateWithoutDeleted_configurationsInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
    category: CategoriesCreateNestedOneWithoutConfigurationsInput
    created_configurations?: UserCreateNestedOneWithoutCreated_configurationsInput
    updated_configurations?: UserCreateNestedOneWithoutUpdated_configurationsInput
  }

  export type ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput = {
    id?: number
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    category_id: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type ConfigurationsCreateOrConnectWithoutDeleted_configurationsInput = {
    where: ConfigurationsWhereUniqueInput
    create: XOR<ConfigurationsCreateWithoutDeleted_configurationsInput, ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput>
  }

  export type ConfigurationsCreateManyDeleted_configurationsInputEnvelope = {
    data: ConfigurationsCreateManyDeleted_configurationsInput | ConfigurationsCreateManyDeleted_configurationsInput[]
  }

  export type FinancialYearCreateWithoutCreatedInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutFinancial_yearsInput
    document_sequence?: DocumentSequenceCreateNestedManyWithoutFinanicial_yearInput
    updated?: UserCreateNestedOneWithoutUpdated_fin_yearsInput
    deleted?: UserCreateNestedOneWithoutDeleted_fin_yearsInput
  }

  export type FinancialYearUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    document_sequence?: DocumentSequenceUncheckedCreateNestedManyWithoutFinanicial_yearInput
  }

  export type FinancialYearCreateOrConnectWithoutCreatedInput = {
    where: FinancialYearWhereUniqueInput
    create: XOR<FinancialYearCreateWithoutCreatedInput, FinancialYearUncheckedCreateWithoutCreatedInput>
  }

  export type FinancialYearCreateManyCreatedInputEnvelope = {
    data: FinancialYearCreateManyCreatedInput | FinancialYearCreateManyCreatedInput[]
  }

  export type FinancialYearCreateWithoutUpdatedInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutFinancial_yearsInput
    document_sequence?: DocumentSequenceCreateNestedManyWithoutFinanicial_yearInput
    created?: UserCreateNestedOneWithoutCreated_fin_yearsInput
    deleted?: UserCreateNestedOneWithoutDeleted_fin_yearsInput
  }

  export type FinancialYearUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    document_sequence?: DocumentSequenceUncheckedCreateNestedManyWithoutFinanicial_yearInput
  }

  export type FinancialYearCreateOrConnectWithoutUpdatedInput = {
    where: FinancialYearWhereUniqueInput
    create: XOR<FinancialYearCreateWithoutUpdatedInput, FinancialYearUncheckedCreateWithoutUpdatedInput>
  }

  export type FinancialYearCreateManyUpdatedInputEnvelope = {
    data: FinancialYearCreateManyUpdatedInput | FinancialYearCreateManyUpdatedInput[]
  }

  export type FinancialYearCreateWithoutDeletedInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutFinancial_yearsInput
    document_sequence?: DocumentSequenceCreateNestedManyWithoutFinanicial_yearInput
    created?: UserCreateNestedOneWithoutCreated_fin_yearsInput
    updated?: UserCreateNestedOneWithoutUpdated_fin_yearsInput
  }

  export type FinancialYearUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    document_sequence?: DocumentSequenceUncheckedCreateNestedManyWithoutFinanicial_yearInput
  }

  export type FinancialYearCreateOrConnectWithoutDeletedInput = {
    where: FinancialYearWhereUniqueInput
    create: XOR<FinancialYearCreateWithoutDeletedInput, FinancialYearUncheckedCreateWithoutDeletedInput>
  }

  export type FinancialYearCreateManyDeletedInputEnvelope = {
    data: FinancialYearCreateManyDeletedInput | FinancialYearCreateManyDeletedInput[]
  }

  export type DocumentSequenceCreateWithoutCreatedInput = {
    uuid?: string
    module_name: string
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    code_format?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDocument_sequencesInput
    finanicial_year?: FinancialYearCreateNestedOneWithoutDocument_sequenceInput
    updated?: UserCreateNestedOneWithoutUpdated_doc_sequencesInput
    deleted?: UserCreateNestedOneWithoutDeleted_doc_sequencesInput
  }

  export type DocumentSequenceUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceCreateOrConnectWithoutCreatedInput = {
    where: DocumentSequenceWhereUniqueInput
    create: XOR<DocumentSequenceCreateWithoutCreatedInput, DocumentSequenceUncheckedCreateWithoutCreatedInput>
  }

  export type DocumentSequenceCreateManyCreatedInputEnvelope = {
    data: DocumentSequenceCreateManyCreatedInput | DocumentSequenceCreateManyCreatedInput[]
  }

  export type DocumentSequenceCreateWithoutUpdatedInput = {
    uuid?: string
    module_name: string
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    code_format?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDocument_sequencesInput
    finanicial_year?: FinancialYearCreateNestedOneWithoutDocument_sequenceInput
    created?: UserCreateNestedOneWithoutCreated_doc_sequencesInput
    deleted?: UserCreateNestedOneWithoutDeleted_doc_sequencesInput
  }

  export type DocumentSequenceUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceCreateOrConnectWithoutUpdatedInput = {
    where: DocumentSequenceWhereUniqueInput
    create: XOR<DocumentSequenceCreateWithoutUpdatedInput, DocumentSequenceUncheckedCreateWithoutUpdatedInput>
  }

  export type DocumentSequenceCreateManyUpdatedInputEnvelope = {
    data: DocumentSequenceCreateManyUpdatedInput | DocumentSequenceCreateManyUpdatedInput[]
  }

  export type DocumentSequenceCreateWithoutDeletedInput = {
    uuid?: string
    module_name: string
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    code_format?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDocument_sequencesInput
    finanicial_year?: FinancialYearCreateNestedOneWithoutDocument_sequenceInput
    created?: UserCreateNestedOneWithoutCreated_doc_sequencesInput
    updated?: UserCreateNestedOneWithoutUpdated_doc_sequencesInput
  }

  export type DocumentSequenceUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceCreateOrConnectWithoutDeletedInput = {
    where: DocumentSequenceWhereUniqueInput
    create: XOR<DocumentSequenceCreateWithoutDeletedInput, DocumentSequenceUncheckedCreateWithoutDeletedInput>
  }

  export type DocumentSequenceCreateManyDeletedInputEnvelope = {
    data: DocumentSequenceCreateManyDeletedInput | DocumentSequenceCreateManyDeletedInput[]
  }

  export type DeviceRegistrationCreateWithoutCreated_device_registrationInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDevice_registrationInput
    updated_device_registration?: UserCreateNestedOneWithoutUpdated_device_registrationInput
    deleted_device_registration?: UserCreateNestedOneWithoutDeleted_device_registrationInput
    user: UserCreateNestedOneWithoutDeviceRegistrationInput
  }

  export type DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput = {
    id?: number
    uuid?: string
    device_name: string
    device_unique_id: string
    user_id: number
    status_id?: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationCreateOrConnectWithoutCreated_device_registrationInput = {
    where: DeviceRegistrationWhereUniqueInput
    create: XOR<DeviceRegistrationCreateWithoutCreated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput>
  }

  export type DeviceRegistrationCreateManyCreated_device_registrationInputEnvelope = {
    data: DeviceRegistrationCreateManyCreated_device_registrationInput | DeviceRegistrationCreateManyCreated_device_registrationInput[]
  }

  export type DeviceRegistrationCreateWithoutUpdated_device_registrationInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDevice_registrationInput
    created_device_registration: UserCreateNestedOneWithoutCreated_device_registrationInput
    deleted_device_registration?: UserCreateNestedOneWithoutDeleted_device_registrationInput
    user: UserCreateNestedOneWithoutDeviceRegistrationInput
  }

  export type DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput = {
    id?: number
    uuid?: string
    device_name: string
    device_unique_id: string
    user_id: number
    status_id?: number
    created_by: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationCreateOrConnectWithoutUpdated_device_registrationInput = {
    where: DeviceRegistrationWhereUniqueInput
    create: XOR<DeviceRegistrationCreateWithoutUpdated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput>
  }

  export type DeviceRegistrationCreateManyUpdated_device_registrationInputEnvelope = {
    data: DeviceRegistrationCreateManyUpdated_device_registrationInput | DeviceRegistrationCreateManyUpdated_device_registrationInput[]
  }

  export type DeviceRegistrationCreateWithoutDeleted_device_registrationInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDevice_registrationInput
    created_device_registration: UserCreateNestedOneWithoutCreated_device_registrationInput
    updated_device_registration?: UserCreateNestedOneWithoutUpdated_device_registrationInput
    user: UserCreateNestedOneWithoutDeviceRegistrationInput
  }

  export type DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput = {
    id?: number
    uuid?: string
    device_name: string
    device_unique_id: string
    user_id: number
    status_id?: number
    created_by: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationCreateOrConnectWithoutDeleted_device_registrationInput = {
    where: DeviceRegistrationWhereUniqueInput
    create: XOR<DeviceRegistrationCreateWithoutDeleted_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput>
  }

  export type DeviceRegistrationCreateManyDeleted_device_registrationInputEnvelope = {
    data: DeviceRegistrationCreateManyDeleted_device_registrationInput | DeviceRegistrationCreateManyDeleted_device_registrationInput[]
  }

  export type DeviceRegistrationCreateWithoutUserInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDevice_registrationInput
    created_device_registration: UserCreateNestedOneWithoutCreated_device_registrationInput
    updated_device_registration?: UserCreateNestedOneWithoutUpdated_device_registrationInput
    deleted_device_registration?: UserCreateNestedOneWithoutDeleted_device_registrationInput
  }

  export type DeviceRegistrationUncheckedCreateWithoutUserInput = {
    id?: number
    uuid?: string
    device_name: string
    device_unique_id: string
    status_id?: number
    created_by: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationCreateOrConnectWithoutUserInput = {
    where: DeviceRegistrationWhereUniqueInput
    create: XOR<DeviceRegistrationCreateWithoutUserInput, DeviceRegistrationUncheckedCreateWithoutUserInput>
  }

  export type DeviceRegistrationCreateManyUserInputEnvelope = {
    data: DeviceRegistrationCreateManyUserInput | DeviceRegistrationCreateManyUserInput[]
  }

  export type ImportJobCreateWithoutCreatedInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_jobInput
    updated?: UserCreateNestedOneWithoutUpdated_import_jobInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_jobInput
    line_items?: ImportJobLineItemCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobUncheckedCreateWithoutCreatedInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    status_id?: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobCreateOrConnectWithoutCreatedInput = {
    where: ImportJobWhereUniqueInput
    create: XOR<ImportJobCreateWithoutCreatedInput, ImportJobUncheckedCreateWithoutCreatedInput>
  }

  export type ImportJobCreateManyCreatedInputEnvelope = {
    data: ImportJobCreateManyCreatedInput | ImportJobCreateManyCreatedInput[]
  }

  export type ImportJobCreateWithoutUpdatedInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_jobInput
    created?: UserCreateNestedOneWithoutCreated_import_jobInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_jobInput
    line_items?: ImportJobLineItemCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobUncheckedCreateWithoutUpdatedInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobCreateOrConnectWithoutUpdatedInput = {
    where: ImportJobWhereUniqueInput
    create: XOR<ImportJobCreateWithoutUpdatedInput, ImportJobUncheckedCreateWithoutUpdatedInput>
  }

  export type ImportJobCreateManyUpdatedInputEnvelope = {
    data: ImportJobCreateManyUpdatedInput | ImportJobCreateManyUpdatedInput[]
  }

  export type ImportJobCreateWithoutDeletedInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_jobInput
    created?: UserCreateNestedOneWithoutCreated_import_jobInput
    updated?: UserCreateNestedOneWithoutUpdated_import_jobInput
    line_items?: ImportJobLineItemCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobUncheckedCreateWithoutDeletedInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
    line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobCreateOrConnectWithoutDeletedInput = {
    where: ImportJobWhereUniqueInput
    create: XOR<ImportJobCreateWithoutDeletedInput, ImportJobUncheckedCreateWithoutDeletedInput>
  }

  export type ImportJobCreateManyDeletedInputEnvelope = {
    data: ImportJobCreateManyDeletedInput | ImportJobCreateManyDeletedInput[]
  }

  export type StatusUpsertWithoutUsersInput = {
    update: XOR<StatusUpdateWithoutUsersInput, StatusUncheckedUpdateWithoutUsersInput>
    create: XOR<StatusCreateWithoutUsersInput, StatusUncheckedCreateWithoutUsersInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutUsersInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutUsersInput, StatusUncheckedUpdateWithoutUsersInput>
  }

  export type StatusUpdateWithoutUsersInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutUsersInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserDetailUpsertWithoutUserInput = {
    update: XOR<UserDetailUpdateWithoutUserInput, UserDetailUncheckedUpdateWithoutUserInput>
    create: XOR<UserDetailCreateWithoutUserInput, UserDetailUncheckedCreateWithoutUserInput>
    where?: UserDetailWhereInput
  }

  export type UserDetailUpdateToOneWithWhereWithoutUserInput = {
    where?: UserDetailWhereInput
    data: XOR<UserDetailUpdateWithoutUserInput, UserDetailUncheckedUpdateWithoutUserInput>
  }

  export type UserDetailUpdateWithoutUserInput = {
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    designation?: DesignationUpdateOneWithoutUsersNestedInput
    department?: DepartmentUpdateOneWithoutUsersNestedInput
    created?: UserUpdateOneWithoutCreated_user_detailsNestedInput
    updated?: UserUpdateOneWithoutUpdated_user_detailsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_user_detailsNestedInput
  }

  export type UserDetailUncheckedUpdateWithoutUserInput = {
    id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RequestLogUpsertWithWhereUniqueWithoutUserInput = {
    where: RequestLogWhereUniqueInput
    update: XOR<RequestLogUpdateWithoutUserInput, RequestLogUncheckedUpdateWithoutUserInput>
    create: XOR<RequestLogCreateWithoutUserInput, RequestLogUncheckedCreateWithoutUserInput>
  }

  export type RequestLogUpdateWithWhereUniqueWithoutUserInput = {
    where: RequestLogWhereUniqueInput
    data: XOR<RequestLogUpdateWithoutUserInput, RequestLogUncheckedUpdateWithoutUserInput>
  }

  export type RequestLogUpdateManyWithWhereWithoutUserInput = {
    where: RequestLogScalarWhereInput
    data: XOR<RequestLogUpdateManyMutationInput, RequestLogUncheckedUpdateManyWithoutUserInput>
  }

  export type RequestLogScalarWhereInput = {
    AND?: RequestLogScalarWhereInput | RequestLogScalarWhereInput[]
    OR?: RequestLogScalarWhereInput[]
    NOT?: RequestLogScalarWhereInput | RequestLogScalarWhereInput[]
    id?: BigIntFilter<"RequestLog"> | bigint | number
    uuid?: StringFilter<"RequestLog"> | string
    user_id?: IntNullableFilter<"RequestLog"> | number | null
    req_method?: StringNullableFilter<"RequestLog"> | string | null
    req_url?: StringNullableFilter<"RequestLog"> | string | null
    req_body?: StringNullableFilter<"RequestLog"> | string | null
    res_status?: BoolFilter<"RequestLog"> | boolean
    res_code?: IntFilter<"RequestLog"> | number
    res_message?: StringNullableFilter<"RequestLog"> | string | null
    req_response?: StringNullableFilter<"RequestLog"> | string | null
    req_headers?: StringNullableFilter<"RequestLog"> | string | null
    req_ip?: StringNullableFilter<"RequestLog"> | string | null
    req_device?: StringNullableFilter<"RequestLog"> | string | null
    status_id?: IntFilter<"RequestLog"> | number
    company_id?: IntFilter<"RequestLog"> | number
    created_at?: DateTimeFilter<"RequestLog"> | Date | string
    updated_at?: DateTimeFilter<"RequestLog"> | Date | string
    deleted_at?: DateTimeNullableFilter<"RequestLog"> | Date | string | null
  }

  export type UserRolesUpsertWithWhereUniqueWithoutUserInput = {
    where: UserRolesWhereUniqueInput
    update: XOR<UserRolesUpdateWithoutUserInput, UserRolesUncheckedUpdateWithoutUserInput>
    create: XOR<UserRolesCreateWithoutUserInput, UserRolesUncheckedCreateWithoutUserInput>
  }

  export type UserRolesUpdateWithWhereUniqueWithoutUserInput = {
    where: UserRolesWhereUniqueInput
    data: XOR<UserRolesUpdateWithoutUserInput, UserRolesUncheckedUpdateWithoutUserInput>
  }

  export type UserRolesUpdateManyWithWhereWithoutUserInput = {
    where: UserRolesScalarWhereInput
    data: XOR<UserRolesUpdateManyMutationInput, UserRolesUncheckedUpdateManyWithoutUserInput>
  }

  export type UserRolesScalarWhereInput = {
    AND?: UserRolesScalarWhereInput | UserRolesScalarWhereInput[]
    OR?: UserRolesScalarWhereInput[]
    NOT?: UserRolesScalarWhereInput | UserRolesScalarWhereInput[]
    user_id?: IntFilter<"UserRoles"> | number
    role_id?: IntFilter<"UserRoles"> | number
    company_id?: IntFilter<"UserRoles"> | number
  }

  export type UserPermissionsUpsertWithWhereUniqueWithoutUserInput = {
    where: UserPermissionsWhereUniqueInput
    update: XOR<UserPermissionsUpdateWithoutUserInput, UserPermissionsUncheckedUpdateWithoutUserInput>
    create: XOR<UserPermissionsCreateWithoutUserInput, UserPermissionsUncheckedCreateWithoutUserInput>
  }

  export type UserPermissionsUpdateWithWhereUniqueWithoutUserInput = {
    where: UserPermissionsWhereUniqueInput
    data: XOR<UserPermissionsUpdateWithoutUserInput, UserPermissionsUncheckedUpdateWithoutUserInput>
  }

  export type UserPermissionsUpdateManyWithWhereWithoutUserInput = {
    where: UserPermissionsScalarWhereInput
    data: XOR<UserPermissionsUpdateManyMutationInput, UserPermissionsUncheckedUpdateManyWithoutUserInput>
  }

  export type UserPermissionsScalarWhereInput = {
    AND?: UserPermissionsScalarWhereInput | UserPermissionsScalarWhereInput[]
    OR?: UserPermissionsScalarWhereInput[]
    NOT?: UserPermissionsScalarWhereInput | UserPermissionsScalarWhereInput[]
    user_id?: IntFilter<"UserPermissions"> | number
    permission_id?: IntFilter<"UserPermissions"> | number
    company_id?: IntFilter<"UserPermissions"> | number
  }

  export type OtpUpsertWithWhereUniqueWithoutUserInput = {
    where: OtpWhereUniqueInput
    update: XOR<OtpUpdateWithoutUserInput, OtpUncheckedUpdateWithoutUserInput>
    create: XOR<OtpCreateWithoutUserInput, OtpUncheckedCreateWithoutUserInput>
  }

  export type OtpUpdateWithWhereUniqueWithoutUserInput = {
    where: OtpWhereUniqueInput
    data: XOR<OtpUpdateWithoutUserInput, OtpUncheckedUpdateWithoutUserInput>
  }

  export type OtpUpdateManyWithWhereWithoutUserInput = {
    where: OtpScalarWhereInput
    data: XOR<OtpUpdateManyMutationInput, OtpUncheckedUpdateManyWithoutUserInput>
  }

  export type OtpScalarWhereInput = {
    AND?: OtpScalarWhereInput | OtpScalarWhereInput[]
    OR?: OtpScalarWhereInput[]
    NOT?: OtpScalarWhereInput | OtpScalarWhereInput[]
    id?: IntFilter<"Otp"> | number
    user_id?: IntFilter<"Otp"> | number
    otp?: StringFilter<"Otp"> | string
    purpose?: StringFilter<"Otp"> | string
    company_id?: IntFilter<"Otp"> | number
    created_at?: DateTimeFilter<"Otp"> | Date | string
  }

  export type UserUpsertWithoutCreated_usersInput = {
    update: XOR<UserUpdateWithoutCreated_usersInput, UserUncheckedUpdateWithoutCreated_usersInput>
    create: XOR<UserCreateWithoutCreated_usersInput, UserUncheckedCreateWithoutCreated_usersInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_usersInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_usersInput, UserUncheckedUpdateWithoutCreated_usersInput>
  }

  export type UserUpdateWithoutCreated_usersInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_usersInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_usersInput = {
    update: XOR<UserUpdateWithoutUpdated_usersInput, UserUncheckedUpdateWithoutUpdated_usersInput>
    create: XOR<UserCreateWithoutUpdated_usersInput, UserUncheckedCreateWithoutUpdated_usersInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_usersInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_usersInput, UserUncheckedUpdateWithoutUpdated_usersInput>
  }

  export type UserUpdateWithoutUpdated_usersInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_usersInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_usersInput = {
    update: XOR<UserUpdateWithoutDeleted_usersInput, UserUncheckedUpdateWithoutDeleted_usersInput>
    create: XOR<UserCreateWithoutDeleted_usersInput, UserUncheckedCreateWithoutDeleted_usersInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_usersInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_usersInput, UserUncheckedUpdateWithoutDeleted_usersInput>
  }

  export type UserUpdateWithoutDeleted_usersInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_usersInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithWhereUniqueWithoutCreatedInput = {
    where: UserWhereUniqueInput
    update: XOR<UserUpdateWithoutCreatedInput, UserUncheckedUpdateWithoutCreatedInput>
    create: XOR<UserCreateWithoutCreatedInput, UserUncheckedCreateWithoutCreatedInput>
  }

  export type UserUpdateWithWhereUniqueWithoutCreatedInput = {
    where: UserWhereUniqueInput
    data: XOR<UserUpdateWithoutCreatedInput, UserUncheckedUpdateWithoutCreatedInput>
  }

  export type UserUpdateManyWithWhereWithoutCreatedInput = {
    where: UserScalarWhereInput
    data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyWithoutCreatedInput>
  }

  export type UserScalarWhereInput = {
    AND?: UserScalarWhereInput | UserScalarWhereInput[]
    OR?: UserScalarWhereInput[]
    NOT?: UserScalarWhereInput | UserScalarWhereInput[]
    id?: IntFilter<"User"> | number
    uuid?: StringFilter<"User"> | string
    username?: StringFilter<"User"> | string
    email?: StringFilter<"User"> | string
    email_verified?: BoolFilter<"User"> | boolean
    password?: StringNullableFilter<"User"> | string | null
    status_id?: IntFilter<"User"> | number
    role?: StringFilter<"User"> | string
    company_id?: IntFilter<"User"> | number
    created_by?: IntNullableFilter<"User"> | number | null
    updated_by?: IntNullableFilter<"User"> | number | null
    deleted_by?: IntNullableFilter<"User"> | number | null
    created_at?: DateTimeFilter<"User"> | Date | string
    updated_at?: DateTimeFilter<"User"> | Date | string
    deleted_at?: DateTimeNullableFilter<"User"> | Date | string | null
    last_login?: DateTimeNullableFilter<"User"> | Date | string | null
    last_login_device?: StringNullableFilter<"User"> | string | null
  }

  export type UserUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: UserWhereUniqueInput
    update: XOR<UserUpdateWithoutUpdatedInput, UserUncheckedUpdateWithoutUpdatedInput>
    create: XOR<UserCreateWithoutUpdatedInput, UserUncheckedCreateWithoutUpdatedInput>
  }

  export type UserUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: UserWhereUniqueInput
    data: XOR<UserUpdateWithoutUpdatedInput, UserUncheckedUpdateWithoutUpdatedInput>
  }

  export type UserUpdateManyWithWhereWithoutUpdatedInput = {
    where: UserScalarWhereInput
    data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type UserUpsertWithWhereUniqueWithoutDeletedInput = {
    where: UserWhereUniqueInput
    update: XOR<UserUpdateWithoutDeletedInput, UserUncheckedUpdateWithoutDeletedInput>
    create: XOR<UserCreateWithoutDeletedInput, UserUncheckedCreateWithoutDeletedInput>
  }

  export type UserUpdateWithWhereUniqueWithoutDeletedInput = {
    where: UserWhereUniqueInput
    data: XOR<UserUpdateWithoutDeletedInput, UserUncheckedUpdateWithoutDeletedInput>
  }

  export type UserUpdateManyWithWhereWithoutDeletedInput = {
    where: UserScalarWhereInput
    data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyWithoutDeletedInput>
  }

  export type UserDetailUpsertWithWhereUniqueWithoutCreatedInput = {
    where: UserDetailWhereUniqueInput
    update: XOR<UserDetailUpdateWithoutCreatedInput, UserDetailUncheckedUpdateWithoutCreatedInput>
    create: XOR<UserDetailCreateWithoutCreatedInput, UserDetailUncheckedCreateWithoutCreatedInput>
  }

  export type UserDetailUpdateWithWhereUniqueWithoutCreatedInput = {
    where: UserDetailWhereUniqueInput
    data: XOR<UserDetailUpdateWithoutCreatedInput, UserDetailUncheckedUpdateWithoutCreatedInput>
  }

  export type UserDetailUpdateManyWithWhereWithoutCreatedInput = {
    where: UserDetailScalarWhereInput
    data: XOR<UserDetailUpdateManyMutationInput, UserDetailUncheckedUpdateManyWithoutCreatedInput>
  }

  export type UserDetailScalarWhereInput = {
    AND?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
    OR?: UserDetailScalarWhereInput[]
    NOT?: UserDetailScalarWhereInput | UserDetailScalarWhereInput[]
    id?: IntFilter<"UserDetail"> | number
    user_id?: IntFilter<"UserDetail"> | number
    code?: StringFilter<"UserDetail"> | string
    first_name?: StringFilter<"UserDetail"> | string
    last_name?: StringNullableFilter<"UserDetail"> | string | null
    designation_id?: IntNullableFilter<"UserDetail"> | number | null
    department_id?: IntNullableFilter<"UserDetail"> | number | null
    profile_pic?: StringNullableFilter<"UserDetail"> | string | null
    dob?: DateTimeNullableFilter<"UserDetail"> | Date | string | null
    country_code?: StringNullableFilter<"UserDetail"> | string | null
    phone_number?: StringNullableFilter<"UserDetail"> | string | null
    gender?: StringFilter<"UserDetail"> | string
    user_time_zone?: StringNullableFilter<"UserDetail"> | string | null
    address?: StringNullableFilter<"UserDetail"> | string | null
    culture?: StringNullableFilter<"UserDetail"> | string | null
    company_id?: IntFilter<"UserDetail"> | number
    created_by?: IntNullableFilter<"UserDetail"> | number | null
    updated_by?: IntNullableFilter<"UserDetail"> | number | null
    deleted_by?: IntNullableFilter<"UserDetail"> | number | null
    created_at?: DateTimeFilter<"UserDetail"> | Date | string
    updated_at?: DateTimeFilter<"UserDetail"> | Date | string
    deleted_at?: DateTimeNullableFilter<"UserDetail"> | Date | string | null
  }

  export type UserDetailUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: UserDetailWhereUniqueInput
    update: XOR<UserDetailUpdateWithoutUpdatedInput, UserDetailUncheckedUpdateWithoutUpdatedInput>
    create: XOR<UserDetailCreateWithoutUpdatedInput, UserDetailUncheckedCreateWithoutUpdatedInput>
  }

  export type UserDetailUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: UserDetailWhereUniqueInput
    data: XOR<UserDetailUpdateWithoutUpdatedInput, UserDetailUncheckedUpdateWithoutUpdatedInput>
  }

  export type UserDetailUpdateManyWithWhereWithoutUpdatedInput = {
    where: UserDetailScalarWhereInput
    data: XOR<UserDetailUpdateManyMutationInput, UserDetailUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type UserDetailUpsertWithWhereUniqueWithoutDeletedInput = {
    where: UserDetailWhereUniqueInput
    update: XOR<UserDetailUpdateWithoutDeletedInput, UserDetailUncheckedUpdateWithoutDeletedInput>
    create: XOR<UserDetailCreateWithoutDeletedInput, UserDetailUncheckedCreateWithoutDeletedInput>
  }

  export type UserDetailUpdateWithWhereUniqueWithoutDeletedInput = {
    where: UserDetailWhereUniqueInput
    data: XOR<UserDetailUpdateWithoutDeletedInput, UserDetailUncheckedUpdateWithoutDeletedInput>
  }

  export type UserDetailUpdateManyWithWhereWithoutDeletedInput = {
    where: UserDetailScalarWhereInput
    data: XOR<UserDetailUpdateManyMutationInput, UserDetailUncheckedUpdateManyWithoutDeletedInput>
  }

  export type RoleUpsertWithWhereUniqueWithoutCreatedInput = {
    where: RoleWhereUniqueInput
    update: XOR<RoleUpdateWithoutCreatedInput, RoleUncheckedUpdateWithoutCreatedInput>
    create: XOR<RoleCreateWithoutCreatedInput, RoleUncheckedCreateWithoutCreatedInput>
  }

  export type RoleUpdateWithWhereUniqueWithoutCreatedInput = {
    where: RoleWhereUniqueInput
    data: XOR<RoleUpdateWithoutCreatedInput, RoleUncheckedUpdateWithoutCreatedInput>
  }

  export type RoleUpdateManyWithWhereWithoutCreatedInput = {
    where: RoleScalarWhereInput
    data: XOR<RoleUpdateManyMutationInput, RoleUncheckedUpdateManyWithoutCreatedInput>
  }

  export type RoleScalarWhereInput = {
    AND?: RoleScalarWhereInput | RoleScalarWhereInput[]
    OR?: RoleScalarWhereInput[]
    NOT?: RoleScalarWhereInput | RoleScalarWhereInput[]
    id?: IntFilter<"Role"> | number
    uuid?: StringFilter<"Role"> | string
    name?: StringFilter<"Role"> | string
    description?: StringNullableFilter<"Role"> | string | null
    status_id?: IntFilter<"Role"> | number
    company_id?: IntFilter<"Role"> | number
    created_by?: IntNullableFilter<"Role"> | number | null
    updated_by?: IntNullableFilter<"Role"> | number | null
    deleted_by?: IntNullableFilter<"Role"> | number | null
    created_at?: DateTimeFilter<"Role"> | Date | string
    updated_at?: DateTimeFilter<"Role"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Role"> | Date | string | null
  }

  export type RoleUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: RoleWhereUniqueInput
    update: XOR<RoleUpdateWithoutUpdatedInput, RoleUncheckedUpdateWithoutUpdatedInput>
    create: XOR<RoleCreateWithoutUpdatedInput, RoleUncheckedCreateWithoutUpdatedInput>
  }

  export type RoleUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: RoleWhereUniqueInput
    data: XOR<RoleUpdateWithoutUpdatedInput, RoleUncheckedUpdateWithoutUpdatedInput>
  }

  export type RoleUpdateManyWithWhereWithoutUpdatedInput = {
    where: RoleScalarWhereInput
    data: XOR<RoleUpdateManyMutationInput, RoleUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type RoleUpsertWithWhereUniqueWithoutDeletedInput = {
    where: RoleWhereUniqueInput
    update: XOR<RoleUpdateWithoutDeletedInput, RoleUncheckedUpdateWithoutDeletedInput>
    create: XOR<RoleCreateWithoutDeletedInput, RoleUncheckedCreateWithoutDeletedInput>
  }

  export type RoleUpdateWithWhereUniqueWithoutDeletedInput = {
    where: RoleWhereUniqueInput
    data: XOR<RoleUpdateWithoutDeletedInput, RoleUncheckedUpdateWithoutDeletedInput>
  }

  export type RoleUpdateManyWithWhereWithoutDeletedInput = {
    where: RoleScalarWhereInput
    data: XOR<RoleUpdateManyMutationInput, RoleUncheckedUpdateManyWithoutDeletedInput>
  }

  export type LanguageUpsertWithWhereUniqueWithoutCreatedInput = {
    where: LanguageWhereUniqueInput
    update: XOR<LanguageUpdateWithoutCreatedInput, LanguageUncheckedUpdateWithoutCreatedInput>
    create: XOR<LanguageCreateWithoutCreatedInput, LanguageUncheckedCreateWithoutCreatedInput>
  }

  export type LanguageUpdateWithWhereUniqueWithoutCreatedInput = {
    where: LanguageWhereUniqueInput
    data: XOR<LanguageUpdateWithoutCreatedInput, LanguageUncheckedUpdateWithoutCreatedInput>
  }

  export type LanguageUpdateManyWithWhereWithoutCreatedInput = {
    where: LanguageScalarWhereInput
    data: XOR<LanguageUpdateManyMutationInput, LanguageUncheckedUpdateManyWithoutCreatedInput>
  }

  export type LanguageScalarWhereInput = {
    AND?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
    OR?: LanguageScalarWhereInput[]
    NOT?: LanguageScalarWhereInput | LanguageScalarWhereInput[]
    id?: IntFilter<"Language"> | number
    uuid?: StringFilter<"Language"> | string
    name?: StringFilter<"Language"> | string
    name_in_english?: StringNullableFilter<"Language"> | string | null
    flag?: StringNullableFilter<"Language"> | string | null
    code?: StringNullableFilter<"Language"> | string | null
    rtl?: BoolFilter<"Language"> | boolean
    description?: StringFilter<"Language"> | string
    status_id?: IntFilter<"Language"> | number
    company_id?: IntFilter<"Language"> | number
    created_by?: IntNullableFilter<"Language"> | number | null
    updated_by?: IntNullableFilter<"Language"> | number | null
    deleted_by?: IntNullableFilter<"Language"> | number | null
    created_at?: DateTimeFilter<"Language"> | Date | string
    updated_at?: DateTimeFilter<"Language"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Language"> | Date | string | null
  }

  export type LanguageUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: LanguageWhereUniqueInput
    update: XOR<LanguageUpdateWithoutUpdatedInput, LanguageUncheckedUpdateWithoutUpdatedInput>
    create: XOR<LanguageCreateWithoutUpdatedInput, LanguageUncheckedCreateWithoutUpdatedInput>
  }

  export type LanguageUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: LanguageWhereUniqueInput
    data: XOR<LanguageUpdateWithoutUpdatedInput, LanguageUncheckedUpdateWithoutUpdatedInput>
  }

  export type LanguageUpdateManyWithWhereWithoutUpdatedInput = {
    where: LanguageScalarWhereInput
    data: XOR<LanguageUpdateManyMutationInput, LanguageUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type LanguageUpsertWithWhereUniqueWithoutDeletedInput = {
    where: LanguageWhereUniqueInput
    update: XOR<LanguageUpdateWithoutDeletedInput, LanguageUncheckedUpdateWithoutDeletedInput>
    create: XOR<LanguageCreateWithoutDeletedInput, LanguageUncheckedCreateWithoutDeletedInput>
  }

  export type LanguageUpdateWithWhereUniqueWithoutDeletedInput = {
    where: LanguageWhereUniqueInput
    data: XOR<LanguageUpdateWithoutDeletedInput, LanguageUncheckedUpdateWithoutDeletedInput>
  }

  export type LanguageUpdateManyWithWhereWithoutDeletedInput = {
    where: LanguageScalarWhereInput
    data: XOR<LanguageUpdateManyMutationInput, LanguageUncheckedUpdateManyWithoutDeletedInput>
  }

  export type MenusUpsertWithWhereUniqueWithoutCreatedInput = {
    where: MenusWhereUniqueInput
    update: XOR<MenusUpdateWithoutCreatedInput, MenusUncheckedUpdateWithoutCreatedInput>
    create: XOR<MenusCreateWithoutCreatedInput, MenusUncheckedCreateWithoutCreatedInput>
  }

  export type MenusUpdateWithWhereUniqueWithoutCreatedInput = {
    where: MenusWhereUniqueInput
    data: XOR<MenusUpdateWithoutCreatedInput, MenusUncheckedUpdateWithoutCreatedInput>
  }

  export type MenusUpdateManyWithWhereWithoutCreatedInput = {
    where: MenusScalarWhereInput
    data: XOR<MenusUpdateManyMutationInput, MenusUncheckedUpdateManyWithoutCreatedInput>
  }

  export type MenusScalarWhereInput = {
    AND?: MenusScalarWhereInput | MenusScalarWhereInput[]
    OR?: MenusScalarWhereInput[]
    NOT?: MenusScalarWhereInput | MenusScalarWhereInput[]
    id?: IntFilter<"Menus"> | number
    uuid?: StringFilter<"Menus"> | string
    name?: StringFilter<"Menus"> | string
    slug?: StringNullableFilter<"Menus"> | string | null
    description?: StringNullableFilter<"Menus"> | string | null
    menu_type?: IntFilter<"Menus"> | number
    status_id?: IntFilter<"Menus"> | number
    company_id?: IntFilter<"Menus"> | number
    created_by?: IntNullableFilter<"Menus"> | number | null
    updated_by?: IntNullableFilter<"Menus"> | number | null
    deleted_by?: IntNullableFilter<"Menus"> | number | null
    created_at?: DateTimeFilter<"Menus"> | Date | string
    updated_at?: DateTimeFilter<"Menus"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Menus"> | Date | string | null
  }

  export type MenusUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: MenusWhereUniqueInput
    update: XOR<MenusUpdateWithoutUpdatedInput, MenusUncheckedUpdateWithoutUpdatedInput>
    create: XOR<MenusCreateWithoutUpdatedInput, MenusUncheckedCreateWithoutUpdatedInput>
  }

  export type MenusUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: MenusWhereUniqueInput
    data: XOR<MenusUpdateWithoutUpdatedInput, MenusUncheckedUpdateWithoutUpdatedInput>
  }

  export type MenusUpdateManyWithWhereWithoutUpdatedInput = {
    where: MenusScalarWhereInput
    data: XOR<MenusUpdateManyMutationInput, MenusUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type MenusUpsertWithWhereUniqueWithoutDeletedInput = {
    where: MenusWhereUniqueInput
    update: XOR<MenusUpdateWithoutDeletedInput, MenusUncheckedUpdateWithoutDeletedInput>
    create: XOR<MenusCreateWithoutDeletedInput, MenusUncheckedCreateWithoutDeletedInput>
  }

  export type MenusUpdateWithWhereUniqueWithoutDeletedInput = {
    where: MenusWhereUniqueInput
    data: XOR<MenusUpdateWithoutDeletedInput, MenusUncheckedUpdateWithoutDeletedInput>
  }

  export type MenusUpdateManyWithWhereWithoutDeletedInput = {
    where: MenusScalarWhereInput
    data: XOR<MenusUpdateManyMutationInput, MenusUncheckedUpdateManyWithoutDeletedInput>
  }

  export type MenuItemsUpsertWithWhereUniqueWithoutCreatedInput = {
    where: MenuItemsWhereUniqueInput
    update: XOR<MenuItemsUpdateWithoutCreatedInput, MenuItemsUncheckedUpdateWithoutCreatedInput>
    create: XOR<MenuItemsCreateWithoutCreatedInput, MenuItemsUncheckedCreateWithoutCreatedInput>
  }

  export type MenuItemsUpdateWithWhereUniqueWithoutCreatedInput = {
    where: MenuItemsWhereUniqueInput
    data: XOR<MenuItemsUpdateWithoutCreatedInput, MenuItemsUncheckedUpdateWithoutCreatedInput>
  }

  export type MenuItemsUpdateManyWithWhereWithoutCreatedInput = {
    where: MenuItemsScalarWhereInput
    data: XOR<MenuItemsUpdateManyMutationInput, MenuItemsUncheckedUpdateManyWithoutCreatedInput>
  }

  export type MenuItemsScalarWhereInput = {
    AND?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
    OR?: MenuItemsScalarWhereInput[]
    NOT?: MenuItemsScalarWhereInput | MenuItemsScalarWhereInput[]
    id?: IntFilter<"MenuItems"> | number
    menu_id?: IntFilter<"MenuItems"> | number
    name?: StringFilter<"MenuItems"> | string
    target?: StringNullableFilter<"MenuItems"> | string | null
    parent_id?: IntNullableFilter<"MenuItems"> | number | null
    permission_id?: IntNullableFilter<"MenuItems"> | number | null
    entity_id?: IntNullableFilter<"MenuItems"> | number | null
    link_type?: IntNullableFilter<"MenuItems"> | number | null
    order_no?: DecimalFilter<"MenuItems"> | Decimal | DecimalJsLike | number | string
    menu_img?: StringNullableFilter<"MenuItems"> | string | null
    short_cut_keys?: StringNullableFilter<"MenuItems"> | string | null
    status_id?: IntFilter<"MenuItems"> | number
    company_id?: IntFilter<"MenuItems"> | number
    created_by?: IntNullableFilter<"MenuItems"> | number | null
    updated_by?: IntNullableFilter<"MenuItems"> | number | null
    deleted_by?: IntNullableFilter<"MenuItems"> | number | null
    created_at?: DateTimeFilter<"MenuItems"> | Date | string
    updated_at?: DateTimeFilter<"MenuItems"> | Date | string
    deleted_at?: DateTimeNullableFilter<"MenuItems"> | Date | string | null
  }

  export type MenuItemsUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: MenuItemsWhereUniqueInput
    update: XOR<MenuItemsUpdateWithoutUpdatedInput, MenuItemsUncheckedUpdateWithoutUpdatedInput>
    create: XOR<MenuItemsCreateWithoutUpdatedInput, MenuItemsUncheckedCreateWithoutUpdatedInput>
  }

  export type MenuItemsUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: MenuItemsWhereUniqueInput
    data: XOR<MenuItemsUpdateWithoutUpdatedInput, MenuItemsUncheckedUpdateWithoutUpdatedInput>
  }

  export type MenuItemsUpdateManyWithWhereWithoutUpdatedInput = {
    where: MenuItemsScalarWhereInput
    data: XOR<MenuItemsUpdateManyMutationInput, MenuItemsUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type MenuItemsUpsertWithWhereUniqueWithoutDeletedInput = {
    where: MenuItemsWhereUniqueInput
    update: XOR<MenuItemsUpdateWithoutDeletedInput, MenuItemsUncheckedUpdateWithoutDeletedInput>
    create: XOR<MenuItemsCreateWithoutDeletedInput, MenuItemsUncheckedCreateWithoutDeletedInput>
  }

  export type MenuItemsUpdateWithWhereUniqueWithoutDeletedInput = {
    where: MenuItemsWhereUniqueInput
    data: XOR<MenuItemsUpdateWithoutDeletedInput, MenuItemsUncheckedUpdateWithoutDeletedInput>
  }

  export type MenuItemsUpdateManyWithWhereWithoutDeletedInput = {
    where: MenuItemsScalarWhereInput
    data: XOR<MenuItemsUpdateManyMutationInput, MenuItemsUncheckedUpdateManyWithoutDeletedInput>
  }

  export type EmailTemplateUpsertWithWhereUniqueWithoutCreatedInput = {
    where: EmailTemplateWhereUniqueInput
    update: XOR<EmailTemplateUpdateWithoutCreatedInput, EmailTemplateUncheckedUpdateWithoutCreatedInput>
    create: XOR<EmailTemplateCreateWithoutCreatedInput, EmailTemplateUncheckedCreateWithoutCreatedInput>
  }

  export type EmailTemplateUpdateWithWhereUniqueWithoutCreatedInput = {
    where: EmailTemplateWhereUniqueInput
    data: XOR<EmailTemplateUpdateWithoutCreatedInput, EmailTemplateUncheckedUpdateWithoutCreatedInput>
  }

  export type EmailTemplateUpdateManyWithWhereWithoutCreatedInput = {
    where: EmailTemplateScalarWhereInput
    data: XOR<EmailTemplateUpdateManyMutationInput, EmailTemplateUncheckedUpdateManyWithoutCreatedInput>
  }

  export type EmailTemplateScalarWhereInput = {
    AND?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
    OR?: EmailTemplateScalarWhereInput[]
    NOT?: EmailTemplateScalarWhereInput | EmailTemplateScalarWhereInput[]
    id?: IntFilter<"EmailTemplate"> | number
    uuid?: StringFilter<"EmailTemplate"> | string
    slug?: StringFilter<"EmailTemplate"> | string
    name?: StringFilter<"EmailTemplate"> | string
    subject?: StringFilter<"EmailTemplate"> | string
    template_body?: StringFilter<"EmailTemplate"> | string
    email_template_process_id?: IntFilter<"EmailTemplate"> | number
    status_id?: IntFilter<"EmailTemplate"> | number
    created_at?: DateTimeFilter<"EmailTemplate"> | Date | string
    created_by?: IntNullableFilter<"EmailTemplate"> | number | null
    updated_at?: DateTimeFilter<"EmailTemplate"> | Date | string
    updated_by?: IntNullableFilter<"EmailTemplate"> | number | null
    deleted_at?: DateTimeNullableFilter<"EmailTemplate"> | Date | string | null
    deleted_by?: IntNullableFilter<"EmailTemplate"> | number | null
    company_id?: IntFilter<"EmailTemplate"> | number
  }

  export type EmailTemplateUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: EmailTemplateWhereUniqueInput
    update: XOR<EmailTemplateUpdateWithoutUpdatedInput, EmailTemplateUncheckedUpdateWithoutUpdatedInput>
    create: XOR<EmailTemplateCreateWithoutUpdatedInput, EmailTemplateUncheckedCreateWithoutUpdatedInput>
  }

  export type EmailTemplateUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: EmailTemplateWhereUniqueInput
    data: XOR<EmailTemplateUpdateWithoutUpdatedInput, EmailTemplateUncheckedUpdateWithoutUpdatedInput>
  }

  export type EmailTemplateUpdateManyWithWhereWithoutUpdatedInput = {
    where: EmailTemplateScalarWhereInput
    data: XOR<EmailTemplateUpdateManyMutationInput, EmailTemplateUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type EmailTemplateUpsertWithWhereUniqueWithoutDeletedInput = {
    where: EmailTemplateWhereUniqueInput
    update: XOR<EmailTemplateUpdateWithoutDeletedInput, EmailTemplateUncheckedUpdateWithoutDeletedInput>
    create: XOR<EmailTemplateCreateWithoutDeletedInput, EmailTemplateUncheckedCreateWithoutDeletedInput>
  }

  export type EmailTemplateUpdateWithWhereUniqueWithoutDeletedInput = {
    where: EmailTemplateWhereUniqueInput
    data: XOR<EmailTemplateUpdateWithoutDeletedInput, EmailTemplateUncheckedUpdateWithoutDeletedInput>
  }

  export type EmailTemplateUpdateManyWithWhereWithoutDeletedInput = {
    where: EmailTemplateScalarWhereInput
    data: XOR<EmailTemplateUpdateManyMutationInput, EmailTemplateUncheckedUpdateManyWithoutDeletedInput>
  }

  export type EmailTemplateAssignmentUpsertWithWhereUniqueWithoutCreatedInput = {
    where: EmailTemplateAssignmentWhereUniqueInput
    update: XOR<EmailTemplateAssignmentUpdateWithoutCreatedInput, EmailTemplateAssignmentUncheckedUpdateWithoutCreatedInput>
    create: XOR<EmailTemplateAssignmentCreateWithoutCreatedInput, EmailTemplateAssignmentUncheckedCreateWithoutCreatedInput>
  }

  export type EmailTemplateAssignmentUpdateWithWhereUniqueWithoutCreatedInput = {
    where: EmailTemplateAssignmentWhereUniqueInput
    data: XOR<EmailTemplateAssignmentUpdateWithoutCreatedInput, EmailTemplateAssignmentUncheckedUpdateWithoutCreatedInput>
  }

  export type EmailTemplateAssignmentUpdateManyWithWhereWithoutCreatedInput = {
    where: EmailTemplateAssignmentScalarWhereInput
    data: XOR<EmailTemplateAssignmentUpdateManyMutationInput, EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedInput>
  }

  export type EmailTemplateAssignmentScalarWhereInput = {
    AND?: EmailTemplateAssignmentScalarWhereInput | EmailTemplateAssignmentScalarWhereInput[]
    OR?: EmailTemplateAssignmentScalarWhereInput[]
    NOT?: EmailTemplateAssignmentScalarWhereInput | EmailTemplateAssignmentScalarWhereInput[]
    id?: IntFilter<"EmailTemplateAssignment"> | number
    uuid?: StringFilter<"EmailTemplateAssignment"> | string
    email_template_process_id?: IntFilter<"EmailTemplateAssignment"> | number
    template_id?: IntFilter<"EmailTemplateAssignment"> | number
    recipient_type?: StringFilter<"EmailTemplateAssignment"> | string
    email_to?: StringNullableFilter<"EmailTemplateAssignment"> | string | null
    mail_cc?: StringNullableFilter<"EmailTemplateAssignment"> | string | null
    mail_bcc?: StringNullableFilter<"EmailTemplateAssignment"> | string | null
    company_id?: IntFilter<"EmailTemplateAssignment"> | number
    created_at?: DateTimeFilter<"EmailTemplateAssignment"> | Date | string
    created_by?: IntFilter<"EmailTemplateAssignment"> | number
  }

  export type EmailProcessJobUpsertWithWhereUniqueWithoutCreatedInput = {
    where: EmailProcessJobWhereUniqueInput
    update: XOR<EmailProcessJobUpdateWithoutCreatedInput, EmailProcessJobUncheckedUpdateWithoutCreatedInput>
    create: XOR<EmailProcessJobCreateWithoutCreatedInput, EmailProcessJobUncheckedCreateWithoutCreatedInput>
  }

  export type EmailProcessJobUpdateWithWhereUniqueWithoutCreatedInput = {
    where: EmailProcessJobWhereUniqueInput
    data: XOR<EmailProcessJobUpdateWithoutCreatedInput, EmailProcessJobUncheckedUpdateWithoutCreatedInput>
  }

  export type EmailProcessJobUpdateManyWithWhereWithoutCreatedInput = {
    where: EmailProcessJobScalarWhereInput
    data: XOR<EmailProcessJobUpdateManyMutationInput, EmailProcessJobUncheckedUpdateManyWithoutCreatedInput>
  }

  export type EmailProcessJobScalarWhereInput = {
    AND?: EmailProcessJobScalarWhereInput | EmailProcessJobScalarWhereInput[]
    OR?: EmailProcessJobScalarWhereInput[]
    NOT?: EmailProcessJobScalarWhereInput | EmailProcessJobScalarWhereInput[]
    id?: IntFilter<"EmailProcessJob"> | number
    uuid?: StringFilter<"EmailProcessJob"> | string
    email_template_process_slug?: StringFilter<"EmailProcessJob"> | string
    unique_id?: StringFilter<"EmailProcessJob"> | string
    user_id?: IntFilter<"EmailProcessJob"> | number
    prefill_data?: StringNullableFilter<"EmailProcessJob"> | string | null
    company_id?: IntFilter<"EmailProcessJob"> | number
    status_id?: IntFilter<"EmailProcessJob"> | number
    created_at?: DateTimeFilter<"EmailProcessJob"> | Date | string
    created_by?: IntNullableFilter<"EmailProcessJob"> | number | null
  }

  export type NotificationJobUpsertWithWhereUniqueWithoutCreatedInput = {
    where: NotificationJobWhereUniqueInput
    update: XOR<NotificationJobUpdateWithoutCreatedInput, NotificationJobUncheckedUpdateWithoutCreatedInput>
    create: XOR<NotificationJobCreateWithoutCreatedInput, NotificationJobUncheckedCreateWithoutCreatedInput>
  }

  export type NotificationJobUpdateWithWhereUniqueWithoutCreatedInput = {
    where: NotificationJobWhereUniqueInput
    data: XOR<NotificationJobUpdateWithoutCreatedInput, NotificationJobUncheckedUpdateWithoutCreatedInput>
  }

  export type NotificationJobUpdateManyWithWhereWithoutCreatedInput = {
    where: NotificationJobScalarWhereInput
    data: XOR<NotificationJobUpdateManyMutationInput, NotificationJobUncheckedUpdateManyWithoutCreatedInput>
  }

  export type NotificationJobScalarWhereInput = {
    AND?: NotificationJobScalarWhereInput | NotificationJobScalarWhereInput[]
    OR?: NotificationJobScalarWhereInput[]
    NOT?: NotificationJobScalarWhereInput | NotificationJobScalarWhereInput[]
    id?: IntFilter<"NotificationJob"> | number
    uuid?: StringFilter<"NotificationJob"> | string
    process_slug?: StringFilter<"NotificationJob"> | string
    notification_to?: StringNullableFilter<"NotificationJob"> | string | null
    notification_subject?: StringNullableFilter<"NotificationJob"> | string | null
    notification_content?: StringNullableFilter<"NotificationJob"> | string | null
    notification_cc?: StringNullableFilter<"NotificationJob"> | string | null
    notification_bcc?: StringNullableFilter<"NotificationJob"> | string | null
    notification_type_id?: StringFilter<"NotificationJob"> | string
    notification_status_id?: StringFilter<"NotificationJob"> | string
    company_id?: IntFilter<"NotificationJob"> | number
    status_id?: IntFilter<"NotificationJob"> | number
    created_at?: DateTimeFilter<"NotificationJob"> | Date | string
    created_by?: IntNullableFilter<"NotificationJob"> | number | null
    sent_at?: DateTimeNullableFilter<"NotificationJob"> | Date | string | null
    read_at?: DateTimeNullableFilter<"NotificationJob"> | Date | string | null
  }

  export type ImportTemplateUpsertWithWhereUniqueWithoutCreatedInput = {
    where: ImportTemplateWhereUniqueInput
    update: XOR<ImportTemplateUpdateWithoutCreatedInput, ImportTemplateUncheckedUpdateWithoutCreatedInput>
    create: XOR<ImportTemplateCreateWithoutCreatedInput, ImportTemplateUncheckedCreateWithoutCreatedInput>
  }

  export type ImportTemplateUpdateWithWhereUniqueWithoutCreatedInput = {
    where: ImportTemplateWhereUniqueInput
    data: XOR<ImportTemplateUpdateWithoutCreatedInput, ImportTemplateUncheckedUpdateWithoutCreatedInput>
  }

  export type ImportTemplateUpdateManyWithWhereWithoutCreatedInput = {
    where: ImportTemplateScalarWhereInput
    data: XOR<ImportTemplateUpdateManyMutationInput, ImportTemplateUncheckedUpdateManyWithoutCreatedInput>
  }

  export type ImportTemplateScalarWhereInput = {
    AND?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
    OR?: ImportTemplateScalarWhereInput[]
    NOT?: ImportTemplateScalarWhereInput | ImportTemplateScalarWhereInput[]
    id?: IntFilter<"ImportTemplate"> | number
    uuid?: StringFilter<"ImportTemplate"> | string
    name?: StringFilter<"ImportTemplate"> | string
    slug?: StringFilter<"ImportTemplate"> | string
    description?: StringNullableFilter<"ImportTemplate"> | string | null
    max_row_count?: IntFilter<"ImportTemplate"> | number
    header_row?: IntFilter<"ImportTemplate"> | number
    data_start_row?: IntFilter<"ImportTemplate"> | number
    data_end_row?: IntFilter<"ImportTemplate"> | number
    ignore_error_rows?: BoolFilter<"ImportTemplate"> | boolean
    is_admin_module?: BoolFilter<"ImportTemplate"> | boolean
    job_type?: StringNullableFilter<"ImportTemplate"> | string | null
    batch_process_count?: IntNullableFilter<"ImportTemplate"> | number | null
    status_id?: IntFilter<"ImportTemplate"> | number
    company_id?: IntFilter<"ImportTemplate"> | number
    created_by?: IntNullableFilter<"ImportTemplate"> | number | null
    created_at?: DateTimeFilter<"ImportTemplate"> | Date | string
    updated_by?: IntNullableFilter<"ImportTemplate"> | number | null
    updated_at?: DateTimeFilter<"ImportTemplate"> | Date | string
    deleted_by?: IntNullableFilter<"ImportTemplate"> | number | null
    deleted_at?: DateTimeNullableFilter<"ImportTemplate"> | Date | string | null
  }

  export type ImportTemplateUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: ImportTemplateWhereUniqueInput
    update: XOR<ImportTemplateUpdateWithoutUpdatedInput, ImportTemplateUncheckedUpdateWithoutUpdatedInput>
    create: XOR<ImportTemplateCreateWithoutUpdatedInput, ImportTemplateUncheckedCreateWithoutUpdatedInput>
  }

  export type ImportTemplateUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: ImportTemplateWhereUniqueInput
    data: XOR<ImportTemplateUpdateWithoutUpdatedInput, ImportTemplateUncheckedUpdateWithoutUpdatedInput>
  }

  export type ImportTemplateUpdateManyWithWhereWithoutUpdatedInput = {
    where: ImportTemplateScalarWhereInput
    data: XOR<ImportTemplateUpdateManyMutationInput, ImportTemplateUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type ImportTemplateUpsertWithWhereUniqueWithoutDeletedInput = {
    where: ImportTemplateWhereUniqueInput
    update: XOR<ImportTemplateUpdateWithoutDeletedInput, ImportTemplateUncheckedUpdateWithoutDeletedInput>
    create: XOR<ImportTemplateCreateWithoutDeletedInput, ImportTemplateUncheckedCreateWithoutDeletedInput>
  }

  export type ImportTemplateUpdateWithWhereUniqueWithoutDeletedInput = {
    where: ImportTemplateWhereUniqueInput
    data: XOR<ImportTemplateUpdateWithoutDeletedInput, ImportTemplateUncheckedUpdateWithoutDeletedInput>
  }

  export type ImportTemplateUpdateManyWithWhereWithoutDeletedInput = {
    where: ImportTemplateScalarWhereInput
    data: XOR<ImportTemplateUpdateManyMutationInput, ImportTemplateUncheckedUpdateManyWithoutDeletedInput>
  }

  export type ExportTemplateUpsertWithWhereUniqueWithoutCreatedInput = {
    where: ExportTemplateWhereUniqueInput
    update: XOR<ExportTemplateUpdateWithoutCreatedInput, ExportTemplateUncheckedUpdateWithoutCreatedInput>
    create: XOR<ExportTemplateCreateWithoutCreatedInput, ExportTemplateUncheckedCreateWithoutCreatedInput>
  }

  export type ExportTemplateUpdateWithWhereUniqueWithoutCreatedInput = {
    where: ExportTemplateWhereUniqueInput
    data: XOR<ExportTemplateUpdateWithoutCreatedInput, ExportTemplateUncheckedUpdateWithoutCreatedInput>
  }

  export type ExportTemplateUpdateManyWithWhereWithoutCreatedInput = {
    where: ExportTemplateScalarWhereInput
    data: XOR<ExportTemplateUpdateManyMutationInput, ExportTemplateUncheckedUpdateManyWithoutCreatedInput>
  }

  export type ExportTemplateScalarWhereInput = {
    AND?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
    OR?: ExportTemplateScalarWhereInput[]
    NOT?: ExportTemplateScalarWhereInput | ExportTemplateScalarWhereInput[]
    id?: IntFilter<"ExportTemplate"> | number
    uuid?: StringFilter<"ExportTemplate"> | string
    name?: StringFilter<"ExportTemplate"> | string
    slug?: StringFilter<"ExportTemplate"> | string
    description?: StringNullableFilter<"ExportTemplate"> | string | null
    max_row_count?: IntFilter<"ExportTemplate"> | number
    header_row?: IntFilter<"ExportTemplate"> | number
    data_start_row?: IntFilter<"ExportTemplate"> | number
    data_end_row?: IntFilter<"ExportTemplate"> | number
    data_filepath?: StringFilter<"ExportTemplate"> | string
    status_id?: IntFilter<"ExportTemplate"> | number
    company_id?: IntFilter<"ExportTemplate"> | number
    created_by?: IntNullableFilter<"ExportTemplate"> | number | null
    created_at?: DateTimeFilter<"ExportTemplate"> | Date | string
    updated_by?: IntNullableFilter<"ExportTemplate"> | number | null
    updated_at?: DateTimeFilter<"ExportTemplate"> | Date | string
    deleted_by?: IntNullableFilter<"ExportTemplate"> | number | null
    deleted_at?: DateTimeNullableFilter<"ExportTemplate"> | Date | string | null
  }

  export type ExportTemplateUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: ExportTemplateWhereUniqueInput
    update: XOR<ExportTemplateUpdateWithoutUpdatedInput, ExportTemplateUncheckedUpdateWithoutUpdatedInput>
    create: XOR<ExportTemplateCreateWithoutUpdatedInput, ExportTemplateUncheckedCreateWithoutUpdatedInput>
  }

  export type ExportTemplateUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: ExportTemplateWhereUniqueInput
    data: XOR<ExportTemplateUpdateWithoutUpdatedInput, ExportTemplateUncheckedUpdateWithoutUpdatedInput>
  }

  export type ExportTemplateUpdateManyWithWhereWithoutUpdatedInput = {
    where: ExportTemplateScalarWhereInput
    data: XOR<ExportTemplateUpdateManyMutationInput, ExportTemplateUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type ExportTemplateUpsertWithWhereUniqueWithoutDeletedInput = {
    where: ExportTemplateWhereUniqueInput
    update: XOR<ExportTemplateUpdateWithoutDeletedInput, ExportTemplateUncheckedUpdateWithoutDeletedInput>
    create: XOR<ExportTemplateCreateWithoutDeletedInput, ExportTemplateUncheckedCreateWithoutDeletedInput>
  }

  export type ExportTemplateUpdateWithWhereUniqueWithoutDeletedInput = {
    where: ExportTemplateWhereUniqueInput
    data: XOR<ExportTemplateUpdateWithoutDeletedInput, ExportTemplateUncheckedUpdateWithoutDeletedInput>
  }

  export type ExportTemplateUpdateManyWithWhereWithoutDeletedInput = {
    where: ExportTemplateScalarWhereInput
    data: XOR<ExportTemplateUpdateManyMutationInput, ExportTemplateUncheckedUpdateManyWithoutDeletedInput>
  }

  export type DepartmentUpsertWithWhereUniqueWithoutCreatedInput = {
    where: DepartmentWhereUniqueInput
    update: XOR<DepartmentUpdateWithoutCreatedInput, DepartmentUncheckedUpdateWithoutCreatedInput>
    create: XOR<DepartmentCreateWithoutCreatedInput, DepartmentUncheckedCreateWithoutCreatedInput>
  }

  export type DepartmentUpdateWithWhereUniqueWithoutCreatedInput = {
    where: DepartmentWhereUniqueInput
    data: XOR<DepartmentUpdateWithoutCreatedInput, DepartmentUncheckedUpdateWithoutCreatedInput>
  }

  export type DepartmentUpdateManyWithWhereWithoutCreatedInput = {
    where: DepartmentScalarWhereInput
    data: XOR<DepartmentUpdateManyMutationInput, DepartmentUncheckedUpdateManyWithoutCreatedInput>
  }

  export type DepartmentScalarWhereInput = {
    AND?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
    OR?: DepartmentScalarWhereInput[]
    NOT?: DepartmentScalarWhereInput | DepartmentScalarWhereInput[]
    id?: IntFilter<"Department"> | number
    uuid?: StringFilter<"Department"> | string
    code?: StringFilter<"Department"> | string
    name?: StringFilter<"Department"> | string
    description?: StringNullableFilter<"Department"> | string | null
    status_id?: IntFilter<"Department"> | number
    department_head_id?: IntNullableFilter<"Department"> | number | null
    company_id?: IntFilter<"Department"> | number
    created_by?: IntNullableFilter<"Department"> | number | null
    updated_by?: IntNullableFilter<"Department"> | number | null
    deleted_by?: IntNullableFilter<"Department"> | number | null
    created_at?: DateTimeFilter<"Department"> | Date | string
    updated_at?: DateTimeFilter<"Department"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Department"> | Date | string | null
  }

  export type DepartmentUpsertWithWhereUniqueWithoutDepartment_headInput = {
    where: DepartmentWhereUniqueInput
    update: XOR<DepartmentUpdateWithoutDepartment_headInput, DepartmentUncheckedUpdateWithoutDepartment_headInput>
    create: XOR<DepartmentCreateWithoutDepartment_headInput, DepartmentUncheckedCreateWithoutDepartment_headInput>
  }

  export type DepartmentUpdateWithWhereUniqueWithoutDepartment_headInput = {
    where: DepartmentWhereUniqueInput
    data: XOR<DepartmentUpdateWithoutDepartment_headInput, DepartmentUncheckedUpdateWithoutDepartment_headInput>
  }

  export type DepartmentUpdateManyWithWhereWithoutDepartment_headInput = {
    where: DepartmentScalarWhereInput
    data: XOR<DepartmentUpdateManyMutationInput, DepartmentUncheckedUpdateManyWithoutDepartment_headInput>
  }

  export type DepartmentUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: DepartmentWhereUniqueInput
    update: XOR<DepartmentUpdateWithoutUpdatedInput, DepartmentUncheckedUpdateWithoutUpdatedInput>
    create: XOR<DepartmentCreateWithoutUpdatedInput, DepartmentUncheckedCreateWithoutUpdatedInput>
  }

  export type DepartmentUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: DepartmentWhereUniqueInput
    data: XOR<DepartmentUpdateWithoutUpdatedInput, DepartmentUncheckedUpdateWithoutUpdatedInput>
  }

  export type DepartmentUpdateManyWithWhereWithoutUpdatedInput = {
    where: DepartmentScalarWhereInput
    data: XOR<DepartmentUpdateManyMutationInput, DepartmentUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type DepartmentUpsertWithWhereUniqueWithoutDeletedInput = {
    where: DepartmentWhereUniqueInput
    update: XOR<DepartmentUpdateWithoutDeletedInput, DepartmentUncheckedUpdateWithoutDeletedInput>
    create: XOR<DepartmentCreateWithoutDeletedInput, DepartmentUncheckedCreateWithoutDeletedInput>
  }

  export type DepartmentUpdateWithWhereUniqueWithoutDeletedInput = {
    where: DepartmentWhereUniqueInput
    data: XOR<DepartmentUpdateWithoutDeletedInput, DepartmentUncheckedUpdateWithoutDeletedInput>
  }

  export type DepartmentUpdateManyWithWhereWithoutDeletedInput = {
    where: DepartmentScalarWhereInput
    data: XOR<DepartmentUpdateManyMutationInput, DepartmentUncheckedUpdateManyWithoutDeletedInput>
  }

  export type DesignationUpsertWithWhereUniqueWithoutCreatedInput = {
    where: DesignationWhereUniqueInput
    update: XOR<DesignationUpdateWithoutCreatedInput, DesignationUncheckedUpdateWithoutCreatedInput>
    create: XOR<DesignationCreateWithoutCreatedInput, DesignationUncheckedCreateWithoutCreatedInput>
  }

  export type DesignationUpdateWithWhereUniqueWithoutCreatedInput = {
    where: DesignationWhereUniqueInput
    data: XOR<DesignationUpdateWithoutCreatedInput, DesignationUncheckedUpdateWithoutCreatedInput>
  }

  export type DesignationUpdateManyWithWhereWithoutCreatedInput = {
    where: DesignationScalarWhereInput
    data: XOR<DesignationUpdateManyMutationInput, DesignationUncheckedUpdateManyWithoutCreatedInput>
  }

  export type DesignationScalarWhereInput = {
    AND?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
    OR?: DesignationScalarWhereInput[]
    NOT?: DesignationScalarWhereInput | DesignationScalarWhereInput[]
    id?: IntFilter<"Designation"> | number
    uuid?: StringFilter<"Designation"> | string
    code?: StringFilter<"Designation"> | string
    name?: StringFilter<"Designation"> | string
    description?: StringNullableFilter<"Designation"> | string | null
    status_id?: IntFilter<"Designation"> | number
    company_id?: IntFilter<"Designation"> | number
    created_by?: IntNullableFilter<"Designation"> | number | null
    updated_by?: IntNullableFilter<"Designation"> | number | null
    deleted_by?: IntNullableFilter<"Designation"> | number | null
    created_at?: DateTimeFilter<"Designation"> | Date | string
    updated_at?: DateTimeFilter<"Designation"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Designation"> | Date | string | null
  }

  export type DesignationUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: DesignationWhereUniqueInput
    update: XOR<DesignationUpdateWithoutUpdatedInput, DesignationUncheckedUpdateWithoutUpdatedInput>
    create: XOR<DesignationCreateWithoutUpdatedInput, DesignationUncheckedCreateWithoutUpdatedInput>
  }

  export type DesignationUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: DesignationWhereUniqueInput
    data: XOR<DesignationUpdateWithoutUpdatedInput, DesignationUncheckedUpdateWithoutUpdatedInput>
  }

  export type DesignationUpdateManyWithWhereWithoutUpdatedInput = {
    where: DesignationScalarWhereInput
    data: XOR<DesignationUpdateManyMutationInput, DesignationUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type DesignationUpsertWithWhereUniqueWithoutDeletedInput = {
    where: DesignationWhereUniqueInput
    update: XOR<DesignationUpdateWithoutDeletedInput, DesignationUncheckedUpdateWithoutDeletedInput>
    create: XOR<DesignationCreateWithoutDeletedInput, DesignationUncheckedCreateWithoutDeletedInput>
  }

  export type DesignationUpdateWithWhereUniqueWithoutDeletedInput = {
    where: DesignationWhereUniqueInput
    data: XOR<DesignationUpdateWithoutDeletedInput, DesignationUncheckedUpdateWithoutDeletedInput>
  }

  export type DesignationUpdateManyWithWhereWithoutDeletedInput = {
    where: DesignationScalarWhereInput
    data: XOR<DesignationUpdateManyMutationInput, DesignationUncheckedUpdateManyWithoutDeletedInput>
  }

  export type AuditLogUpsertWithWhereUniqueWithoutUserInput = {
    where: AuditLogWhereUniqueInput
    update: XOR<AuditLogUpdateWithoutUserInput, AuditLogUncheckedUpdateWithoutUserInput>
    create: XOR<AuditLogCreateWithoutUserInput, AuditLogUncheckedCreateWithoutUserInput>
  }

  export type AuditLogUpdateWithWhereUniqueWithoutUserInput = {
    where: AuditLogWhereUniqueInput
    data: XOR<AuditLogUpdateWithoutUserInput, AuditLogUncheckedUpdateWithoutUserInput>
  }

  export type AuditLogUpdateManyWithWhereWithoutUserInput = {
    where: AuditLogScalarWhereInput
    data: XOR<AuditLogUpdateManyMutationInput, AuditLogUncheckedUpdateManyWithoutUserInput>
  }

  export type AuditLogScalarWhereInput = {
    AND?: AuditLogScalarWhereInput | AuditLogScalarWhereInput[]
    OR?: AuditLogScalarWhereInput[]
    NOT?: AuditLogScalarWhereInput | AuditLogScalarWhereInput[]
    id?: IntFilter<"AuditLog"> | number
    operation_type?: StringFilter<"AuditLog"> | string
    table_name?: StringFilter<"AuditLog"> | string
    field_name?: StringFilter<"AuditLog"> | string
    old_value?: StringNullableFilter<"AuditLog"> | string | null
    new_value?: StringNullableFilter<"AuditLog"> | string | null
    entity_id?: IntFilter<"AuditLog"> | number
    user_id?: IntNullableFilter<"AuditLog"> | number | null
    status_id?: IntFilter<"AuditLog"> | number
    company_id?: IntNullableFilter<"AuditLog"> | number | null
    created_at?: DateTimeFilter<"AuditLog"> | Date | string
  }

  export type CategoryTypesUpsertWithWhereUniqueWithoutCreated_category_typesInput = {
    where: CategoryTypesWhereUniqueInput
    update: XOR<CategoryTypesUpdateWithoutCreated_category_typesInput, CategoryTypesUncheckedUpdateWithoutCreated_category_typesInput>
    create: XOR<CategoryTypesCreateWithoutCreated_category_typesInput, CategoryTypesUncheckedCreateWithoutCreated_category_typesInput>
  }

  export type CategoryTypesUpdateWithWhereUniqueWithoutCreated_category_typesInput = {
    where: CategoryTypesWhereUniqueInput
    data: XOR<CategoryTypesUpdateWithoutCreated_category_typesInput, CategoryTypesUncheckedUpdateWithoutCreated_category_typesInput>
  }

  export type CategoryTypesUpdateManyWithWhereWithoutCreated_category_typesInput = {
    where: CategoryTypesScalarWhereInput
    data: XOR<CategoryTypesUpdateManyMutationInput, CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesInput>
  }

  export type CategoryTypesScalarWhereInput = {
    AND?: CategoryTypesScalarWhereInput | CategoryTypesScalarWhereInput[]
    OR?: CategoryTypesScalarWhereInput[]
    NOT?: CategoryTypesScalarWhereInput | CategoryTypesScalarWhereInput[]
    id?: IntFilter<"CategoryTypes"> | number
    uuid?: StringFilter<"CategoryTypes"> | string
    category_type_id?: StringFilter<"CategoryTypes"> | string
    name?: StringFilter<"CategoryTypes"> | string
    description?: StringNullableFilter<"CategoryTypes"> | string | null
    company_id?: IntFilter<"CategoryTypes"> | number
    created_by?: IntNullableFilter<"CategoryTypes"> | number | null
    updated_by?: IntNullableFilter<"CategoryTypes"> | number | null
    deleted_by?: IntNullableFilter<"CategoryTypes"> | number | null
    created_at?: DateTimeFilter<"CategoryTypes"> | Date | string
    updated_at?: DateTimeFilter<"CategoryTypes"> | Date | string
    deleted_at?: DateTimeNullableFilter<"CategoryTypes"> | Date | string | null
  }

  export type CategoryTypesUpsertWithWhereUniqueWithoutUpdated_category_typesInput = {
    where: CategoryTypesWhereUniqueInput
    update: XOR<CategoryTypesUpdateWithoutUpdated_category_typesInput, CategoryTypesUncheckedUpdateWithoutUpdated_category_typesInput>
    create: XOR<CategoryTypesCreateWithoutUpdated_category_typesInput, CategoryTypesUncheckedCreateWithoutUpdated_category_typesInput>
  }

  export type CategoryTypesUpdateWithWhereUniqueWithoutUpdated_category_typesInput = {
    where: CategoryTypesWhereUniqueInput
    data: XOR<CategoryTypesUpdateWithoutUpdated_category_typesInput, CategoryTypesUncheckedUpdateWithoutUpdated_category_typesInput>
  }

  export type CategoryTypesUpdateManyWithWhereWithoutUpdated_category_typesInput = {
    where: CategoryTypesScalarWhereInput
    data: XOR<CategoryTypesUpdateManyMutationInput, CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesInput>
  }

  export type CategoryTypesUpsertWithWhereUniqueWithoutDeleted_category_typesInput = {
    where: CategoryTypesWhereUniqueInput
    update: XOR<CategoryTypesUpdateWithoutDeleted_category_typesInput, CategoryTypesUncheckedUpdateWithoutDeleted_category_typesInput>
    create: XOR<CategoryTypesCreateWithoutDeleted_category_typesInput, CategoryTypesUncheckedCreateWithoutDeleted_category_typesInput>
  }

  export type CategoryTypesUpdateWithWhereUniqueWithoutDeleted_category_typesInput = {
    where: CategoryTypesWhereUniqueInput
    data: XOR<CategoryTypesUpdateWithoutDeleted_category_typesInput, CategoryTypesUncheckedUpdateWithoutDeleted_category_typesInput>
  }

  export type CategoryTypesUpdateManyWithWhereWithoutDeleted_category_typesInput = {
    where: CategoryTypesScalarWhereInput
    data: XOR<CategoryTypesUpdateManyMutationInput, CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesInput>
  }

  export type CategoriesUpsertWithWhereUniqueWithoutCreated_categoriesInput = {
    where: CategoriesWhereUniqueInput
    update: XOR<CategoriesUpdateWithoutCreated_categoriesInput, CategoriesUncheckedUpdateWithoutCreated_categoriesInput>
    create: XOR<CategoriesCreateWithoutCreated_categoriesInput, CategoriesUncheckedCreateWithoutCreated_categoriesInput>
  }

  export type CategoriesUpdateWithWhereUniqueWithoutCreated_categoriesInput = {
    where: CategoriesWhereUniqueInput
    data: XOR<CategoriesUpdateWithoutCreated_categoriesInput, CategoriesUncheckedUpdateWithoutCreated_categoriesInput>
  }

  export type CategoriesUpdateManyWithWhereWithoutCreated_categoriesInput = {
    where: CategoriesScalarWhereInput
    data: XOR<CategoriesUpdateManyMutationInput, CategoriesUncheckedUpdateManyWithoutCreated_categoriesInput>
  }

  export type CategoriesScalarWhereInput = {
    AND?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
    OR?: CategoriesScalarWhereInput[]
    NOT?: CategoriesScalarWhereInput | CategoriesScalarWhereInput[]
    id?: IntFilter<"Categories"> | number
    uuid?: StringFilter<"Categories"> | string
    category_type_id?: StringFilter<"Categories"> | string
    category_id?: StringFilter<"Categories"> | string
    parent_id?: StringNullableFilter<"Categories"> | string | null
    name?: StringFilter<"Categories"> | string
    description?: StringNullableFilter<"Categories"> | string | null
    company_id?: IntFilter<"Categories"> | number
    created_by?: IntNullableFilter<"Categories"> | number | null
    updated_by?: IntNullableFilter<"Categories"> | number | null
    deleted_by?: IntNullableFilter<"Categories"> | number | null
    created_at?: DateTimeFilter<"Categories"> | Date | string
    updated_at?: DateTimeFilter<"Categories"> | Date | string
    deleted_at?: DateTimeNullableFilter<"Categories"> | Date | string | null
  }

  export type CategoriesUpsertWithWhereUniqueWithoutUpdated_categoriesInput = {
    where: CategoriesWhereUniqueInput
    update: XOR<CategoriesUpdateWithoutUpdated_categoriesInput, CategoriesUncheckedUpdateWithoutUpdated_categoriesInput>
    create: XOR<CategoriesCreateWithoutUpdated_categoriesInput, CategoriesUncheckedCreateWithoutUpdated_categoriesInput>
  }

  export type CategoriesUpdateWithWhereUniqueWithoutUpdated_categoriesInput = {
    where: CategoriesWhereUniqueInput
    data: XOR<CategoriesUpdateWithoutUpdated_categoriesInput, CategoriesUncheckedUpdateWithoutUpdated_categoriesInput>
  }

  export type CategoriesUpdateManyWithWhereWithoutUpdated_categoriesInput = {
    where: CategoriesScalarWhereInput
    data: XOR<CategoriesUpdateManyMutationInput, CategoriesUncheckedUpdateManyWithoutUpdated_categoriesInput>
  }

  export type CategoriesUpsertWithWhereUniqueWithoutDeleted_categoriesInput = {
    where: CategoriesWhereUniqueInput
    update: XOR<CategoriesUpdateWithoutDeleted_categoriesInput, CategoriesUncheckedUpdateWithoutDeleted_categoriesInput>
    create: XOR<CategoriesCreateWithoutDeleted_categoriesInput, CategoriesUncheckedCreateWithoutDeleted_categoriesInput>
  }

  export type CategoriesUpdateWithWhereUniqueWithoutDeleted_categoriesInput = {
    where: CategoriesWhereUniqueInput
    data: XOR<CategoriesUpdateWithoutDeleted_categoriesInput, CategoriesUncheckedUpdateWithoutDeleted_categoriesInput>
  }

  export type CategoriesUpdateManyWithWhereWithoutDeleted_categoriesInput = {
    where: CategoriesScalarWhereInput
    data: XOR<CategoriesUpdateManyMutationInput, CategoriesUncheckedUpdateManyWithoutDeleted_categoriesInput>
  }

  export type ConfigurationsUpsertWithWhereUniqueWithoutCreated_configurationsInput = {
    where: ConfigurationsWhereUniqueInput
    update: XOR<ConfigurationsUpdateWithoutCreated_configurationsInput, ConfigurationsUncheckedUpdateWithoutCreated_configurationsInput>
    create: XOR<ConfigurationsCreateWithoutCreated_configurationsInput, ConfigurationsUncheckedCreateWithoutCreated_configurationsInput>
  }

  export type ConfigurationsUpdateWithWhereUniqueWithoutCreated_configurationsInput = {
    where: ConfigurationsWhereUniqueInput
    data: XOR<ConfigurationsUpdateWithoutCreated_configurationsInput, ConfigurationsUncheckedUpdateWithoutCreated_configurationsInput>
  }

  export type ConfigurationsUpdateManyWithWhereWithoutCreated_configurationsInput = {
    where: ConfigurationsScalarWhereInput
    data: XOR<ConfigurationsUpdateManyMutationInput, ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsInput>
  }

  export type ConfigurationsScalarWhereInput = {
    AND?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
    OR?: ConfigurationsScalarWhereInput[]
    NOT?: ConfigurationsScalarWhereInput | ConfigurationsScalarWhereInput[]
    id?: IntFilter<"Configurations"> | number
    uuid?: StringFilter<"Configurations"> | string
    order_no?: DecimalFilter<"Configurations"> | Decimal | DecimalJsLike | number | string
    config_key?: StringFilter<"Configurations"> | string
    category_id?: StringFilter<"Configurations"> | string
    config_value?: StringNullableFilter<"Configurations"> | string | null
    config_file_value?: StringNullableFilter<"Configurations"> | string | null
    config_value_type?: StringFilter<"Configurations"> | string
    config_field_type?: StringFilter<"Configurations"> | string
    display_config?: BoolFilter<"Configurations"> | boolean
    company_id?: IntFilter<"Configurations"> | number
    created_by?: IntNullableFilter<"Configurations"> | number | null
    updated_by?: IntNullableFilter<"Configurations"> | number | null
    deleted_by?: IntNullableFilter<"Configurations"> | number | null
    created_at?: DateTimeFilter<"Configurations"> | Date | string
    updated_at?: DateTimeNullableFilter<"Configurations"> | Date | string | null
    deleted_at?: DateTimeNullableFilter<"Configurations"> | Date | string | null
  }

  export type ConfigurationsUpsertWithWhereUniqueWithoutUpdated_configurationsInput = {
    where: ConfigurationsWhereUniqueInput
    update: XOR<ConfigurationsUpdateWithoutUpdated_configurationsInput, ConfigurationsUncheckedUpdateWithoutUpdated_configurationsInput>
    create: XOR<ConfigurationsCreateWithoutUpdated_configurationsInput, ConfigurationsUncheckedCreateWithoutUpdated_configurationsInput>
  }

  export type ConfigurationsUpdateWithWhereUniqueWithoutUpdated_configurationsInput = {
    where: ConfigurationsWhereUniqueInput
    data: XOR<ConfigurationsUpdateWithoutUpdated_configurationsInput, ConfigurationsUncheckedUpdateWithoutUpdated_configurationsInput>
  }

  export type ConfigurationsUpdateManyWithWhereWithoutUpdated_configurationsInput = {
    where: ConfigurationsScalarWhereInput
    data: XOR<ConfigurationsUpdateManyMutationInput, ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsInput>
  }

  export type ConfigurationsUpsertWithWhereUniqueWithoutDeleted_configurationsInput = {
    where: ConfigurationsWhereUniqueInput
    update: XOR<ConfigurationsUpdateWithoutDeleted_configurationsInput, ConfigurationsUncheckedUpdateWithoutDeleted_configurationsInput>
    create: XOR<ConfigurationsCreateWithoutDeleted_configurationsInput, ConfigurationsUncheckedCreateWithoutDeleted_configurationsInput>
  }

  export type ConfigurationsUpdateWithWhereUniqueWithoutDeleted_configurationsInput = {
    where: ConfigurationsWhereUniqueInput
    data: XOR<ConfigurationsUpdateWithoutDeleted_configurationsInput, ConfigurationsUncheckedUpdateWithoutDeleted_configurationsInput>
  }

  export type ConfigurationsUpdateManyWithWhereWithoutDeleted_configurationsInput = {
    where: ConfigurationsScalarWhereInput
    data: XOR<ConfigurationsUpdateManyMutationInput, ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsInput>
  }

  export type FinancialYearUpsertWithWhereUniqueWithoutCreatedInput = {
    where: FinancialYearWhereUniqueInput
    update: XOR<FinancialYearUpdateWithoutCreatedInput, FinancialYearUncheckedUpdateWithoutCreatedInput>
    create: XOR<FinancialYearCreateWithoutCreatedInput, FinancialYearUncheckedCreateWithoutCreatedInput>
  }

  export type FinancialYearUpdateWithWhereUniqueWithoutCreatedInput = {
    where: FinancialYearWhereUniqueInput
    data: XOR<FinancialYearUpdateWithoutCreatedInput, FinancialYearUncheckedUpdateWithoutCreatedInput>
  }

  export type FinancialYearUpdateManyWithWhereWithoutCreatedInput = {
    where: FinancialYearScalarWhereInput
    data: XOR<FinancialYearUpdateManyMutationInput, FinancialYearUncheckedUpdateManyWithoutCreatedInput>
  }

  export type FinancialYearScalarWhereInput = {
    AND?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
    OR?: FinancialYearScalarWhereInput[]
    NOT?: FinancialYearScalarWhereInput | FinancialYearScalarWhereInput[]
    id?: IntFilter<"FinancialYear"> | number
    uuid?: StringFilter<"FinancialYear"> | string
    name?: StringFilter<"FinancialYear"> | string
    code?: StringFilter<"FinancialYear"> | string
    is_freezed?: BoolFilter<"FinancialYear"> | boolean
    start_date?: DateTimeFilter<"FinancialYear"> | Date | string
    end_date?: DateTimeFilter<"FinancialYear"> | Date | string
    status_id?: IntFilter<"FinancialYear"> | number
    company_id?: IntFilter<"FinancialYear"> | number
    created_by?: IntNullableFilter<"FinancialYear"> | number | null
    updated_by?: IntNullableFilter<"FinancialYear"> | number | null
    deleted_by?: IntNullableFilter<"FinancialYear"> | number | null
    created_at?: DateTimeFilter<"FinancialYear"> | Date | string
    updated_at?: DateTimeFilter<"FinancialYear"> | Date | string
    deleted_at?: DateTimeNullableFilter<"FinancialYear"> | Date | string | null
  }

  export type FinancialYearUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: FinancialYearWhereUniqueInput
    update: XOR<FinancialYearUpdateWithoutUpdatedInput, FinancialYearUncheckedUpdateWithoutUpdatedInput>
    create: XOR<FinancialYearCreateWithoutUpdatedInput, FinancialYearUncheckedCreateWithoutUpdatedInput>
  }

  export type FinancialYearUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: FinancialYearWhereUniqueInput
    data: XOR<FinancialYearUpdateWithoutUpdatedInput, FinancialYearUncheckedUpdateWithoutUpdatedInput>
  }

  export type FinancialYearUpdateManyWithWhereWithoutUpdatedInput = {
    where: FinancialYearScalarWhereInput
    data: XOR<FinancialYearUpdateManyMutationInput, FinancialYearUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type FinancialYearUpsertWithWhereUniqueWithoutDeletedInput = {
    where: FinancialYearWhereUniqueInput
    update: XOR<FinancialYearUpdateWithoutDeletedInput, FinancialYearUncheckedUpdateWithoutDeletedInput>
    create: XOR<FinancialYearCreateWithoutDeletedInput, FinancialYearUncheckedCreateWithoutDeletedInput>
  }

  export type FinancialYearUpdateWithWhereUniqueWithoutDeletedInput = {
    where: FinancialYearWhereUniqueInput
    data: XOR<FinancialYearUpdateWithoutDeletedInput, FinancialYearUncheckedUpdateWithoutDeletedInput>
  }

  export type FinancialYearUpdateManyWithWhereWithoutDeletedInput = {
    where: FinancialYearScalarWhereInput
    data: XOR<FinancialYearUpdateManyMutationInput, FinancialYearUncheckedUpdateManyWithoutDeletedInput>
  }

  export type DocumentSequenceUpsertWithWhereUniqueWithoutCreatedInput = {
    where: DocumentSequenceWhereUniqueInput
    update: XOR<DocumentSequenceUpdateWithoutCreatedInput, DocumentSequenceUncheckedUpdateWithoutCreatedInput>
    create: XOR<DocumentSequenceCreateWithoutCreatedInput, DocumentSequenceUncheckedCreateWithoutCreatedInput>
  }

  export type DocumentSequenceUpdateWithWhereUniqueWithoutCreatedInput = {
    where: DocumentSequenceWhereUniqueInput
    data: XOR<DocumentSequenceUpdateWithoutCreatedInput, DocumentSequenceUncheckedUpdateWithoutCreatedInput>
  }

  export type DocumentSequenceUpdateManyWithWhereWithoutCreatedInput = {
    where: DocumentSequenceScalarWhereInput
    data: XOR<DocumentSequenceUpdateManyMutationInput, DocumentSequenceUncheckedUpdateManyWithoutCreatedInput>
  }

  export type DocumentSequenceScalarWhereInput = {
    AND?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
    OR?: DocumentSequenceScalarWhereInput[]
    NOT?: DocumentSequenceScalarWhereInput | DocumentSequenceScalarWhereInput[]
    id?: IntFilter<"DocumentSequence"> | number
    uuid?: StringFilter<"DocumentSequence"> | string
    module_name?: StringFilter<"DocumentSequence"> | string
    financial_year_id?: IntNullableFilter<"DocumentSequence"> | number | null
    current_sequence_no?: IntFilter<"DocumentSequence"> | number
    start_sequence_no?: IntFilter<"DocumentSequence"> | number
    end_sequence_no?: IntFilter<"DocumentSequence"> | number
    sequence_length?: IntFilter<"DocumentSequence"> | number
    status_id?: IntFilter<"DocumentSequence"> | number
    code_format?: StringNullableFilter<"DocumentSequence"> | string | null
    company_id?: IntFilter<"DocumentSequence"> | number
    created_by?: IntNullableFilter<"DocumentSequence"> | number | null
    updated_by?: IntNullableFilter<"DocumentSequence"> | number | null
    deleted_by?: IntNullableFilter<"DocumentSequence"> | number | null
    created_at?: DateTimeFilter<"DocumentSequence"> | Date | string
    updated_at?: DateTimeFilter<"DocumentSequence"> | Date | string
    deleted_at?: DateTimeNullableFilter<"DocumentSequence"> | Date | string | null
  }

  export type DocumentSequenceUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: DocumentSequenceWhereUniqueInput
    update: XOR<DocumentSequenceUpdateWithoutUpdatedInput, DocumentSequenceUncheckedUpdateWithoutUpdatedInput>
    create: XOR<DocumentSequenceCreateWithoutUpdatedInput, DocumentSequenceUncheckedCreateWithoutUpdatedInput>
  }

  export type DocumentSequenceUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: DocumentSequenceWhereUniqueInput
    data: XOR<DocumentSequenceUpdateWithoutUpdatedInput, DocumentSequenceUncheckedUpdateWithoutUpdatedInput>
  }

  export type DocumentSequenceUpdateManyWithWhereWithoutUpdatedInput = {
    where: DocumentSequenceScalarWhereInput
    data: XOR<DocumentSequenceUpdateManyMutationInput, DocumentSequenceUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type DocumentSequenceUpsertWithWhereUniqueWithoutDeletedInput = {
    where: DocumentSequenceWhereUniqueInput
    update: XOR<DocumentSequenceUpdateWithoutDeletedInput, DocumentSequenceUncheckedUpdateWithoutDeletedInput>
    create: XOR<DocumentSequenceCreateWithoutDeletedInput, DocumentSequenceUncheckedCreateWithoutDeletedInput>
  }

  export type DocumentSequenceUpdateWithWhereUniqueWithoutDeletedInput = {
    where: DocumentSequenceWhereUniqueInput
    data: XOR<DocumentSequenceUpdateWithoutDeletedInput, DocumentSequenceUncheckedUpdateWithoutDeletedInput>
  }

  export type DocumentSequenceUpdateManyWithWhereWithoutDeletedInput = {
    where: DocumentSequenceScalarWhereInput
    data: XOR<DocumentSequenceUpdateManyMutationInput, DocumentSequenceUncheckedUpdateManyWithoutDeletedInput>
  }

  export type DeviceRegistrationUpsertWithWhereUniqueWithoutCreated_device_registrationInput = {
    where: DeviceRegistrationWhereUniqueInput
    update: XOR<DeviceRegistrationUpdateWithoutCreated_device_registrationInput, DeviceRegistrationUncheckedUpdateWithoutCreated_device_registrationInput>
    create: XOR<DeviceRegistrationCreateWithoutCreated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutCreated_device_registrationInput>
  }

  export type DeviceRegistrationUpdateWithWhereUniqueWithoutCreated_device_registrationInput = {
    where: DeviceRegistrationWhereUniqueInput
    data: XOR<DeviceRegistrationUpdateWithoutCreated_device_registrationInput, DeviceRegistrationUncheckedUpdateWithoutCreated_device_registrationInput>
  }

  export type DeviceRegistrationUpdateManyWithWhereWithoutCreated_device_registrationInput = {
    where: DeviceRegistrationScalarWhereInput
    data: XOR<DeviceRegistrationUpdateManyMutationInput, DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationInput>
  }

  export type DeviceRegistrationScalarWhereInput = {
    AND?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
    OR?: DeviceRegistrationScalarWhereInput[]
    NOT?: DeviceRegistrationScalarWhereInput | DeviceRegistrationScalarWhereInput[]
    id?: IntFilter<"DeviceRegistration"> | number
    uuid?: StringFilter<"DeviceRegistration"> | string
    company_id?: IntFilter<"DeviceRegistration"> | number
    device_name?: StringFilter<"DeviceRegistration"> | string
    device_unique_id?: StringFilter<"DeviceRegistration"> | string
    user_id?: IntFilter<"DeviceRegistration"> | number
    status_id?: IntFilter<"DeviceRegistration"> | number
    created_by?: IntFilter<"DeviceRegistration"> | number
    created_at?: DateTimeFilter<"DeviceRegistration"> | Date | string
    updated_by?: IntNullableFilter<"DeviceRegistration"> | number | null
    updated_at?: DateTimeFilter<"DeviceRegistration"> | Date | string
    deleted_by?: IntNullableFilter<"DeviceRegistration"> | number | null
    deleted_at?: DateTimeNullableFilter<"DeviceRegistration"> | Date | string | null
  }

  export type DeviceRegistrationUpsertWithWhereUniqueWithoutUpdated_device_registrationInput = {
    where: DeviceRegistrationWhereUniqueInput
    update: XOR<DeviceRegistrationUpdateWithoutUpdated_device_registrationInput, DeviceRegistrationUncheckedUpdateWithoutUpdated_device_registrationInput>
    create: XOR<DeviceRegistrationCreateWithoutUpdated_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutUpdated_device_registrationInput>
  }

  export type DeviceRegistrationUpdateWithWhereUniqueWithoutUpdated_device_registrationInput = {
    where: DeviceRegistrationWhereUniqueInput
    data: XOR<DeviceRegistrationUpdateWithoutUpdated_device_registrationInput, DeviceRegistrationUncheckedUpdateWithoutUpdated_device_registrationInput>
  }

  export type DeviceRegistrationUpdateManyWithWhereWithoutUpdated_device_registrationInput = {
    where: DeviceRegistrationScalarWhereInput
    data: XOR<DeviceRegistrationUpdateManyMutationInput, DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationInput>
  }

  export type DeviceRegistrationUpsertWithWhereUniqueWithoutDeleted_device_registrationInput = {
    where: DeviceRegistrationWhereUniqueInput
    update: XOR<DeviceRegistrationUpdateWithoutDeleted_device_registrationInput, DeviceRegistrationUncheckedUpdateWithoutDeleted_device_registrationInput>
    create: XOR<DeviceRegistrationCreateWithoutDeleted_device_registrationInput, DeviceRegistrationUncheckedCreateWithoutDeleted_device_registrationInput>
  }

  export type DeviceRegistrationUpdateWithWhereUniqueWithoutDeleted_device_registrationInput = {
    where: DeviceRegistrationWhereUniqueInput
    data: XOR<DeviceRegistrationUpdateWithoutDeleted_device_registrationInput, DeviceRegistrationUncheckedUpdateWithoutDeleted_device_registrationInput>
  }

  export type DeviceRegistrationUpdateManyWithWhereWithoutDeleted_device_registrationInput = {
    where: DeviceRegistrationScalarWhereInput
    data: XOR<DeviceRegistrationUpdateManyMutationInput, DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationInput>
  }

  export type DeviceRegistrationUpsertWithWhereUniqueWithoutUserInput = {
    where: DeviceRegistrationWhereUniqueInput
    update: XOR<DeviceRegistrationUpdateWithoutUserInput, DeviceRegistrationUncheckedUpdateWithoutUserInput>
    create: XOR<DeviceRegistrationCreateWithoutUserInput, DeviceRegistrationUncheckedCreateWithoutUserInput>
  }

  export type DeviceRegistrationUpdateWithWhereUniqueWithoutUserInput = {
    where: DeviceRegistrationWhereUniqueInput
    data: XOR<DeviceRegistrationUpdateWithoutUserInput, DeviceRegistrationUncheckedUpdateWithoutUserInput>
  }

  export type DeviceRegistrationUpdateManyWithWhereWithoutUserInput = {
    where: DeviceRegistrationScalarWhereInput
    data: XOR<DeviceRegistrationUpdateManyMutationInput, DeviceRegistrationUncheckedUpdateManyWithoutUserInput>
  }

  export type ImportJobUpsertWithWhereUniqueWithoutCreatedInput = {
    where: ImportJobWhereUniqueInput
    update: XOR<ImportJobUpdateWithoutCreatedInput, ImportJobUncheckedUpdateWithoutCreatedInput>
    create: XOR<ImportJobCreateWithoutCreatedInput, ImportJobUncheckedCreateWithoutCreatedInput>
  }

  export type ImportJobUpdateWithWhereUniqueWithoutCreatedInput = {
    where: ImportJobWhereUniqueInput
    data: XOR<ImportJobUpdateWithoutCreatedInput, ImportJobUncheckedUpdateWithoutCreatedInput>
  }

  export type ImportJobUpdateManyWithWhereWithoutCreatedInput = {
    where: ImportJobScalarWhereInput
    data: XOR<ImportJobUpdateManyMutationInput, ImportJobUncheckedUpdateManyWithoutCreatedInput>
  }

  export type ImportJobScalarWhereInput = {
    AND?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
    OR?: ImportJobScalarWhereInput[]
    NOT?: ImportJobScalarWhereInput | ImportJobScalarWhereInput[]
    id?: IntFilter<"ImportJob"> | number
    uuid?: StringFilter<"ImportJob"> | string
    name?: StringFilter<"ImportJob"> | string
    description?: StringNullableFilter<"ImportJob"> | string | null
    sequence_number?: StringNullableFilter<"ImportJob"> | string | null
    header_details?: StringNullableFilter<"ImportJob"> | string | null
    table_config?: StringNullableFilter<"ImportJob"> | string | null
    total_rows?: IntFilter<"ImportJob"> | number
    completed_rows?: IntFilter<"ImportJob"> | number
    error_rows?: IntFilter<"ImportJob"> | number
    batch_process_count?: IntNullableFilter<"ImportJob"> | number | null
    job_status?: StringNullableFilter<"ImportJob"> | string | null
    last_processed_row_id?: IntNullableFilter<"ImportJob"> | number | null
    status_id?: IntFilter<"ImportJob"> | number
    company_id?: IntFilter<"ImportJob"> | number
    created_by?: IntNullableFilter<"ImportJob"> | number | null
    created_at?: DateTimeFilter<"ImportJob"> | Date | string
    updated_by?: IntNullableFilter<"ImportJob"> | number | null
    updated_at?: DateTimeFilter<"ImportJob"> | Date | string
    deleted_by?: IntNullableFilter<"ImportJob"> | number | null
    deleted_at?: DateTimeNullableFilter<"ImportJob"> | Date | string | null
  }

  export type ImportJobUpsertWithWhereUniqueWithoutUpdatedInput = {
    where: ImportJobWhereUniqueInput
    update: XOR<ImportJobUpdateWithoutUpdatedInput, ImportJobUncheckedUpdateWithoutUpdatedInput>
    create: XOR<ImportJobCreateWithoutUpdatedInput, ImportJobUncheckedCreateWithoutUpdatedInput>
  }

  export type ImportJobUpdateWithWhereUniqueWithoutUpdatedInput = {
    where: ImportJobWhereUniqueInput
    data: XOR<ImportJobUpdateWithoutUpdatedInput, ImportJobUncheckedUpdateWithoutUpdatedInput>
  }

  export type ImportJobUpdateManyWithWhereWithoutUpdatedInput = {
    where: ImportJobScalarWhereInput
    data: XOR<ImportJobUpdateManyMutationInput, ImportJobUncheckedUpdateManyWithoutUpdatedInput>
  }

  export type ImportJobUpsertWithWhereUniqueWithoutDeletedInput = {
    where: ImportJobWhereUniqueInput
    update: XOR<ImportJobUpdateWithoutDeletedInput, ImportJobUncheckedUpdateWithoutDeletedInput>
    create: XOR<ImportJobCreateWithoutDeletedInput, ImportJobUncheckedCreateWithoutDeletedInput>
  }

  export type ImportJobUpdateWithWhereUniqueWithoutDeletedInput = {
    where: ImportJobWhereUniqueInput
    data: XOR<ImportJobUpdateWithoutDeletedInput, ImportJobUncheckedUpdateWithoutDeletedInput>
  }

  export type ImportJobUpdateManyWithWhereWithoutDeletedInput = {
    where: ImportJobScalarWhereInput
    data: XOR<ImportJobUpdateManyMutationInput, ImportJobUncheckedUpdateManyWithoutDeletedInput>
  }

  export type DesignationCreateWithoutUsersInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDesignationsInput
    created?: UserCreateNestedOneWithoutCreated_designationsInput
    updated?: UserCreateNestedOneWithoutUpdated_designationsInput
    deleted?: UserCreateNestedOneWithoutDeleted_designationsInput
  }

  export type DesignationUncheckedCreateWithoutUsersInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DesignationCreateOrConnectWithoutUsersInput = {
    where: DesignationWhereUniqueInput
    create: XOR<DesignationCreateWithoutUsersInput, DesignationUncheckedCreateWithoutUsersInput>
  }

  export type DepartmentCreateWithoutUsersInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDepartmentsInput
    department_head?: UserCreateNestedOneWithoutHead_departmentsInput
    created?: UserCreateNestedOneWithoutCreated_departmentsInput
    updated?: UserCreateNestedOneWithoutUpdated_departmentsInput
    deleted?: UserCreateNestedOneWithoutDeleted_departmentsInput
  }

  export type DepartmentUncheckedCreateWithoutUsersInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    department_head_id?: number | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DepartmentCreateOrConnectWithoutUsersInput = {
    where: DepartmentWhereUniqueInput
    create: XOR<DepartmentCreateWithoutUsersInput, DepartmentUncheckedCreateWithoutUsersInput>
  }

  export type UserCreateWithoutUser_detailInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUser_detailInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUser_detailInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUser_detailInput, UserUncheckedCreateWithoutUser_detailInput>
  }

  export type UserCreateWithoutCreated_user_detailsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_user_detailsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_user_detailsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_user_detailsInput, UserUncheckedCreateWithoutCreated_user_detailsInput>
  }

  export type UserCreateWithoutUpdated_user_detailsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_user_detailsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_user_detailsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_user_detailsInput, UserUncheckedCreateWithoutUpdated_user_detailsInput>
  }

  export type UserCreateWithoutDeleted_user_detailsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_user_detailsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_user_detailsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_user_detailsInput, UserUncheckedCreateWithoutDeleted_user_detailsInput>
  }

  export type DesignationUpsertWithoutUsersInput = {
    update: XOR<DesignationUpdateWithoutUsersInput, DesignationUncheckedUpdateWithoutUsersInput>
    create: XOR<DesignationCreateWithoutUsersInput, DesignationUncheckedCreateWithoutUsersInput>
    where?: DesignationWhereInput
  }

  export type DesignationUpdateToOneWithWhereWithoutUsersInput = {
    where?: DesignationWhereInput
    data: XOR<DesignationUpdateWithoutUsersInput, DesignationUncheckedUpdateWithoutUsersInput>
  }

  export type DesignationUpdateWithoutUsersInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDesignationsNestedInput
    created?: UserUpdateOneWithoutCreated_designationsNestedInput
    updated?: UserUpdateOneWithoutUpdated_designationsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_designationsNestedInput
  }

  export type DesignationUncheckedUpdateWithoutUsersInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DepartmentUpsertWithoutUsersInput = {
    update: XOR<DepartmentUpdateWithoutUsersInput, DepartmentUncheckedUpdateWithoutUsersInput>
    create: XOR<DepartmentCreateWithoutUsersInput, DepartmentUncheckedCreateWithoutUsersInput>
    where?: DepartmentWhereInput
  }

  export type DepartmentUpdateToOneWithWhereWithoutUsersInput = {
    where?: DepartmentWhereInput
    data: XOR<DepartmentUpdateWithoutUsersInput, DepartmentUncheckedUpdateWithoutUsersInput>
  }

  export type DepartmentUpdateWithoutUsersInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDepartmentsNestedInput
    department_head?: UserUpdateOneWithoutHead_departmentsNestedInput
    created?: UserUpdateOneWithoutCreated_departmentsNestedInput
    updated?: UserUpdateOneWithoutUpdated_departmentsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_departmentsNestedInput
  }

  export type DepartmentUncheckedUpdateWithoutUsersInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserUpsertWithoutUser_detailInput = {
    update: XOR<UserUpdateWithoutUser_detailInput, UserUncheckedUpdateWithoutUser_detailInput>
    create: XOR<UserCreateWithoutUser_detailInput, UserUncheckedCreateWithoutUser_detailInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUser_detailInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUser_detailInput, UserUncheckedUpdateWithoutUser_detailInput>
  }

  export type UserUpdateWithoutUser_detailInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUser_detailInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutCreated_user_detailsInput = {
    update: XOR<UserUpdateWithoutCreated_user_detailsInput, UserUncheckedUpdateWithoutCreated_user_detailsInput>
    create: XOR<UserCreateWithoutCreated_user_detailsInput, UserUncheckedCreateWithoutCreated_user_detailsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_user_detailsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_user_detailsInput, UserUncheckedUpdateWithoutCreated_user_detailsInput>
  }

  export type UserUpdateWithoutCreated_user_detailsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_user_detailsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_user_detailsInput = {
    update: XOR<UserUpdateWithoutUpdated_user_detailsInput, UserUncheckedUpdateWithoutUpdated_user_detailsInput>
    create: XOR<UserCreateWithoutUpdated_user_detailsInput, UserUncheckedCreateWithoutUpdated_user_detailsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_user_detailsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_user_detailsInput, UserUncheckedUpdateWithoutUpdated_user_detailsInput>
  }

  export type UserUpdateWithoutUpdated_user_detailsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_user_detailsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_user_detailsInput = {
    update: XOR<UserUpdateWithoutDeleted_user_detailsInput, UserUncheckedUpdateWithoutDeleted_user_detailsInput>
    create: XOR<UserCreateWithoutDeleted_user_detailsInput, UserUncheckedCreateWithoutDeleted_user_detailsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_user_detailsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_user_detailsInput, UserUncheckedUpdateWithoutDeleted_user_detailsInput>
  }

  export type UserUpdateWithoutDeleted_user_detailsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_user_detailsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutDesignationsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutDesignationsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutDesignationsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutDesignationsInput, StatusUncheckedCreateWithoutDesignationsInput>
  }

  export type UserDetailCreateWithoutDesignationInput = {
    code: string
    first_name: string
    last_name?: string | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    department?: DepartmentCreateNestedOneWithoutUsersInput
    user: UserCreateNestedOneWithoutUser_detailInput
    created?: UserCreateNestedOneWithoutCreated_user_detailsInput
    updated?: UserCreateNestedOneWithoutUpdated_user_detailsInput
    deleted?: UserCreateNestedOneWithoutDeleted_user_detailsInput
  }

  export type UserDetailUncheckedCreateWithoutDesignationInput = {
    id?: number
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailCreateOrConnectWithoutDesignationInput = {
    where: UserDetailWhereUniqueInput
    create: XOR<UserDetailCreateWithoutDesignationInput, UserDetailUncheckedCreateWithoutDesignationInput>
  }

  export type UserDetailCreateManyDesignationInputEnvelope = {
    data: UserDetailCreateManyDesignationInput | UserDetailCreateManyDesignationInput[]
  }

  export type UserCreateWithoutCreated_designationsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_designationsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_designationsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_designationsInput, UserUncheckedCreateWithoutCreated_designationsInput>
  }

  export type UserCreateWithoutUpdated_designationsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_designationsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_designationsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_designationsInput, UserUncheckedCreateWithoutUpdated_designationsInput>
  }

  export type UserCreateWithoutDeleted_designationsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_designationsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_designationsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_designationsInput, UserUncheckedCreateWithoutDeleted_designationsInput>
  }

  export type StatusUpsertWithoutDesignationsInput = {
    update: XOR<StatusUpdateWithoutDesignationsInput, StatusUncheckedUpdateWithoutDesignationsInput>
    create: XOR<StatusCreateWithoutDesignationsInput, StatusUncheckedCreateWithoutDesignationsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutDesignationsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutDesignationsInput, StatusUncheckedUpdateWithoutDesignationsInput>
  }

  export type StatusUpdateWithoutDesignationsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutDesignationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserDetailUpsertWithWhereUniqueWithoutDesignationInput = {
    where: UserDetailWhereUniqueInput
    update: XOR<UserDetailUpdateWithoutDesignationInput, UserDetailUncheckedUpdateWithoutDesignationInput>
    create: XOR<UserDetailCreateWithoutDesignationInput, UserDetailUncheckedCreateWithoutDesignationInput>
  }

  export type UserDetailUpdateWithWhereUniqueWithoutDesignationInput = {
    where: UserDetailWhereUniqueInput
    data: XOR<UserDetailUpdateWithoutDesignationInput, UserDetailUncheckedUpdateWithoutDesignationInput>
  }

  export type UserDetailUpdateManyWithWhereWithoutDesignationInput = {
    where: UserDetailScalarWhereInput
    data: XOR<UserDetailUpdateManyMutationInput, UserDetailUncheckedUpdateManyWithoutDesignationInput>
  }

  export type UserUpsertWithoutCreated_designationsInput = {
    update: XOR<UserUpdateWithoutCreated_designationsInput, UserUncheckedUpdateWithoutCreated_designationsInput>
    create: XOR<UserCreateWithoutCreated_designationsInput, UserUncheckedCreateWithoutCreated_designationsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_designationsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_designationsInput, UserUncheckedUpdateWithoutCreated_designationsInput>
  }

  export type UserUpdateWithoutCreated_designationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_designationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_designationsInput = {
    update: XOR<UserUpdateWithoutUpdated_designationsInput, UserUncheckedUpdateWithoutUpdated_designationsInput>
    create: XOR<UserCreateWithoutUpdated_designationsInput, UserUncheckedCreateWithoutUpdated_designationsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_designationsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_designationsInput, UserUncheckedUpdateWithoutUpdated_designationsInput>
  }

  export type UserUpdateWithoutUpdated_designationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_designationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_designationsInput = {
    update: XOR<UserUpdateWithoutDeleted_designationsInput, UserUncheckedUpdateWithoutDeleted_designationsInput>
    create: XOR<UserCreateWithoutDeleted_designationsInput, UserUncheckedCreateWithoutDeleted_designationsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_designationsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_designationsInput, UserUncheckedUpdateWithoutDeleted_designationsInput>
  }

  export type UserUpdateWithoutDeleted_designationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_designationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutDepartmentsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutDepartmentsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutDepartmentsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutDepartmentsInput, StatusUncheckedCreateWithoutDepartmentsInput>
  }

  export type UserDetailCreateWithoutDepartmentInput = {
    code: string
    first_name: string
    last_name?: string | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    designation?: DesignationCreateNestedOneWithoutUsersInput
    user: UserCreateNestedOneWithoutUser_detailInput
    created?: UserCreateNestedOneWithoutCreated_user_detailsInput
    updated?: UserCreateNestedOneWithoutUpdated_user_detailsInput
    deleted?: UserCreateNestedOneWithoutDeleted_user_detailsInput
  }

  export type UserDetailUncheckedCreateWithoutDepartmentInput = {
    id?: number
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailCreateOrConnectWithoutDepartmentInput = {
    where: UserDetailWhereUniqueInput
    create: XOR<UserDetailCreateWithoutDepartmentInput, UserDetailUncheckedCreateWithoutDepartmentInput>
  }

  export type UserDetailCreateManyDepartmentInputEnvelope = {
    data: UserDetailCreateManyDepartmentInput | UserDetailCreateManyDepartmentInput[]
  }

  export type UserCreateWithoutHead_departmentsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutHead_departmentsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutHead_departmentsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutHead_departmentsInput, UserUncheckedCreateWithoutHead_departmentsInput>
  }

  export type UserCreateWithoutCreated_departmentsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_departmentsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_departmentsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_departmentsInput, UserUncheckedCreateWithoutCreated_departmentsInput>
  }

  export type UserCreateWithoutUpdated_departmentsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_departmentsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_departmentsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_departmentsInput, UserUncheckedCreateWithoutUpdated_departmentsInput>
  }

  export type UserCreateWithoutDeleted_departmentsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_departmentsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_departmentsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_departmentsInput, UserUncheckedCreateWithoutDeleted_departmentsInput>
  }

  export type StatusUpsertWithoutDepartmentsInput = {
    update: XOR<StatusUpdateWithoutDepartmentsInput, StatusUncheckedUpdateWithoutDepartmentsInput>
    create: XOR<StatusCreateWithoutDepartmentsInput, StatusUncheckedCreateWithoutDepartmentsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutDepartmentsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutDepartmentsInput, StatusUncheckedUpdateWithoutDepartmentsInput>
  }

  export type StatusUpdateWithoutDepartmentsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutDepartmentsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserDetailUpsertWithWhereUniqueWithoutDepartmentInput = {
    where: UserDetailWhereUniqueInput
    update: XOR<UserDetailUpdateWithoutDepartmentInput, UserDetailUncheckedUpdateWithoutDepartmentInput>
    create: XOR<UserDetailCreateWithoutDepartmentInput, UserDetailUncheckedCreateWithoutDepartmentInput>
  }

  export type UserDetailUpdateWithWhereUniqueWithoutDepartmentInput = {
    where: UserDetailWhereUniqueInput
    data: XOR<UserDetailUpdateWithoutDepartmentInput, UserDetailUncheckedUpdateWithoutDepartmentInput>
  }

  export type UserDetailUpdateManyWithWhereWithoutDepartmentInput = {
    where: UserDetailScalarWhereInput
    data: XOR<UserDetailUpdateManyMutationInput, UserDetailUncheckedUpdateManyWithoutDepartmentInput>
  }

  export type UserUpsertWithoutHead_departmentsInput = {
    update: XOR<UserUpdateWithoutHead_departmentsInput, UserUncheckedUpdateWithoutHead_departmentsInput>
    create: XOR<UserCreateWithoutHead_departmentsInput, UserUncheckedCreateWithoutHead_departmentsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutHead_departmentsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutHead_departmentsInput, UserUncheckedUpdateWithoutHead_departmentsInput>
  }

  export type UserUpdateWithoutHead_departmentsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutHead_departmentsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutCreated_departmentsInput = {
    update: XOR<UserUpdateWithoutCreated_departmentsInput, UserUncheckedUpdateWithoutCreated_departmentsInput>
    create: XOR<UserCreateWithoutCreated_departmentsInput, UserUncheckedCreateWithoutCreated_departmentsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_departmentsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_departmentsInput, UserUncheckedUpdateWithoutCreated_departmentsInput>
  }

  export type UserUpdateWithoutCreated_departmentsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_departmentsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_departmentsInput = {
    update: XOR<UserUpdateWithoutUpdated_departmentsInput, UserUncheckedUpdateWithoutUpdated_departmentsInput>
    create: XOR<UserCreateWithoutUpdated_departmentsInput, UserUncheckedCreateWithoutUpdated_departmentsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_departmentsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_departmentsInput, UserUncheckedUpdateWithoutUpdated_departmentsInput>
  }

  export type UserUpdateWithoutUpdated_departmentsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_departmentsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_departmentsInput = {
    update: XOR<UserUpdateWithoutDeleted_departmentsInput, UserUncheckedUpdateWithoutDeleted_departmentsInput>
    create: XOR<UserCreateWithoutDeleted_departmentsInput, UserUncheckedCreateWithoutDeleted_departmentsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_departmentsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_departmentsInput, UserUncheckedUpdateWithoutDeleted_departmentsInput>
  }

  export type UserUpdateWithoutDeleted_departmentsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_departmentsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutRequest_logsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutRequest_logsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutRequest_logsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutRequest_logsInput, StatusUncheckedCreateWithoutRequest_logsInput>
  }

  export type UserCreateWithoutRequest_logsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutRequest_logsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutRequest_logsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutRequest_logsInput, UserUncheckedCreateWithoutRequest_logsInput>
  }

  export type StatusUpsertWithoutRequest_logsInput = {
    update: XOR<StatusUpdateWithoutRequest_logsInput, StatusUncheckedUpdateWithoutRequest_logsInput>
    create: XOR<StatusCreateWithoutRequest_logsInput, StatusUncheckedCreateWithoutRequest_logsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutRequest_logsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutRequest_logsInput, StatusUncheckedUpdateWithoutRequest_logsInput>
  }

  export type StatusUpdateWithoutRequest_logsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutRequest_logsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserUpsertWithoutRequest_logsInput = {
    update: XOR<UserUpdateWithoutRequest_logsInput, UserUncheckedUpdateWithoutRequest_logsInput>
    create: XOR<UserCreateWithoutRequest_logsInput, UserUncheckedCreateWithoutRequest_logsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutRequest_logsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutRequest_logsInput, UserUncheckedUpdateWithoutRequest_logsInput>
  }

  export type UserUpdateWithoutRequest_logsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutRequest_logsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutFinancial_yearsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutFinancial_yearsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutFinancial_yearsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutFinancial_yearsInput, StatusUncheckedCreateWithoutFinancial_yearsInput>
  }

  export type DocumentSequenceCreateWithoutFinanicial_yearInput = {
    uuid?: string
    module_name: string
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    code_format?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutDocument_sequencesInput
    created?: UserCreateNestedOneWithoutCreated_doc_sequencesInput
    updated?: UserCreateNestedOneWithoutUpdated_doc_sequencesInput
    deleted?: UserCreateNestedOneWithoutDeleted_doc_sequencesInput
  }

  export type DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput = {
    id?: number
    uuid?: string
    module_name: string
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceCreateOrConnectWithoutFinanicial_yearInput = {
    where: DocumentSequenceWhereUniqueInput
    create: XOR<DocumentSequenceCreateWithoutFinanicial_yearInput, DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput>
  }

  export type DocumentSequenceCreateManyFinanicial_yearInputEnvelope = {
    data: DocumentSequenceCreateManyFinanicial_yearInput | DocumentSequenceCreateManyFinanicial_yearInput[]
  }

  export type UserCreateWithoutCreated_fin_yearsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_fin_yearsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_fin_yearsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_fin_yearsInput, UserUncheckedCreateWithoutCreated_fin_yearsInput>
  }

  export type UserCreateWithoutUpdated_fin_yearsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_fin_yearsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_fin_yearsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_fin_yearsInput, UserUncheckedCreateWithoutUpdated_fin_yearsInput>
  }

  export type UserCreateWithoutDeleted_fin_yearsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_fin_yearsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_fin_yearsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_fin_yearsInput, UserUncheckedCreateWithoutDeleted_fin_yearsInput>
  }

  export type StatusUpsertWithoutFinancial_yearsInput = {
    update: XOR<StatusUpdateWithoutFinancial_yearsInput, StatusUncheckedUpdateWithoutFinancial_yearsInput>
    create: XOR<StatusCreateWithoutFinancial_yearsInput, StatusUncheckedCreateWithoutFinancial_yearsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutFinancial_yearsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutFinancial_yearsInput, StatusUncheckedUpdateWithoutFinancial_yearsInput>
  }

  export type StatusUpdateWithoutFinancial_yearsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutFinancial_yearsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type DocumentSequenceUpsertWithWhereUniqueWithoutFinanicial_yearInput = {
    where: DocumentSequenceWhereUniqueInput
    update: XOR<DocumentSequenceUpdateWithoutFinanicial_yearInput, DocumentSequenceUncheckedUpdateWithoutFinanicial_yearInput>
    create: XOR<DocumentSequenceCreateWithoutFinanicial_yearInput, DocumentSequenceUncheckedCreateWithoutFinanicial_yearInput>
  }

  export type DocumentSequenceUpdateWithWhereUniqueWithoutFinanicial_yearInput = {
    where: DocumentSequenceWhereUniqueInput
    data: XOR<DocumentSequenceUpdateWithoutFinanicial_yearInput, DocumentSequenceUncheckedUpdateWithoutFinanicial_yearInput>
  }

  export type DocumentSequenceUpdateManyWithWhereWithoutFinanicial_yearInput = {
    where: DocumentSequenceScalarWhereInput
    data: XOR<DocumentSequenceUpdateManyMutationInput, DocumentSequenceUncheckedUpdateManyWithoutFinanicial_yearInput>
  }

  export type UserUpsertWithoutCreated_fin_yearsInput = {
    update: XOR<UserUpdateWithoutCreated_fin_yearsInput, UserUncheckedUpdateWithoutCreated_fin_yearsInput>
    create: XOR<UserCreateWithoutCreated_fin_yearsInput, UserUncheckedCreateWithoutCreated_fin_yearsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_fin_yearsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_fin_yearsInput, UserUncheckedUpdateWithoutCreated_fin_yearsInput>
  }

  export type UserUpdateWithoutCreated_fin_yearsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_fin_yearsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_fin_yearsInput = {
    update: XOR<UserUpdateWithoutUpdated_fin_yearsInput, UserUncheckedUpdateWithoutUpdated_fin_yearsInput>
    create: XOR<UserCreateWithoutUpdated_fin_yearsInput, UserUncheckedCreateWithoutUpdated_fin_yearsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_fin_yearsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_fin_yearsInput, UserUncheckedUpdateWithoutUpdated_fin_yearsInput>
  }

  export type UserUpdateWithoutUpdated_fin_yearsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_fin_yearsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_fin_yearsInput = {
    update: XOR<UserUpdateWithoutDeleted_fin_yearsInput, UserUncheckedUpdateWithoutDeleted_fin_yearsInput>
    create: XOR<UserCreateWithoutDeleted_fin_yearsInput, UserUncheckedCreateWithoutDeleted_fin_yearsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_fin_yearsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_fin_yearsInput, UserUncheckedUpdateWithoutDeleted_fin_yearsInput>
  }

  export type UserUpdateWithoutDeleted_fin_yearsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_fin_yearsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutDocument_sequencesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutDocument_sequencesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutDocument_sequencesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutDocument_sequencesInput, StatusUncheckedCreateWithoutDocument_sequencesInput>
  }

  export type FinancialYearCreateWithoutDocument_sequenceInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutFinancial_yearsInput
    created?: UserCreateNestedOneWithoutCreated_fin_yearsInput
    updated?: UserCreateNestedOneWithoutUpdated_fin_yearsInput
    deleted?: UserCreateNestedOneWithoutDeleted_fin_yearsInput
  }

  export type FinancialYearUncheckedCreateWithoutDocument_sequenceInput = {
    id?: number
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type FinancialYearCreateOrConnectWithoutDocument_sequenceInput = {
    where: FinancialYearWhereUniqueInput
    create: XOR<FinancialYearCreateWithoutDocument_sequenceInput, FinancialYearUncheckedCreateWithoutDocument_sequenceInput>
  }

  export type UserCreateWithoutCreated_doc_sequencesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_doc_sequencesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_doc_sequencesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_doc_sequencesInput, UserUncheckedCreateWithoutCreated_doc_sequencesInput>
  }

  export type UserCreateWithoutUpdated_doc_sequencesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_doc_sequencesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_doc_sequencesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_doc_sequencesInput, UserUncheckedCreateWithoutUpdated_doc_sequencesInput>
  }

  export type UserCreateWithoutDeleted_doc_sequencesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_doc_sequencesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_doc_sequencesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_doc_sequencesInput, UserUncheckedCreateWithoutDeleted_doc_sequencesInput>
  }

  export type StatusUpsertWithoutDocument_sequencesInput = {
    update: XOR<StatusUpdateWithoutDocument_sequencesInput, StatusUncheckedUpdateWithoutDocument_sequencesInput>
    create: XOR<StatusCreateWithoutDocument_sequencesInput, StatusUncheckedCreateWithoutDocument_sequencesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutDocument_sequencesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutDocument_sequencesInput, StatusUncheckedUpdateWithoutDocument_sequencesInput>
  }

  export type StatusUpdateWithoutDocument_sequencesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutDocument_sequencesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type FinancialYearUpsertWithoutDocument_sequenceInput = {
    update: XOR<FinancialYearUpdateWithoutDocument_sequenceInput, FinancialYearUncheckedUpdateWithoutDocument_sequenceInput>
    create: XOR<FinancialYearCreateWithoutDocument_sequenceInput, FinancialYearUncheckedCreateWithoutDocument_sequenceInput>
    where?: FinancialYearWhereInput
  }

  export type FinancialYearUpdateToOneWithWhereWithoutDocument_sequenceInput = {
    where?: FinancialYearWhereInput
    data: XOR<FinancialYearUpdateWithoutDocument_sequenceInput, FinancialYearUncheckedUpdateWithoutDocument_sequenceInput>
  }

  export type FinancialYearUpdateWithoutDocument_sequenceInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutFinancial_yearsNestedInput
    created?: UserUpdateOneWithoutCreated_fin_yearsNestedInput
    updated?: UserUpdateOneWithoutUpdated_fin_yearsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_fin_yearsNestedInput
  }

  export type FinancialYearUncheckedUpdateWithoutDocument_sequenceInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserUpsertWithoutCreated_doc_sequencesInput = {
    update: XOR<UserUpdateWithoutCreated_doc_sequencesInput, UserUncheckedUpdateWithoutCreated_doc_sequencesInput>
    create: XOR<UserCreateWithoutCreated_doc_sequencesInput, UserUncheckedCreateWithoutCreated_doc_sequencesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_doc_sequencesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_doc_sequencesInput, UserUncheckedUpdateWithoutCreated_doc_sequencesInput>
  }

  export type UserUpdateWithoutCreated_doc_sequencesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_doc_sequencesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_doc_sequencesInput = {
    update: XOR<UserUpdateWithoutUpdated_doc_sequencesInput, UserUncheckedUpdateWithoutUpdated_doc_sequencesInput>
    create: XOR<UserCreateWithoutUpdated_doc_sequencesInput, UserUncheckedCreateWithoutUpdated_doc_sequencesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_doc_sequencesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_doc_sequencesInput, UserUncheckedUpdateWithoutUpdated_doc_sequencesInput>
  }

  export type UserUpdateWithoutUpdated_doc_sequencesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_doc_sequencesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_doc_sequencesInput = {
    update: XOR<UserUpdateWithoutDeleted_doc_sequencesInput, UserUncheckedUpdateWithoutDeleted_doc_sequencesInput>
    create: XOR<UserCreateWithoutDeleted_doc_sequencesInput, UserUncheckedCreateWithoutDeleted_doc_sequencesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_doc_sequencesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_doc_sequencesInput, UserUncheckedUpdateWithoutDeleted_doc_sequencesInput>
  }

  export type UserUpdateWithoutDeleted_doc_sequencesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_doc_sequencesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutAudit_logsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutAudit_logsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutAudit_logsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutAudit_logsInput, StatusUncheckedCreateWithoutAudit_logsInput>
  }

  export type UserCreateWithoutAudit_logsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutAudit_logsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutAudit_logsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutAudit_logsInput, UserUncheckedCreateWithoutAudit_logsInput>
  }

  export type StatusUpsertWithoutAudit_logsInput = {
    update: XOR<StatusUpdateWithoutAudit_logsInput, StatusUncheckedUpdateWithoutAudit_logsInput>
    create: XOR<StatusCreateWithoutAudit_logsInput, StatusUncheckedCreateWithoutAudit_logsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutAudit_logsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutAudit_logsInput, StatusUncheckedUpdateWithoutAudit_logsInput>
  }

  export type StatusUpdateWithoutAudit_logsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutAudit_logsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserUpsertWithoutAudit_logsInput = {
    update: XOR<UserUpdateWithoutAudit_logsInput, UserUncheckedUpdateWithoutAudit_logsInput>
    create: XOR<UserCreateWithoutAudit_logsInput, UserUncheckedCreateWithoutAudit_logsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutAudit_logsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutAudit_logsInput, UserUncheckedUpdateWithoutAudit_logsInput>
  }

  export type UserUpdateWithoutAudit_logsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutAudit_logsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutPermissionsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutPermissionsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutPermissionsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutPermissionsInput, StatusUncheckedCreateWithoutPermissionsInput>
  }

  export type MasterEntityCreateWithoutPermissionsInput = {
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMaster_gridsInput
    line_items?: MasterEntityLineItemCreateNestedManyWithoutMaster_gridInput
    menus?: MenuItemsCreateNestedManyWithoutEntityInput
  }

  export type MasterEntityUncheckedCreateWithoutPermissionsInput = {
    id?: number
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutMaster_gridInput
    menus?: MenuItemsUncheckedCreateNestedManyWithoutEntityInput
  }

  export type MasterEntityCreateOrConnectWithoutPermissionsInput = {
    where: MasterEntityWhereUniqueInput
    create: XOR<MasterEntityCreateWithoutPermissionsInput, MasterEntityUncheckedCreateWithoutPermissionsInput>
  }

  export type RolePermissionsCreateWithoutPermissionInput = {
    role: RoleCreateNestedOneWithoutPermissionsInput
  }

  export type RolePermissionsUncheckedCreateWithoutPermissionInput = {
    role_id: number
  }

  export type RolePermissionsCreateOrConnectWithoutPermissionInput = {
    where: RolePermissionsWhereUniqueInput
    create: XOR<RolePermissionsCreateWithoutPermissionInput, RolePermissionsUncheckedCreateWithoutPermissionInput>
  }

  export type RolePermissionsCreateManyPermissionInputEnvelope = {
    data: RolePermissionsCreateManyPermissionInput | RolePermissionsCreateManyPermissionInput[]
  }

  export type UserPermissionsCreateWithoutPermissionInput = {
    user: UserCreateNestedOneWithoutPermissionsInput
  }

  export type UserPermissionsUncheckedCreateWithoutPermissionInput = {
    user_id: number
  }

  export type UserPermissionsCreateOrConnectWithoutPermissionInput = {
    where: UserPermissionsWhereUniqueInput
    create: XOR<UserPermissionsCreateWithoutPermissionInput, UserPermissionsUncheckedCreateWithoutPermissionInput>
  }

  export type UserPermissionsCreateManyPermissionInputEnvelope = {
    data: UserPermissionsCreateManyPermissionInput | UserPermissionsCreateManyPermissionInput[]
  }

  export type MenuItemsCreateWithoutPermissionInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenuitemsInput
    menus?: MenusCreateNestedOneWithoutMenuitemsInput
    entity?: MasterEntityCreateNestedOneWithoutMenusInput
    parent?: MenuItemsCreateNestedOneWithoutChildrenInput
    children?: MenuItemsCreateNestedManyWithoutParentInput
    created?: UserCreateNestedOneWithoutCreated_menu_itemsInput
    updated?: UserCreateNestedOneWithoutUpdated_menu_itemsInput
    deleted?: UserCreateNestedOneWithoutDeleted_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateWithoutPermissionInput = {
    id?: number
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    children?: MenuItemsUncheckedCreateNestedManyWithoutParentInput
  }

  export type MenuItemsCreateOrConnectWithoutPermissionInput = {
    where: MenuItemsWhereUniqueInput
    create: XOR<MenuItemsCreateWithoutPermissionInput, MenuItemsUncheckedCreateWithoutPermissionInput>
  }

  export type MenuItemsCreateManyPermissionInputEnvelope = {
    data: MenuItemsCreateManyPermissionInput | MenuItemsCreateManyPermissionInput[]
  }

  export type StatusUpsertWithoutPermissionsInput = {
    update: XOR<StatusUpdateWithoutPermissionsInput, StatusUncheckedUpdateWithoutPermissionsInput>
    create: XOR<StatusCreateWithoutPermissionsInput, StatusUncheckedCreateWithoutPermissionsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutPermissionsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutPermissionsInput, StatusUncheckedUpdateWithoutPermissionsInput>
  }

  export type StatusUpdateWithoutPermissionsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutPermissionsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type MasterEntityUpsertWithoutPermissionsInput = {
    update: XOR<MasterEntityUpdateWithoutPermissionsInput, MasterEntityUncheckedUpdateWithoutPermissionsInput>
    create: XOR<MasterEntityCreateWithoutPermissionsInput, MasterEntityUncheckedCreateWithoutPermissionsInput>
    where?: MasterEntityWhereInput
  }

  export type MasterEntityUpdateToOneWithWhereWithoutPermissionsInput = {
    where?: MasterEntityWhereInput
    data: XOR<MasterEntityUpdateWithoutPermissionsInput, MasterEntityUncheckedUpdateWithoutPermissionsInput>
  }

  export type MasterEntityUpdateWithoutPermissionsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMaster_gridsNestedInput
    line_items?: MasterEntityLineItemUpdateManyWithoutMaster_gridNestedInput
    menus?: MenuItemsUpdateManyWithoutEntityNestedInput
  }

  export type MasterEntityUncheckedUpdateWithoutPermissionsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutMaster_gridNestedInput
    menus?: MenuItemsUncheckedUpdateManyWithoutEntityNestedInput
  }

  export type RolePermissionsUpsertWithWhereUniqueWithoutPermissionInput = {
    where: RolePermissionsWhereUniqueInput
    update: XOR<RolePermissionsUpdateWithoutPermissionInput, RolePermissionsUncheckedUpdateWithoutPermissionInput>
    create: XOR<RolePermissionsCreateWithoutPermissionInput, RolePermissionsUncheckedCreateWithoutPermissionInput>
  }

  export type RolePermissionsUpdateWithWhereUniqueWithoutPermissionInput = {
    where: RolePermissionsWhereUniqueInput
    data: XOR<RolePermissionsUpdateWithoutPermissionInput, RolePermissionsUncheckedUpdateWithoutPermissionInput>
  }

  export type RolePermissionsUpdateManyWithWhereWithoutPermissionInput = {
    where: RolePermissionsScalarWhereInput
    data: XOR<RolePermissionsUpdateManyMutationInput, RolePermissionsUncheckedUpdateManyWithoutPermissionInput>
  }

  export type RolePermissionsScalarWhereInput = {
    AND?: RolePermissionsScalarWhereInput | RolePermissionsScalarWhereInput[]
    OR?: RolePermissionsScalarWhereInput[]
    NOT?: RolePermissionsScalarWhereInput | RolePermissionsScalarWhereInput[]
    role_id?: IntFilter<"RolePermissions"> | number
    permission_id?: IntFilter<"RolePermissions"> | number
    company_id?: IntFilter<"RolePermissions"> | number
  }

  export type UserPermissionsUpsertWithWhereUniqueWithoutPermissionInput = {
    where: UserPermissionsWhereUniqueInput
    update: XOR<UserPermissionsUpdateWithoutPermissionInput, UserPermissionsUncheckedUpdateWithoutPermissionInput>
    create: XOR<UserPermissionsCreateWithoutPermissionInput, UserPermissionsUncheckedCreateWithoutPermissionInput>
  }

  export type UserPermissionsUpdateWithWhereUniqueWithoutPermissionInput = {
    where: UserPermissionsWhereUniqueInput
    data: XOR<UserPermissionsUpdateWithoutPermissionInput, UserPermissionsUncheckedUpdateWithoutPermissionInput>
  }

  export type UserPermissionsUpdateManyWithWhereWithoutPermissionInput = {
    where: UserPermissionsScalarWhereInput
    data: XOR<UserPermissionsUpdateManyMutationInput, UserPermissionsUncheckedUpdateManyWithoutPermissionInput>
  }

  export type MenuItemsUpsertWithWhereUniqueWithoutPermissionInput = {
    where: MenuItemsWhereUniqueInput
    update: XOR<MenuItemsUpdateWithoutPermissionInput, MenuItemsUncheckedUpdateWithoutPermissionInput>
    create: XOR<MenuItemsCreateWithoutPermissionInput, MenuItemsUncheckedCreateWithoutPermissionInput>
  }

  export type MenuItemsUpdateWithWhereUniqueWithoutPermissionInput = {
    where: MenuItemsWhereUniqueInput
    data: XOR<MenuItemsUpdateWithoutPermissionInput, MenuItemsUncheckedUpdateWithoutPermissionInput>
  }

  export type MenuItemsUpdateManyWithWhereWithoutPermissionInput = {
    where: MenuItemsScalarWhereInput
    data: XOR<MenuItemsUpdateManyMutationInput, MenuItemsUncheckedUpdateManyWithoutPermissionInput>
  }

  export type StatusCreateWithoutRolesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutRolesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutRolesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutRolesInput, StatusUncheckedCreateWithoutRolesInput>
  }

  export type RolePermissionsCreateWithoutRoleInput = {
    permission: PermissionsCreateNestedOneWithoutRolesInput
  }

  export type RolePermissionsUncheckedCreateWithoutRoleInput = {
    permission_id: number
  }

  export type RolePermissionsCreateOrConnectWithoutRoleInput = {
    where: RolePermissionsWhereUniqueInput
    create: XOR<RolePermissionsCreateWithoutRoleInput, RolePermissionsUncheckedCreateWithoutRoleInput>
  }

  export type RolePermissionsCreateManyRoleInputEnvelope = {
    data: RolePermissionsCreateManyRoleInput | RolePermissionsCreateManyRoleInput[]
  }

  export type UserRolesCreateWithoutRoleInput = {
    user: UserCreateNestedOneWithoutRolesInput
  }

  export type UserRolesUncheckedCreateWithoutRoleInput = {
    user_id: number
  }

  export type UserRolesCreateOrConnectWithoutRoleInput = {
    where: UserRolesWhereUniqueInput
    create: XOR<UserRolesCreateWithoutRoleInput, UserRolesUncheckedCreateWithoutRoleInput>
  }

  export type UserRolesCreateManyRoleInputEnvelope = {
    data: UserRolesCreateManyRoleInput | UserRolesCreateManyRoleInput[]
  }

  export type UserCreateWithoutCreated_rolesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_rolesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_rolesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_rolesInput, UserUncheckedCreateWithoutCreated_rolesInput>
  }

  export type UserCreateWithoutUpdated_rolesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_rolesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_rolesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_rolesInput, UserUncheckedCreateWithoutUpdated_rolesInput>
  }

  export type UserCreateWithoutDeleted_rolesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_rolesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_rolesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_rolesInput, UserUncheckedCreateWithoutDeleted_rolesInput>
  }

  export type StatusUpsertWithoutRolesInput = {
    update: XOR<StatusUpdateWithoutRolesInput, StatusUncheckedUpdateWithoutRolesInput>
    create: XOR<StatusCreateWithoutRolesInput, StatusUncheckedCreateWithoutRolesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutRolesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutRolesInput, StatusUncheckedUpdateWithoutRolesInput>
  }

  export type StatusUpdateWithoutRolesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutRolesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type RolePermissionsUpsertWithWhereUniqueWithoutRoleInput = {
    where: RolePermissionsWhereUniqueInput
    update: XOR<RolePermissionsUpdateWithoutRoleInput, RolePermissionsUncheckedUpdateWithoutRoleInput>
    create: XOR<RolePermissionsCreateWithoutRoleInput, RolePermissionsUncheckedCreateWithoutRoleInput>
  }

  export type RolePermissionsUpdateWithWhereUniqueWithoutRoleInput = {
    where: RolePermissionsWhereUniqueInput
    data: XOR<RolePermissionsUpdateWithoutRoleInput, RolePermissionsUncheckedUpdateWithoutRoleInput>
  }

  export type RolePermissionsUpdateManyWithWhereWithoutRoleInput = {
    where: RolePermissionsScalarWhereInput
    data: XOR<RolePermissionsUpdateManyMutationInput, RolePermissionsUncheckedUpdateManyWithoutRoleInput>
  }

  export type UserRolesUpsertWithWhereUniqueWithoutRoleInput = {
    where: UserRolesWhereUniqueInput
    update: XOR<UserRolesUpdateWithoutRoleInput, UserRolesUncheckedUpdateWithoutRoleInput>
    create: XOR<UserRolesCreateWithoutRoleInput, UserRolesUncheckedCreateWithoutRoleInput>
  }

  export type UserRolesUpdateWithWhereUniqueWithoutRoleInput = {
    where: UserRolesWhereUniqueInput
    data: XOR<UserRolesUpdateWithoutRoleInput, UserRolesUncheckedUpdateWithoutRoleInput>
  }

  export type UserRolesUpdateManyWithWhereWithoutRoleInput = {
    where: UserRolesScalarWhereInput
    data: XOR<UserRolesUpdateManyMutationInput, UserRolesUncheckedUpdateManyWithoutRoleInput>
  }

  export type UserUpsertWithoutCreated_rolesInput = {
    update: XOR<UserUpdateWithoutCreated_rolesInput, UserUncheckedUpdateWithoutCreated_rolesInput>
    create: XOR<UserCreateWithoutCreated_rolesInput, UserUncheckedCreateWithoutCreated_rolesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_rolesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_rolesInput, UserUncheckedUpdateWithoutCreated_rolesInput>
  }

  export type UserUpdateWithoutCreated_rolesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_rolesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_rolesInput = {
    update: XOR<UserUpdateWithoutUpdated_rolesInput, UserUncheckedUpdateWithoutUpdated_rolesInput>
    create: XOR<UserCreateWithoutUpdated_rolesInput, UserUncheckedCreateWithoutUpdated_rolesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_rolesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_rolesInput, UserUncheckedUpdateWithoutUpdated_rolesInput>
  }

  export type UserUpdateWithoutUpdated_rolesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_rolesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_rolesInput = {
    update: XOR<UserUpdateWithoutDeleted_rolesInput, UserUncheckedUpdateWithoutDeleted_rolesInput>
    create: XOR<UserCreateWithoutDeleted_rolesInput, UserUncheckedCreateWithoutDeleted_rolesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_rolesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_rolesInput, UserUncheckedUpdateWithoutDeleted_rolesInput>
  }

  export type UserUpdateWithoutDeleted_rolesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_rolesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type RoleCreateWithoutPermissionsInput = {
    uuid?: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutRolesInput
    users?: UserRolesCreateNestedManyWithoutRoleInput
    created?: UserCreateNestedOneWithoutCreated_rolesInput
    updated?: UserCreateNestedOneWithoutUpdated_rolesInput
    deleted?: UserCreateNestedOneWithoutDeleted_rolesInput
  }

  export type RoleUncheckedCreateWithoutPermissionsInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserRolesUncheckedCreateNestedManyWithoutRoleInput
  }

  export type RoleCreateOrConnectWithoutPermissionsInput = {
    where: RoleWhereUniqueInput
    create: XOR<RoleCreateWithoutPermissionsInput, RoleUncheckedCreateWithoutPermissionsInput>
  }

  export type PermissionsCreateWithoutRolesInput = {
    name: string
    slug: string
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutPermissionsInput
    entity?: MasterEntityCreateNestedOneWithoutPermissionsInput
    users?: UserPermissionsCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsUncheckedCreateWithoutRolesInput = {
    id?: number
    name: string
    slug: string
    entity_id?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    company_id: number
    created_at?: Date | string
    users?: UserPermissionsUncheckedCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsUncheckedCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsCreateOrConnectWithoutRolesInput = {
    where: PermissionsWhereUniqueInput
    create: XOR<PermissionsCreateWithoutRolesInput, PermissionsUncheckedCreateWithoutRolesInput>
  }

  export type RoleUpsertWithoutPermissionsInput = {
    update: XOR<RoleUpdateWithoutPermissionsInput, RoleUncheckedUpdateWithoutPermissionsInput>
    create: XOR<RoleCreateWithoutPermissionsInput, RoleUncheckedCreateWithoutPermissionsInput>
    where?: RoleWhereInput
  }

  export type RoleUpdateToOneWithWhereWithoutPermissionsInput = {
    where?: RoleWhereInput
    data: XOR<RoleUpdateWithoutPermissionsInput, RoleUncheckedUpdateWithoutPermissionsInput>
  }

  export type RoleUpdateWithoutPermissionsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutRolesNestedInput
    users?: UserRolesUpdateManyWithoutRoleNestedInput
    created?: UserUpdateOneWithoutCreated_rolesNestedInput
    updated?: UserUpdateOneWithoutUpdated_rolesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_rolesNestedInput
  }

  export type RoleUncheckedUpdateWithoutPermissionsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserRolesUncheckedUpdateManyWithoutRoleNestedInput
  }

  export type PermissionsUpsertWithoutRolesInput = {
    update: XOR<PermissionsUpdateWithoutRolesInput, PermissionsUncheckedUpdateWithoutRolesInput>
    create: XOR<PermissionsCreateWithoutRolesInput, PermissionsUncheckedCreateWithoutRolesInput>
    where?: PermissionsWhereInput
  }

  export type PermissionsUpdateToOneWithWhereWithoutRolesInput = {
    where?: PermissionsWhereInput
    data: XOR<PermissionsUpdateWithoutRolesInput, PermissionsUncheckedUpdateWithoutRolesInput>
  }

  export type PermissionsUpdateWithoutRolesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutPermissionsNestedInput
    entity?: MasterEntityUpdateOneWithoutPermissionsNestedInput
    users?: UserPermissionsUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUpdateManyWithoutPermissionNestedInput
  }

  export type PermissionsUncheckedUpdateWithoutRolesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    users?: UserPermissionsUncheckedUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUncheckedUpdateManyWithoutPermissionNestedInput
  }

  export type UserCreateWithoutRolesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutRolesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutRolesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutRolesInput, UserUncheckedCreateWithoutRolesInput>
  }

  export type RoleCreateWithoutUsersInput = {
    uuid?: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutRolesInput
    permissions?: RolePermissionsCreateNestedManyWithoutRoleInput
    created?: UserCreateNestedOneWithoutCreated_rolesInput
    updated?: UserCreateNestedOneWithoutUpdated_rolesInput
    deleted?: UserCreateNestedOneWithoutDeleted_rolesInput
  }

  export type RoleUncheckedCreateWithoutUsersInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: RolePermissionsUncheckedCreateNestedManyWithoutRoleInput
  }

  export type RoleCreateOrConnectWithoutUsersInput = {
    where: RoleWhereUniqueInput
    create: XOR<RoleCreateWithoutUsersInput, RoleUncheckedCreateWithoutUsersInput>
  }

  export type UserUpsertWithoutRolesInput = {
    update: XOR<UserUpdateWithoutRolesInput, UserUncheckedUpdateWithoutRolesInput>
    create: XOR<UserCreateWithoutRolesInput, UserUncheckedCreateWithoutRolesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutRolesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutRolesInput, UserUncheckedUpdateWithoutRolesInput>
  }

  export type UserUpdateWithoutRolesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutRolesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type RoleUpsertWithoutUsersInput = {
    update: XOR<RoleUpdateWithoutUsersInput, RoleUncheckedUpdateWithoutUsersInput>
    create: XOR<RoleCreateWithoutUsersInput, RoleUncheckedCreateWithoutUsersInput>
    where?: RoleWhereInput
  }

  export type RoleUpdateToOneWithWhereWithoutUsersInput = {
    where?: RoleWhereInput
    data: XOR<RoleUpdateWithoutUsersInput, RoleUncheckedUpdateWithoutUsersInput>
  }

  export type RoleUpdateWithoutUsersInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutRolesNestedInput
    permissions?: RolePermissionsUpdateManyWithoutRoleNestedInput
    created?: UserUpdateOneWithoutCreated_rolesNestedInput
    updated?: UserUpdateOneWithoutUpdated_rolesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_rolesNestedInput
  }

  export type RoleUncheckedUpdateWithoutUsersInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: RolePermissionsUncheckedUpdateManyWithoutRoleNestedInput
  }

  export type UserCreateWithoutPermissionsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutPermissionsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutPermissionsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutPermissionsInput, UserUncheckedCreateWithoutPermissionsInput>
  }

  export type PermissionsCreateWithoutUsersInput = {
    name: string
    slug: string
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutPermissionsInput
    entity?: MasterEntityCreateNestedOneWithoutPermissionsInput
    roles?: RolePermissionsCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsUncheckedCreateWithoutUsersInput = {
    id?: number
    name: string
    slug: string
    entity_id?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    company_id: number
    created_at?: Date | string
    roles?: RolePermissionsUncheckedCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsUncheckedCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsCreateOrConnectWithoutUsersInput = {
    where: PermissionsWhereUniqueInput
    create: XOR<PermissionsCreateWithoutUsersInput, PermissionsUncheckedCreateWithoutUsersInput>
  }

  export type UserUpsertWithoutPermissionsInput = {
    update: XOR<UserUpdateWithoutPermissionsInput, UserUncheckedUpdateWithoutPermissionsInput>
    create: XOR<UserCreateWithoutPermissionsInput, UserUncheckedCreateWithoutPermissionsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutPermissionsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutPermissionsInput, UserUncheckedUpdateWithoutPermissionsInput>
  }

  export type UserUpdateWithoutPermissionsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutPermissionsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type PermissionsUpsertWithoutUsersInput = {
    update: XOR<PermissionsUpdateWithoutUsersInput, PermissionsUncheckedUpdateWithoutUsersInput>
    create: XOR<PermissionsCreateWithoutUsersInput, PermissionsUncheckedCreateWithoutUsersInput>
    where?: PermissionsWhereInput
  }

  export type PermissionsUpdateToOneWithWhereWithoutUsersInput = {
    where?: PermissionsWhereInput
    data: XOR<PermissionsUpdateWithoutUsersInput, PermissionsUncheckedUpdateWithoutUsersInput>
  }

  export type PermissionsUpdateWithoutUsersInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutPermissionsNestedInput
    entity?: MasterEntityUpdateOneWithoutPermissionsNestedInput
    roles?: RolePermissionsUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUpdateManyWithoutPermissionNestedInput
  }

  export type PermissionsUncheckedUpdateWithoutUsersInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    roles?: RolePermissionsUncheckedUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUncheckedUpdateManyWithoutPermissionNestedInput
  }

  export type UserCreateWithoutOtpsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutOtpsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutOtpsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutOtpsInput, UserUncheckedCreateWithoutOtpsInput>
  }

  export type UserUpsertWithoutOtpsInput = {
    update: XOR<UserUpdateWithoutOtpsInput, UserUncheckedUpdateWithoutOtpsInput>
    create: XOR<UserCreateWithoutOtpsInput, UserUncheckedCreateWithoutOtpsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutOtpsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutOtpsInput, UserUncheckedUpdateWithoutOtpsInput>
  }

  export type UserUpdateWithoutOtpsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutOtpsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutLanguagesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutLanguagesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutLanguagesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutLanguagesInput, StatusUncheckedCreateWithoutLanguagesInput>
  }

  export type LanguageContentCreateWithoutLanguageInput = {
    key_content: string
    values: string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutLanguage_contentsInput
  }

  export type LanguageContentUncheckedCreateWithoutLanguageInput = {
    id?: number
    key_content: string
    values: string
    status_id?: number
    created_at?: Date | string
  }

  export type LanguageContentCreateOrConnectWithoutLanguageInput = {
    where: LanguageContentWhereUniqueInput
    create: XOR<LanguageContentCreateWithoutLanguageInput, LanguageContentUncheckedCreateWithoutLanguageInput>
  }

  export type LanguageContentCreateManyLanguageInputEnvelope = {
    data: LanguageContentCreateManyLanguageInput | LanguageContentCreateManyLanguageInput[]
  }

  export type UserCreateWithoutCreated_languagesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_languagesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_languagesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_languagesInput, UserUncheckedCreateWithoutCreated_languagesInput>
  }

  export type UserCreateWithoutUpdated_languagesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_languagesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_languagesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_languagesInput, UserUncheckedCreateWithoutUpdated_languagesInput>
  }

  export type UserCreateWithoutDeleted_languagesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_languagesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_languagesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_languagesInput, UserUncheckedCreateWithoutDeleted_languagesInput>
  }

  export type StatusUpsertWithoutLanguagesInput = {
    update: XOR<StatusUpdateWithoutLanguagesInput, StatusUncheckedUpdateWithoutLanguagesInput>
    create: XOR<StatusCreateWithoutLanguagesInput, StatusUncheckedCreateWithoutLanguagesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutLanguagesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutLanguagesInput, StatusUncheckedUpdateWithoutLanguagesInput>
  }

  export type StatusUpdateWithoutLanguagesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutLanguagesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type LanguageContentUpsertWithWhereUniqueWithoutLanguageInput = {
    where: LanguageContentWhereUniqueInput
    update: XOR<LanguageContentUpdateWithoutLanguageInput, LanguageContentUncheckedUpdateWithoutLanguageInput>
    create: XOR<LanguageContentCreateWithoutLanguageInput, LanguageContentUncheckedCreateWithoutLanguageInput>
  }

  export type LanguageContentUpdateWithWhereUniqueWithoutLanguageInput = {
    where: LanguageContentWhereUniqueInput
    data: XOR<LanguageContentUpdateWithoutLanguageInput, LanguageContentUncheckedUpdateWithoutLanguageInput>
  }

  export type LanguageContentUpdateManyWithWhereWithoutLanguageInput = {
    where: LanguageContentScalarWhereInput
    data: XOR<LanguageContentUpdateManyMutationInput, LanguageContentUncheckedUpdateManyWithoutLanguageInput>
  }

  export type LanguageContentScalarWhereInput = {
    AND?: LanguageContentScalarWhereInput | LanguageContentScalarWhereInput[]
    OR?: LanguageContentScalarWhereInput[]
    NOT?: LanguageContentScalarWhereInput | LanguageContentScalarWhereInput[]
    id?: IntFilter<"LanguageContent"> | number
    language_id?: IntFilter<"LanguageContent"> | number
    key_content?: StringFilter<"LanguageContent"> | string
    values?: StringFilter<"LanguageContent"> | string
    status_id?: IntFilter<"LanguageContent"> | number
    company_id?: IntFilter<"LanguageContent"> | number
    created_at?: DateTimeFilter<"LanguageContent"> | Date | string
  }

  export type UserUpsertWithoutCreated_languagesInput = {
    update: XOR<UserUpdateWithoutCreated_languagesInput, UserUncheckedUpdateWithoutCreated_languagesInput>
    create: XOR<UserCreateWithoutCreated_languagesInput, UserUncheckedCreateWithoutCreated_languagesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_languagesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_languagesInput, UserUncheckedUpdateWithoutCreated_languagesInput>
  }

  export type UserUpdateWithoutCreated_languagesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_languagesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_languagesInput = {
    update: XOR<UserUpdateWithoutUpdated_languagesInput, UserUncheckedUpdateWithoutUpdated_languagesInput>
    create: XOR<UserCreateWithoutUpdated_languagesInput, UserUncheckedCreateWithoutUpdated_languagesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_languagesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_languagesInput, UserUncheckedUpdateWithoutUpdated_languagesInput>
  }

  export type UserUpdateWithoutUpdated_languagesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_languagesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_languagesInput = {
    update: XOR<UserUpdateWithoutDeleted_languagesInput, UserUncheckedUpdateWithoutDeleted_languagesInput>
    create: XOR<UserCreateWithoutDeleted_languagesInput, UserUncheckedCreateWithoutDeleted_languagesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_languagesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_languagesInput, UserUncheckedUpdateWithoutDeleted_languagesInput>
  }

  export type UserUpdateWithoutDeleted_languagesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_languagesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutLanguage_contentsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutLanguage_contentsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutLanguage_contentsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutLanguage_contentsInput, StatusUncheckedCreateWithoutLanguage_contentsInput>
  }

  export type LanguageCreateWithoutTranslationsInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutLanguagesInput
    created?: UserCreateNestedOneWithoutCreated_languagesInput
    updated?: UserCreateNestedOneWithoutUpdated_languagesInput
    deleted?: UserCreateNestedOneWithoutDeleted_languagesInput
  }

  export type LanguageUncheckedCreateWithoutTranslationsInput = {
    id?: number
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type LanguageCreateOrConnectWithoutTranslationsInput = {
    where: LanguageWhereUniqueInput
    create: XOR<LanguageCreateWithoutTranslationsInput, LanguageUncheckedCreateWithoutTranslationsInput>
  }

  export type StatusUpsertWithoutLanguage_contentsInput = {
    update: XOR<StatusUpdateWithoutLanguage_contentsInput, StatusUncheckedUpdateWithoutLanguage_contentsInput>
    create: XOR<StatusCreateWithoutLanguage_contentsInput, StatusUncheckedCreateWithoutLanguage_contentsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutLanguage_contentsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutLanguage_contentsInput, StatusUncheckedUpdateWithoutLanguage_contentsInput>
  }

  export type StatusUpdateWithoutLanguage_contentsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutLanguage_contentsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type LanguageUpsertWithoutTranslationsInput = {
    update: XOR<LanguageUpdateWithoutTranslationsInput, LanguageUncheckedUpdateWithoutTranslationsInput>
    create: XOR<LanguageCreateWithoutTranslationsInput, LanguageUncheckedCreateWithoutTranslationsInput>
    where?: LanguageWhereInput
  }

  export type LanguageUpdateToOneWithWhereWithoutTranslationsInput = {
    where?: LanguageWhereInput
    data: XOR<LanguageUpdateWithoutTranslationsInput, LanguageUncheckedUpdateWithoutTranslationsInput>
  }

  export type LanguageUpdateWithoutTranslationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutLanguagesNestedInput
    created?: UserUpdateOneWithoutCreated_languagesNestedInput
    updated?: UserUpdateOneWithoutUpdated_languagesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_languagesNestedInput
  }

  export type LanguageUncheckedUpdateWithoutTranslationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type StatusCreateWithoutMenusInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutMenusInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutMenusInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutMenusInput, StatusUncheckedCreateWithoutMenusInput>
  }

  export type MenuItemsCreateWithoutMenusInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenuitemsInput
    entity?: MasterEntityCreateNestedOneWithoutMenusInput
    permission?: PermissionsCreateNestedOneWithoutMenusInput
    parent?: MenuItemsCreateNestedOneWithoutChildrenInput
    children?: MenuItemsCreateNestedManyWithoutParentInput
    created?: UserCreateNestedOneWithoutCreated_menu_itemsInput
    updated?: UserCreateNestedOneWithoutUpdated_menu_itemsInput
    deleted?: UserCreateNestedOneWithoutDeleted_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateWithoutMenusInput = {
    id?: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    children?: MenuItemsUncheckedCreateNestedManyWithoutParentInput
  }

  export type MenuItemsCreateOrConnectWithoutMenusInput = {
    where: MenuItemsWhereUniqueInput
    create: XOR<MenuItemsCreateWithoutMenusInput, MenuItemsUncheckedCreateWithoutMenusInput>
  }

  export type MenuItemsCreateManyMenusInputEnvelope = {
    data: MenuItemsCreateManyMenusInput | MenuItemsCreateManyMenusInput[]
  }

  export type UserCreateWithoutCreated_menusInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_menusInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_menusInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_menusInput, UserUncheckedCreateWithoutCreated_menusInput>
  }

  export type UserCreateWithoutUpdated_menusInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_menusInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_menusInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_menusInput, UserUncheckedCreateWithoutUpdated_menusInput>
  }

  export type UserCreateWithoutDeleted_menusInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_menusInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_menusInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_menusInput, UserUncheckedCreateWithoutDeleted_menusInput>
  }

  export type StatusUpsertWithoutMenusInput = {
    update: XOR<StatusUpdateWithoutMenusInput, StatusUncheckedUpdateWithoutMenusInput>
    create: XOR<StatusCreateWithoutMenusInput, StatusUncheckedCreateWithoutMenusInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutMenusInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutMenusInput, StatusUncheckedUpdateWithoutMenusInput>
  }

  export type StatusUpdateWithoutMenusInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutMenusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type MenuItemsUpsertWithWhereUniqueWithoutMenusInput = {
    where: MenuItemsWhereUniqueInput
    update: XOR<MenuItemsUpdateWithoutMenusInput, MenuItemsUncheckedUpdateWithoutMenusInput>
    create: XOR<MenuItemsCreateWithoutMenusInput, MenuItemsUncheckedCreateWithoutMenusInput>
  }

  export type MenuItemsUpdateWithWhereUniqueWithoutMenusInput = {
    where: MenuItemsWhereUniqueInput
    data: XOR<MenuItemsUpdateWithoutMenusInput, MenuItemsUncheckedUpdateWithoutMenusInput>
  }

  export type MenuItemsUpdateManyWithWhereWithoutMenusInput = {
    where: MenuItemsScalarWhereInput
    data: XOR<MenuItemsUpdateManyMutationInput, MenuItemsUncheckedUpdateManyWithoutMenusInput>
  }

  export type UserUpsertWithoutCreated_menusInput = {
    update: XOR<UserUpdateWithoutCreated_menusInput, UserUncheckedUpdateWithoutCreated_menusInput>
    create: XOR<UserCreateWithoutCreated_menusInput, UserUncheckedCreateWithoutCreated_menusInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_menusInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_menusInput, UserUncheckedUpdateWithoutCreated_menusInput>
  }

  export type UserUpdateWithoutCreated_menusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_menusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_menusInput = {
    update: XOR<UserUpdateWithoutUpdated_menusInput, UserUncheckedUpdateWithoutUpdated_menusInput>
    create: XOR<UserCreateWithoutUpdated_menusInput, UserUncheckedCreateWithoutUpdated_menusInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_menusInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_menusInput, UserUncheckedUpdateWithoutUpdated_menusInput>
  }

  export type UserUpdateWithoutUpdated_menusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_menusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_menusInput = {
    update: XOR<UserUpdateWithoutDeleted_menusInput, UserUncheckedUpdateWithoutDeleted_menusInput>
    create: XOR<UserCreateWithoutDeleted_menusInput, UserUncheckedCreateWithoutDeleted_menusInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_menusInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_menusInput, UserUncheckedUpdateWithoutDeleted_menusInput>
  }

  export type UserUpdateWithoutDeleted_menusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_menusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutMenuitemsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutMenuitemsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutMenuitemsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutMenuitemsInput, StatusUncheckedCreateWithoutMenuitemsInput>
  }

  export type MenusCreateWithoutMenuitemsInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenusInput
    created?: UserCreateNestedOneWithoutCreated_menusInput
    updated?: UserCreateNestedOneWithoutUpdated_menusInput
    deleted?: UserCreateNestedOneWithoutDeleted_menusInput
  }

  export type MenusUncheckedCreateWithoutMenuitemsInput = {
    id?: number
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenusCreateOrConnectWithoutMenuitemsInput = {
    where: MenusWhereUniqueInput
    create: XOR<MenusCreateWithoutMenuitemsInput, MenusUncheckedCreateWithoutMenuitemsInput>
  }

  export type MasterEntityCreateWithoutMenusInput = {
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMaster_gridsInput
    permissions?: PermissionsCreateNestedManyWithoutEntityInput
    line_items?: MasterEntityLineItemCreateNestedManyWithoutMaster_gridInput
  }

  export type MasterEntityUncheckedCreateWithoutMenusInput = {
    id?: number
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: PermissionsUncheckedCreateNestedManyWithoutEntityInput
    line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutMaster_gridInput
  }

  export type MasterEntityCreateOrConnectWithoutMenusInput = {
    where: MasterEntityWhereUniqueInput
    create: XOR<MasterEntityCreateWithoutMenusInput, MasterEntityUncheckedCreateWithoutMenusInput>
  }

  export type PermissionsCreateWithoutMenusInput = {
    name: string
    slug: string
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutPermissionsInput
    entity?: MasterEntityCreateNestedOneWithoutPermissionsInput
    roles?: RolePermissionsCreateNestedManyWithoutPermissionInput
    users?: UserPermissionsCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsUncheckedCreateWithoutMenusInput = {
    id?: number
    name: string
    slug: string
    entity_id?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    company_id: number
    created_at?: Date | string
    roles?: RolePermissionsUncheckedCreateNestedManyWithoutPermissionInput
    users?: UserPermissionsUncheckedCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsCreateOrConnectWithoutMenusInput = {
    where: PermissionsWhereUniqueInput
    create: XOR<PermissionsCreateWithoutMenusInput, PermissionsUncheckedCreateWithoutMenusInput>
  }

  export type MenuItemsCreateWithoutChildrenInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenuitemsInput
    menus?: MenusCreateNestedOneWithoutMenuitemsInput
    entity?: MasterEntityCreateNestedOneWithoutMenusInput
    permission?: PermissionsCreateNestedOneWithoutMenusInput
    parent?: MenuItemsCreateNestedOneWithoutChildrenInput
    created?: UserCreateNestedOneWithoutCreated_menu_itemsInput
    updated?: UserCreateNestedOneWithoutUpdated_menu_itemsInput
    deleted?: UserCreateNestedOneWithoutDeleted_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateWithoutChildrenInput = {
    id?: number
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenuItemsCreateOrConnectWithoutChildrenInput = {
    where: MenuItemsWhereUniqueInput
    create: XOR<MenuItemsCreateWithoutChildrenInput, MenuItemsUncheckedCreateWithoutChildrenInput>
  }

  export type MenuItemsCreateWithoutParentInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenuitemsInput
    menus?: MenusCreateNestedOneWithoutMenuitemsInput
    entity?: MasterEntityCreateNestedOneWithoutMenusInput
    permission?: PermissionsCreateNestedOneWithoutMenusInput
    children?: MenuItemsCreateNestedManyWithoutParentInput
    created?: UserCreateNestedOneWithoutCreated_menu_itemsInput
    updated?: UserCreateNestedOneWithoutUpdated_menu_itemsInput
    deleted?: UserCreateNestedOneWithoutDeleted_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateWithoutParentInput = {
    id?: number
    menu_id: number
    name: string
    target?: string | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    children?: MenuItemsUncheckedCreateNestedManyWithoutParentInput
  }

  export type MenuItemsCreateOrConnectWithoutParentInput = {
    where: MenuItemsWhereUniqueInput
    create: XOR<MenuItemsCreateWithoutParentInput, MenuItemsUncheckedCreateWithoutParentInput>
  }

  export type MenuItemsCreateManyParentInputEnvelope = {
    data: MenuItemsCreateManyParentInput | MenuItemsCreateManyParentInput[]
  }

  export type UserCreateWithoutCreated_menu_itemsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_menu_itemsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_menu_itemsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_menu_itemsInput, UserUncheckedCreateWithoutCreated_menu_itemsInput>
  }

  export type UserCreateWithoutUpdated_menu_itemsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_menu_itemsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_menu_itemsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_menu_itemsInput, UserUncheckedCreateWithoutUpdated_menu_itemsInput>
  }

  export type UserCreateWithoutDeleted_menu_itemsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_menu_itemsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_menu_itemsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_menu_itemsInput, UserUncheckedCreateWithoutDeleted_menu_itemsInput>
  }

  export type StatusUpsertWithoutMenuitemsInput = {
    update: XOR<StatusUpdateWithoutMenuitemsInput, StatusUncheckedUpdateWithoutMenuitemsInput>
    create: XOR<StatusCreateWithoutMenuitemsInput, StatusUncheckedCreateWithoutMenuitemsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutMenuitemsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutMenuitemsInput, StatusUncheckedUpdateWithoutMenuitemsInput>
  }

  export type StatusUpdateWithoutMenuitemsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutMenuitemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type MenusUpsertWithoutMenuitemsInput = {
    update: XOR<MenusUpdateWithoutMenuitemsInput, MenusUncheckedUpdateWithoutMenuitemsInput>
    create: XOR<MenusCreateWithoutMenuitemsInput, MenusUncheckedCreateWithoutMenuitemsInput>
    where?: MenusWhereInput
  }

  export type MenusUpdateToOneWithWhereWithoutMenuitemsInput = {
    where?: MenusWhereInput
    data: XOR<MenusUpdateWithoutMenuitemsInput, MenusUncheckedUpdateWithoutMenuitemsInput>
  }

  export type MenusUpdateWithoutMenuitemsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenusNestedInput
    created?: UserUpdateOneWithoutCreated_menusNestedInput
    updated?: UserUpdateOneWithoutUpdated_menusNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menusNestedInput
  }

  export type MenusUncheckedUpdateWithoutMenuitemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MasterEntityUpsertWithoutMenusInput = {
    update: XOR<MasterEntityUpdateWithoutMenusInput, MasterEntityUncheckedUpdateWithoutMenusInput>
    create: XOR<MasterEntityCreateWithoutMenusInput, MasterEntityUncheckedCreateWithoutMenusInput>
    where?: MasterEntityWhereInput
  }

  export type MasterEntityUpdateToOneWithWhereWithoutMenusInput = {
    where?: MasterEntityWhereInput
    data: XOR<MasterEntityUpdateWithoutMenusInput, MasterEntityUncheckedUpdateWithoutMenusInput>
  }

  export type MasterEntityUpdateWithoutMenusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMaster_gridsNestedInput
    permissions?: PermissionsUpdateManyWithoutEntityNestedInput
    line_items?: MasterEntityLineItemUpdateManyWithoutMaster_gridNestedInput
  }

  export type MasterEntityUncheckedUpdateWithoutMenusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: PermissionsUncheckedUpdateManyWithoutEntityNestedInput
    line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutMaster_gridNestedInput
  }

  export type PermissionsUpsertWithoutMenusInput = {
    update: XOR<PermissionsUpdateWithoutMenusInput, PermissionsUncheckedUpdateWithoutMenusInput>
    create: XOR<PermissionsCreateWithoutMenusInput, PermissionsUncheckedCreateWithoutMenusInput>
    where?: PermissionsWhereInput
  }

  export type PermissionsUpdateToOneWithWhereWithoutMenusInput = {
    where?: PermissionsWhereInput
    data: XOR<PermissionsUpdateWithoutMenusInput, PermissionsUncheckedUpdateWithoutMenusInput>
  }

  export type PermissionsUpdateWithoutMenusInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutPermissionsNestedInput
    entity?: MasterEntityUpdateOneWithoutPermissionsNestedInput
    roles?: RolePermissionsUpdateManyWithoutPermissionNestedInput
    users?: UserPermissionsUpdateManyWithoutPermissionNestedInput
  }

  export type PermissionsUncheckedUpdateWithoutMenusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    roles?: RolePermissionsUncheckedUpdateManyWithoutPermissionNestedInput
    users?: UserPermissionsUncheckedUpdateManyWithoutPermissionNestedInput
  }

  export type MenuItemsUpsertWithoutChildrenInput = {
    update: XOR<MenuItemsUpdateWithoutChildrenInput, MenuItemsUncheckedUpdateWithoutChildrenInput>
    create: XOR<MenuItemsCreateWithoutChildrenInput, MenuItemsUncheckedCreateWithoutChildrenInput>
    where?: MenuItemsWhereInput
  }

  export type MenuItemsUpdateToOneWithWhereWithoutChildrenInput = {
    where?: MenuItemsWhereInput
    data: XOR<MenuItemsUpdateWithoutChildrenInput, MenuItemsUncheckedUpdateWithoutChildrenInput>
  }

  export type MenuItemsUpdateWithoutChildrenInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenuitemsNestedInput
    menus?: MenusUpdateOneWithoutMenuitemsNestedInput
    entity?: MasterEntityUpdateOneWithoutMenusNestedInput
    permission?: PermissionsUpdateOneWithoutMenusNestedInput
    parent?: MenuItemsUpdateOneWithoutChildrenNestedInput
    created?: UserUpdateOneWithoutCreated_menu_itemsNestedInput
    updated?: UserUpdateOneWithoutUpdated_menu_itemsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateWithoutChildrenInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenuItemsUpsertWithWhereUniqueWithoutParentInput = {
    where: MenuItemsWhereUniqueInput
    update: XOR<MenuItemsUpdateWithoutParentInput, MenuItemsUncheckedUpdateWithoutParentInput>
    create: XOR<MenuItemsCreateWithoutParentInput, MenuItemsUncheckedCreateWithoutParentInput>
  }

  export type MenuItemsUpdateWithWhereUniqueWithoutParentInput = {
    where: MenuItemsWhereUniqueInput
    data: XOR<MenuItemsUpdateWithoutParentInput, MenuItemsUncheckedUpdateWithoutParentInput>
  }

  export type MenuItemsUpdateManyWithWhereWithoutParentInput = {
    where: MenuItemsScalarWhereInput
    data: XOR<MenuItemsUpdateManyMutationInput, MenuItemsUncheckedUpdateManyWithoutParentInput>
  }

  export type UserUpsertWithoutCreated_menu_itemsInput = {
    update: XOR<UserUpdateWithoutCreated_menu_itemsInput, UserUncheckedUpdateWithoutCreated_menu_itemsInput>
    create: XOR<UserCreateWithoutCreated_menu_itemsInput, UserUncheckedCreateWithoutCreated_menu_itemsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_menu_itemsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_menu_itemsInput, UserUncheckedUpdateWithoutCreated_menu_itemsInput>
  }

  export type UserUpdateWithoutCreated_menu_itemsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_menu_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_menu_itemsInput = {
    update: XOR<UserUpdateWithoutUpdated_menu_itemsInput, UserUncheckedUpdateWithoutUpdated_menu_itemsInput>
    create: XOR<UserCreateWithoutUpdated_menu_itemsInput, UserUncheckedCreateWithoutUpdated_menu_itemsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_menu_itemsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_menu_itemsInput, UserUncheckedUpdateWithoutUpdated_menu_itemsInput>
  }

  export type UserUpdateWithoutUpdated_menu_itemsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_menu_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_menu_itemsInput = {
    update: XOR<UserUpdateWithoutDeleted_menu_itemsInput, UserUncheckedUpdateWithoutDeleted_menu_itemsInput>
    create: XOR<UserCreateWithoutDeleted_menu_itemsInput, UserUncheckedCreateWithoutDeleted_menu_itemsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_menu_itemsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_menu_itemsInput, UserUncheckedUpdateWithoutDeleted_menu_itemsInput>
  }

  export type UserUpdateWithoutDeleted_menu_itemsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_menu_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutMaster_gridsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutMaster_gridsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutMaster_gridsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutMaster_gridsInput, StatusUncheckedCreateWithoutMaster_gridsInput>
  }

  export type PermissionsCreateWithoutEntityInput = {
    name: string
    slug: string
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutPermissionsInput
    roles?: RolePermissionsCreateNestedManyWithoutPermissionInput
    users?: UserPermissionsCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsUncheckedCreateWithoutEntityInput = {
    id?: number
    name: string
    slug: string
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    created_at?: Date | string
    roles?: RolePermissionsUncheckedCreateNestedManyWithoutPermissionInput
    users?: UserPermissionsUncheckedCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsUncheckedCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsCreateOrConnectWithoutEntityInput = {
    where: PermissionsWhereUniqueInput
    create: XOR<PermissionsCreateWithoutEntityInput, PermissionsUncheckedCreateWithoutEntityInput>
  }

  export type PermissionsCreateManyEntityInputEnvelope = {
    data: PermissionsCreateManyEntityInput | PermissionsCreateManyEntityInput[]
  }

  export type MasterEntityLineItemCreateWithoutMaster_gridInput = {
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutMaster_grid_line_itemsInput
    field_type?: FieldTypeCreateNestedOneWithoutMaster_grid_lineitemInput
  }

  export type MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput = {
    id?: number
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    field_type_id: number
    status_id?: number
    created_at?: Date | string
  }

  export type MasterEntityLineItemCreateOrConnectWithoutMaster_gridInput = {
    where: MasterEntityLineItemWhereUniqueInput
    create: XOR<MasterEntityLineItemCreateWithoutMaster_gridInput, MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput>
  }

  export type MasterEntityLineItemCreateManyMaster_gridInputEnvelope = {
    data: MasterEntityLineItemCreateManyMaster_gridInput | MasterEntityLineItemCreateManyMaster_gridInput[]
  }

  export type MenuItemsCreateWithoutEntityInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMenuitemsInput
    menus?: MenusCreateNestedOneWithoutMenuitemsInput
    permission?: PermissionsCreateNestedOneWithoutMenusInput
    parent?: MenuItemsCreateNestedOneWithoutChildrenInput
    children?: MenuItemsCreateNestedManyWithoutParentInput
    created?: UserCreateNestedOneWithoutCreated_menu_itemsInput
    updated?: UserCreateNestedOneWithoutUpdated_menu_itemsInput
    deleted?: UserCreateNestedOneWithoutDeleted_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateWithoutEntityInput = {
    id?: number
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    children?: MenuItemsUncheckedCreateNestedManyWithoutParentInput
  }

  export type MenuItemsCreateOrConnectWithoutEntityInput = {
    where: MenuItemsWhereUniqueInput
    create: XOR<MenuItemsCreateWithoutEntityInput, MenuItemsUncheckedCreateWithoutEntityInput>
  }

  export type MenuItemsCreateManyEntityInputEnvelope = {
    data: MenuItemsCreateManyEntityInput | MenuItemsCreateManyEntityInput[]
  }

  export type StatusUpsertWithoutMaster_gridsInput = {
    update: XOR<StatusUpdateWithoutMaster_gridsInput, StatusUncheckedUpdateWithoutMaster_gridsInput>
    create: XOR<StatusCreateWithoutMaster_gridsInput, StatusUncheckedCreateWithoutMaster_gridsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutMaster_gridsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutMaster_gridsInput, StatusUncheckedUpdateWithoutMaster_gridsInput>
  }

  export type StatusUpdateWithoutMaster_gridsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutMaster_gridsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type PermissionsUpsertWithWhereUniqueWithoutEntityInput = {
    where: PermissionsWhereUniqueInput
    update: XOR<PermissionsUpdateWithoutEntityInput, PermissionsUncheckedUpdateWithoutEntityInput>
    create: XOR<PermissionsCreateWithoutEntityInput, PermissionsUncheckedCreateWithoutEntityInput>
  }

  export type PermissionsUpdateWithWhereUniqueWithoutEntityInput = {
    where: PermissionsWhereUniqueInput
    data: XOR<PermissionsUpdateWithoutEntityInput, PermissionsUncheckedUpdateWithoutEntityInput>
  }

  export type PermissionsUpdateManyWithWhereWithoutEntityInput = {
    where: PermissionsScalarWhereInput
    data: XOR<PermissionsUpdateManyMutationInput, PermissionsUncheckedUpdateManyWithoutEntityInput>
  }

  export type PermissionsScalarWhereInput = {
    AND?: PermissionsScalarWhereInput | PermissionsScalarWhereInput[]
    OR?: PermissionsScalarWhereInput[]
    NOT?: PermissionsScalarWhereInput | PermissionsScalarWhereInput[]
    id?: IntFilter<"Permissions"> | number
    name?: StringFilter<"Permissions"> | string
    slug?: StringFilter<"Permissions"> | string
    entity_id?: IntNullableFilter<"Permissions"> | number | null
    order_no?: DecimalFilter<"Permissions"> | Decimal | DecimalJsLike | number | string
    status_id?: IntFilter<"Permissions"> | number
    company_id?: IntFilter<"Permissions"> | number
    created_at?: DateTimeFilter<"Permissions"> | Date | string
  }

  export type MasterEntityLineItemUpsertWithWhereUniqueWithoutMaster_gridInput = {
    where: MasterEntityLineItemWhereUniqueInput
    update: XOR<MasterEntityLineItemUpdateWithoutMaster_gridInput, MasterEntityLineItemUncheckedUpdateWithoutMaster_gridInput>
    create: XOR<MasterEntityLineItemCreateWithoutMaster_gridInput, MasterEntityLineItemUncheckedCreateWithoutMaster_gridInput>
  }

  export type MasterEntityLineItemUpdateWithWhereUniqueWithoutMaster_gridInput = {
    where: MasterEntityLineItemWhereUniqueInput
    data: XOR<MasterEntityLineItemUpdateWithoutMaster_gridInput, MasterEntityLineItemUncheckedUpdateWithoutMaster_gridInput>
  }

  export type MasterEntityLineItemUpdateManyWithWhereWithoutMaster_gridInput = {
    where: MasterEntityLineItemScalarWhereInput
    data: XOR<MasterEntityLineItemUpdateManyMutationInput, MasterEntityLineItemUncheckedUpdateManyWithoutMaster_gridInput>
  }

  export type MasterEntityLineItemScalarWhereInput = {
    AND?: MasterEntityLineItemScalarWhereInput | MasterEntityLineItemScalarWhereInput[]
    OR?: MasterEntityLineItemScalarWhereInput[]
    NOT?: MasterEntityLineItemScalarWhereInput | MasterEntityLineItemScalarWhereInput[]
    id?: IntFilter<"MasterEntityLineItem"> | number
    master_grid_id?: IntFilter<"MasterEntityLineItem"> | number
    field_name?: StringFilter<"MasterEntityLineItem"> | string
    display_name?: StringFilter<"MasterEntityLineItem"> | string
    order_no?: DecimalFilter<"MasterEntityLineItem"> | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFilter<"MasterEntityLineItem"> | boolean
    is_searchable?: BoolFilter<"MasterEntityLineItem"> | boolean
    clause_type?: StringFilter<"MasterEntityLineItem"> | string
    is_sortable?: BoolFilter<"MasterEntityLineItem"> | boolean
    field_type_id?: IntFilter<"MasterEntityLineItem"> | number
    status_id?: IntFilter<"MasterEntityLineItem"> | number
    company_id?: IntFilter<"MasterEntityLineItem"> | number
    created_at?: DateTimeFilter<"MasterEntityLineItem"> | Date | string
  }

  export type MenuItemsUpsertWithWhereUniqueWithoutEntityInput = {
    where: MenuItemsWhereUniqueInput
    update: XOR<MenuItemsUpdateWithoutEntityInput, MenuItemsUncheckedUpdateWithoutEntityInput>
    create: XOR<MenuItemsCreateWithoutEntityInput, MenuItemsUncheckedCreateWithoutEntityInput>
  }

  export type MenuItemsUpdateWithWhereUniqueWithoutEntityInput = {
    where: MenuItemsWhereUniqueInput
    data: XOR<MenuItemsUpdateWithoutEntityInput, MenuItemsUncheckedUpdateWithoutEntityInput>
  }

  export type MenuItemsUpdateManyWithWhereWithoutEntityInput = {
    where: MenuItemsScalarWhereInput
    data: XOR<MenuItemsUpdateManyMutationInput, MenuItemsUncheckedUpdateManyWithoutEntityInput>
  }

  export type StatusCreateWithoutMaster_grid_line_itemsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutMaster_grid_line_itemsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutMaster_grid_line_itemsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutMaster_grid_line_itemsInput, StatusUncheckedCreateWithoutMaster_grid_line_itemsInput>
  }

  export type MasterEntityCreateWithoutLine_itemsInput = {
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutMaster_gridsInput
    permissions?: PermissionsCreateNestedManyWithoutEntityInput
    menus?: MenuItemsCreateNestedManyWithoutEntityInput
  }

  export type MasterEntityUncheckedCreateWithoutLine_itemsInput = {
    id?: number
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    status_id?: number
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: PermissionsUncheckedCreateNestedManyWithoutEntityInput
    menus?: MenuItemsUncheckedCreateNestedManyWithoutEntityInput
  }

  export type MasterEntityCreateOrConnectWithoutLine_itemsInput = {
    where: MasterEntityWhereUniqueInput
    create: XOR<MasterEntityCreateWithoutLine_itemsInput, MasterEntityUncheckedCreateWithoutLine_itemsInput>
  }

  export type FieldTypeCreateWithoutMaster_grid_lineitemInput = {
    field_type: string
    company_id: number
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutField_typesInput
    importTemplateLineItem?: ImportTemplateLineItemCreateNestedManyWithoutField_typeInput
    exportTemplateLineItem?: ExportTemplateLineItemCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeUncheckedCreateWithoutMaster_grid_lineitemInput = {
    id?: number
    field_type: string
    company_id: number
    status_id?: number
    created_at?: Date | string
    importTemplateLineItem?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput
    exportTemplateLineItem?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeCreateOrConnectWithoutMaster_grid_lineitemInput = {
    where: FieldTypeWhereUniqueInput
    create: XOR<FieldTypeCreateWithoutMaster_grid_lineitemInput, FieldTypeUncheckedCreateWithoutMaster_grid_lineitemInput>
  }

  export type StatusUpsertWithoutMaster_grid_line_itemsInput = {
    update: XOR<StatusUpdateWithoutMaster_grid_line_itemsInput, StatusUncheckedUpdateWithoutMaster_grid_line_itemsInput>
    create: XOR<StatusCreateWithoutMaster_grid_line_itemsInput, StatusUncheckedCreateWithoutMaster_grid_line_itemsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutMaster_grid_line_itemsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutMaster_grid_line_itemsInput, StatusUncheckedUpdateWithoutMaster_grid_line_itemsInput>
  }

  export type StatusUpdateWithoutMaster_grid_line_itemsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutMaster_grid_line_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type MasterEntityUpsertWithoutLine_itemsInput = {
    update: XOR<MasterEntityUpdateWithoutLine_itemsInput, MasterEntityUncheckedUpdateWithoutLine_itemsInput>
    create: XOR<MasterEntityCreateWithoutLine_itemsInput, MasterEntityUncheckedCreateWithoutLine_itemsInput>
    where?: MasterEntityWhereInput
  }

  export type MasterEntityUpdateToOneWithWhereWithoutLine_itemsInput = {
    where?: MasterEntityWhereInput
    data: XOR<MasterEntityUpdateWithoutLine_itemsInput, MasterEntityUncheckedUpdateWithoutLine_itemsInput>
  }

  export type MasterEntityUpdateWithoutLine_itemsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMaster_gridsNestedInput
    permissions?: PermissionsUpdateManyWithoutEntityNestedInput
    menus?: MenuItemsUpdateManyWithoutEntityNestedInput
  }

  export type MasterEntityUncheckedUpdateWithoutLine_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: PermissionsUncheckedUpdateManyWithoutEntityNestedInput
    menus?: MenuItemsUncheckedUpdateManyWithoutEntityNestedInput
  }

  export type FieldTypeUpsertWithoutMaster_grid_lineitemInput = {
    update: XOR<FieldTypeUpdateWithoutMaster_grid_lineitemInput, FieldTypeUncheckedUpdateWithoutMaster_grid_lineitemInput>
    create: XOR<FieldTypeCreateWithoutMaster_grid_lineitemInput, FieldTypeUncheckedCreateWithoutMaster_grid_lineitemInput>
    where?: FieldTypeWhereInput
  }

  export type FieldTypeUpdateToOneWithWhereWithoutMaster_grid_lineitemInput = {
    where?: FieldTypeWhereInput
    data: XOR<FieldTypeUpdateWithoutMaster_grid_lineitemInput, FieldTypeUncheckedUpdateWithoutMaster_grid_lineitemInput>
  }

  export type FieldTypeUpdateWithoutMaster_grid_lineitemInput = {
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutField_typesNestedInput
    importTemplateLineItem?: ImportTemplateLineItemUpdateManyWithoutField_typeNestedInput
    exportTemplateLineItem?: ExportTemplateLineItemUpdateManyWithoutField_typeNestedInput
  }

  export type FieldTypeUncheckedUpdateWithoutMaster_grid_lineitemInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    importTemplateLineItem?: ImportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput
    exportTemplateLineItem?: ExportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput
  }

  export type StatusCreateWithoutField_typesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutField_typesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutField_typesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutField_typesInput, StatusUncheckedCreateWithoutField_typesInput>
  }

  export type MasterEntityLineItemCreateWithoutField_typeInput = {
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutMaster_grid_line_itemsInput
    master_grid: MasterEntityCreateNestedOneWithoutLine_itemsInput
  }

  export type MasterEntityLineItemUncheckedCreateWithoutField_typeInput = {
    id?: number
    master_grid_id: number
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    status_id?: number
    created_at?: Date | string
  }

  export type MasterEntityLineItemCreateOrConnectWithoutField_typeInput = {
    where: MasterEntityLineItemWhereUniqueInput
    create: XOR<MasterEntityLineItemCreateWithoutField_typeInput, MasterEntityLineItemUncheckedCreateWithoutField_typeInput>
  }

  export type MasterEntityLineItemCreateManyField_typeInputEnvelope = {
    data: MasterEntityLineItemCreateManyField_typeInput | MasterEntityLineItemCreateManyField_typeInput[]
  }

  export type ImportTemplateLineItemCreateWithoutField_typeInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutImport_template_line_itemsInput
    import_template: ImportTemplateCreateNestedOneWithoutLine_itemsInput
  }

  export type ImportTemplateLineItemUncheckedCreateWithoutField_typeInput = {
    id?: number
    import_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    status_id?: number
    created_at?: Date | string
  }

  export type ImportTemplateLineItemCreateOrConnectWithoutField_typeInput = {
    where: ImportTemplateLineItemWhereUniqueInput
    create: XOR<ImportTemplateLineItemCreateWithoutField_typeInput, ImportTemplateLineItemUncheckedCreateWithoutField_typeInput>
  }

  export type ImportTemplateLineItemCreateManyField_typeInputEnvelope = {
    data: ImportTemplateLineItemCreateManyField_typeInput | ImportTemplateLineItemCreateManyField_typeInput[]
  }

  export type ExportTemplateLineItemCreateWithoutField_typeInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutExport_template_line_itemsInput
    export_template: ExportTemplateCreateNestedOneWithoutLine_itemsInput
  }

  export type ExportTemplateLineItemUncheckedCreateWithoutField_typeInput = {
    id?: number
    export_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    status_id?: number
    created_at?: Date | string
  }

  export type ExportTemplateLineItemCreateOrConnectWithoutField_typeInput = {
    where: ExportTemplateLineItemWhereUniqueInput
    create: XOR<ExportTemplateLineItemCreateWithoutField_typeInput, ExportTemplateLineItemUncheckedCreateWithoutField_typeInput>
  }

  export type ExportTemplateLineItemCreateManyField_typeInputEnvelope = {
    data: ExportTemplateLineItemCreateManyField_typeInput | ExportTemplateLineItemCreateManyField_typeInput[]
  }

  export type StatusUpsertWithoutField_typesInput = {
    update: XOR<StatusUpdateWithoutField_typesInput, StatusUncheckedUpdateWithoutField_typesInput>
    create: XOR<StatusCreateWithoutField_typesInput, StatusUncheckedCreateWithoutField_typesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutField_typesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutField_typesInput, StatusUncheckedUpdateWithoutField_typesInput>
  }

  export type StatusUpdateWithoutField_typesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutField_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type MasterEntityLineItemUpsertWithWhereUniqueWithoutField_typeInput = {
    where: MasterEntityLineItemWhereUniqueInput
    update: XOR<MasterEntityLineItemUpdateWithoutField_typeInput, MasterEntityLineItemUncheckedUpdateWithoutField_typeInput>
    create: XOR<MasterEntityLineItemCreateWithoutField_typeInput, MasterEntityLineItemUncheckedCreateWithoutField_typeInput>
  }

  export type MasterEntityLineItemUpdateWithWhereUniqueWithoutField_typeInput = {
    where: MasterEntityLineItemWhereUniqueInput
    data: XOR<MasterEntityLineItemUpdateWithoutField_typeInput, MasterEntityLineItemUncheckedUpdateWithoutField_typeInput>
  }

  export type MasterEntityLineItemUpdateManyWithWhereWithoutField_typeInput = {
    where: MasterEntityLineItemScalarWhereInput
    data: XOR<MasterEntityLineItemUpdateManyMutationInput, MasterEntityLineItemUncheckedUpdateManyWithoutField_typeInput>
  }

  export type ImportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput = {
    where: ImportTemplateLineItemWhereUniqueInput
    update: XOR<ImportTemplateLineItemUpdateWithoutField_typeInput, ImportTemplateLineItemUncheckedUpdateWithoutField_typeInput>
    create: XOR<ImportTemplateLineItemCreateWithoutField_typeInput, ImportTemplateLineItemUncheckedCreateWithoutField_typeInput>
  }

  export type ImportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput = {
    where: ImportTemplateLineItemWhereUniqueInput
    data: XOR<ImportTemplateLineItemUpdateWithoutField_typeInput, ImportTemplateLineItemUncheckedUpdateWithoutField_typeInput>
  }

  export type ImportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput = {
    where: ImportTemplateLineItemScalarWhereInput
    data: XOR<ImportTemplateLineItemUpdateManyMutationInput, ImportTemplateLineItemUncheckedUpdateManyWithoutField_typeInput>
  }

  export type ImportTemplateLineItemScalarWhereInput = {
    AND?: ImportTemplateLineItemScalarWhereInput | ImportTemplateLineItemScalarWhereInput[]
    OR?: ImportTemplateLineItemScalarWhereInput[]
    NOT?: ImportTemplateLineItemScalarWhereInput | ImportTemplateLineItemScalarWhereInput[]
    id?: IntFilter<"ImportTemplateLineItem"> | number
    import_template_id?: IntFilter<"ImportTemplateLineItem"> | number
    field_name?: StringFilter<"ImportTemplateLineItem"> | string
    display_name?: StringFilter<"ImportTemplateLineItem"> | string
    field_table?: StringFilter<"ImportTemplateLineItem"> | string
    order_no?: DecimalFilter<"ImportTemplateLineItem"> | Decimal | DecimalJsLike | number | string
    width?: IntNullableFilter<"ImportTemplateLineItem"> | number | null
    default_value?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    check_reg_exp?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    is_nullable?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_unique?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_foreign?: BoolFilter<"ImportTemplateLineItem"> | boolean
    unique_query?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_query?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    is_enum?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_multiple?: BoolFilter<"ImportTemplateLineItem"> | boolean
    enum_values?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_table?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_column?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    foreign_can_create?: BoolFilter<"ImportTemplateLineItem"> | boolean
    is_individual?: BoolFilter<"ImportTemplateLineItem"> | boolean
    individual_column?: StringNullableFilter<"ImportTemplateLineItem"> | string | null
    field_type_id?: IntNullableFilter<"ImportTemplateLineItem"> | number | null
    status_id?: IntFilter<"ImportTemplateLineItem"> | number
    company_id?: IntFilter<"ImportTemplateLineItem"> | number
    created_at?: DateTimeFilter<"ImportTemplateLineItem"> | Date | string
  }

  export type ExportTemplateLineItemUpsertWithWhereUniqueWithoutField_typeInput = {
    where: ExportTemplateLineItemWhereUniqueInput
    update: XOR<ExportTemplateLineItemUpdateWithoutField_typeInput, ExportTemplateLineItemUncheckedUpdateWithoutField_typeInput>
    create: XOR<ExportTemplateLineItemCreateWithoutField_typeInput, ExportTemplateLineItemUncheckedCreateWithoutField_typeInput>
  }

  export type ExportTemplateLineItemUpdateWithWhereUniqueWithoutField_typeInput = {
    where: ExportTemplateLineItemWhereUniqueInput
    data: XOR<ExportTemplateLineItemUpdateWithoutField_typeInput, ExportTemplateLineItemUncheckedUpdateWithoutField_typeInput>
  }

  export type ExportTemplateLineItemUpdateManyWithWhereWithoutField_typeInput = {
    where: ExportTemplateLineItemScalarWhereInput
    data: XOR<ExportTemplateLineItemUpdateManyMutationInput, ExportTemplateLineItemUncheckedUpdateManyWithoutField_typeInput>
  }

  export type ExportTemplateLineItemScalarWhereInput = {
    AND?: ExportTemplateLineItemScalarWhereInput | ExportTemplateLineItemScalarWhereInput[]
    OR?: ExportTemplateLineItemScalarWhereInput[]
    NOT?: ExportTemplateLineItemScalarWhereInput | ExportTemplateLineItemScalarWhereInput[]
    id?: IntFilter<"ExportTemplateLineItem"> | number
    export_template_id?: IntFilter<"ExportTemplateLineItem"> | number
    field_name?: StringFilter<"ExportTemplateLineItem"> | string
    display_name?: StringFilter<"ExportTemplateLineItem"> | string
    field_table?: StringFilter<"ExportTemplateLineItem"> | string
    order_no?: DecimalFilter<"ExportTemplateLineItem"> | Decimal | DecimalJsLike | number | string
    default_value?: StringNullableFilter<"ExportTemplateLineItem"> | string | null
    column_name?: StringNullableFilter<"ExportTemplateLineItem"> | string | null
    is_individual?: BoolFilter<"ExportTemplateLineItem"> | boolean
    individual_column?: StringNullableFilter<"ExportTemplateLineItem"> | string | null
    field_type_id?: IntNullableFilter<"ExportTemplateLineItem"> | number | null
    status_id?: IntFilter<"ExportTemplateLineItem"> | number
    company_id?: IntFilter<"ExportTemplateLineItem"> | number
    created_at?: DateTimeFilter<"ExportTemplateLineItem"> | Date | string
  }

  export type StatusCreateWithoutMenu_typesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutMenu_typesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutMenu_typesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutMenu_typesInput, StatusUncheckedCreateWithoutMenu_typesInput>
  }

  export type StatusUpsertWithoutMenu_typesInput = {
    update: XOR<StatusUpdateWithoutMenu_typesInput, StatusUncheckedUpdateWithoutMenu_typesInput>
    create: XOR<StatusCreateWithoutMenu_typesInput, StatusUncheckedCreateWithoutMenu_typesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutMenu_typesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutMenu_typesInput, StatusUncheckedUpdateWithoutMenu_typesInput>
  }

  export type StatusUpdateWithoutMenu_typesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutMenu_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type StatusCreateWithoutEmail_template_processesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutEmail_template_processesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutEmail_template_processesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutEmail_template_processesInput, StatusUncheckedCreateWithoutEmail_template_processesInput>
  }

  export type EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput = {
    email_template_tag: EmailTemplateTagCreateNestedOneWithoutEmail_template_groupsInput
  }

  export type EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput = {
    email_template_tag_id: number
  }

  export type EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_processInput = {
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
    create: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput>
  }

  export type EmailTemplateProcessTagsMappingCreateManyEmail_template_processInputEnvelope = {
    data: EmailTemplateProcessTagsMappingCreateManyEmail_template_processInput | EmailTemplateProcessTagsMappingCreateManyEmail_template_processInput[]
  }

  export type EmailTemplateCreateWithoutEmail_template_processInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutEmail_templatesInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_templateInput
    created?: UserCreateNestedOneWithoutCreated_email_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_email_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_email_templatesInput
  }

  export type EmailTemplateUncheckedCreateWithoutEmail_template_processInput = {
    id?: number
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    deleted_by?: number | null
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_templateInput
  }

  export type EmailTemplateCreateOrConnectWithoutEmail_template_processInput = {
    where: EmailTemplateWhereUniqueInput
    create: XOR<EmailTemplateCreateWithoutEmail_template_processInput, EmailTemplateUncheckedCreateWithoutEmail_template_processInput>
  }

  export type EmailTemplateCreateManyEmail_template_processInputEnvelope = {
    data: EmailTemplateCreateManyEmail_template_processInput | EmailTemplateCreateManyEmail_template_processInput[]
  }

  export type EmailTemplateAssignmentCreateWithoutEmail_template_processInput = {
    uuid?: string
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
    email_template: EmailTemplateCreateNestedOneWithoutEmail_template_assignmentsInput
    created: UserCreateNestedOneWithoutCreated_email_template_assignmentsInput
  }

  export type EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput = {
    id?: number
    uuid?: string
    template_id: number
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
    created_by: number
  }

  export type EmailTemplateAssignmentCreateOrConnectWithoutEmail_template_processInput = {
    where: EmailTemplateAssignmentWhereUniqueInput
    create: XOR<EmailTemplateAssignmentCreateWithoutEmail_template_processInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput>
  }

  export type EmailTemplateAssignmentCreateManyEmail_template_processInputEnvelope = {
    data: EmailTemplateAssignmentCreateManyEmail_template_processInput | EmailTemplateAssignmentCreateManyEmail_template_processInput[]
  }

  export type StatusUpsertWithoutEmail_template_processesInput = {
    update: XOR<StatusUpdateWithoutEmail_template_processesInput, StatusUncheckedUpdateWithoutEmail_template_processesInput>
    create: XOR<StatusCreateWithoutEmail_template_processesInput, StatusUncheckedCreateWithoutEmail_template_processesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutEmail_template_processesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutEmail_template_processesInput, StatusUncheckedUpdateWithoutEmail_template_processesInput>
  }

  export type StatusUpdateWithoutEmail_template_processesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutEmail_template_processesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_processInput = {
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
    update: XOR<EmailTemplateProcessTagsMappingUpdateWithoutEmail_template_processInput, EmailTemplateProcessTagsMappingUncheckedUpdateWithoutEmail_template_processInput>
    create: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_processInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_processInput>
  }

  export type EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_processInput = {
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
    data: XOR<EmailTemplateProcessTagsMappingUpdateWithoutEmail_template_processInput, EmailTemplateProcessTagsMappingUncheckedUpdateWithoutEmail_template_processInput>
  }

  export type EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_processInput = {
    where: EmailTemplateProcessTagsMappingScalarWhereInput
    data: XOR<EmailTemplateProcessTagsMappingUpdateManyMutationInput, EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_processInput>
  }

  export type EmailTemplateProcessTagsMappingScalarWhereInput = {
    AND?: EmailTemplateProcessTagsMappingScalarWhereInput | EmailTemplateProcessTagsMappingScalarWhereInput[]
    OR?: EmailTemplateProcessTagsMappingScalarWhereInput[]
    NOT?: EmailTemplateProcessTagsMappingScalarWhereInput | EmailTemplateProcessTagsMappingScalarWhereInput[]
    email_template_process_id?: IntFilter<"EmailTemplateProcessTagsMapping"> | number
    email_template_tag_id?: IntFilter<"EmailTemplateProcessTagsMapping"> | number
    company_id?: IntFilter<"EmailTemplateProcessTagsMapping"> | number
  }

  export type EmailTemplateUpsertWithWhereUniqueWithoutEmail_template_processInput = {
    where: EmailTemplateWhereUniqueInput
    update: XOR<EmailTemplateUpdateWithoutEmail_template_processInput, EmailTemplateUncheckedUpdateWithoutEmail_template_processInput>
    create: XOR<EmailTemplateCreateWithoutEmail_template_processInput, EmailTemplateUncheckedCreateWithoutEmail_template_processInput>
  }

  export type EmailTemplateUpdateWithWhereUniqueWithoutEmail_template_processInput = {
    where: EmailTemplateWhereUniqueInput
    data: XOR<EmailTemplateUpdateWithoutEmail_template_processInput, EmailTemplateUncheckedUpdateWithoutEmail_template_processInput>
  }

  export type EmailTemplateUpdateManyWithWhereWithoutEmail_template_processInput = {
    where: EmailTemplateScalarWhereInput
    data: XOR<EmailTemplateUpdateManyMutationInput, EmailTemplateUncheckedUpdateManyWithoutEmail_template_processInput>
  }

  export type EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_template_processInput = {
    where: EmailTemplateAssignmentWhereUniqueInput
    update: XOR<EmailTemplateAssignmentUpdateWithoutEmail_template_processInput, EmailTemplateAssignmentUncheckedUpdateWithoutEmail_template_processInput>
    create: XOR<EmailTemplateAssignmentCreateWithoutEmail_template_processInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_template_processInput>
  }

  export type EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_template_processInput = {
    where: EmailTemplateAssignmentWhereUniqueInput
    data: XOR<EmailTemplateAssignmentUpdateWithoutEmail_template_processInput, EmailTemplateAssignmentUncheckedUpdateWithoutEmail_template_processInput>
  }

  export type EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_template_processInput = {
    where: EmailTemplateAssignmentScalarWhereInput
    data: XOR<EmailTemplateAssignmentUpdateManyMutationInput, EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_template_processInput>
  }

  export type StatusCreateWithoutEmail_template_tagsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutEmail_template_tagsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutEmail_template_tagsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutEmail_template_tagsInput, StatusUncheckedCreateWithoutEmail_template_tagsInput>
  }

  export type EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput = {
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_template_groupsInput
  }

  export type EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput = {
    email_template_process_id: number
  }

  export type EmailTemplateProcessTagsMappingCreateOrConnectWithoutEmail_template_tagInput = {
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
    create: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput>
  }

  export type EmailTemplateProcessTagsMappingCreateManyEmail_template_tagInputEnvelope = {
    data: EmailTemplateProcessTagsMappingCreateManyEmail_template_tagInput | EmailTemplateProcessTagsMappingCreateManyEmail_template_tagInput[]
  }

  export type StatusUpsertWithoutEmail_template_tagsInput = {
    update: XOR<StatusUpdateWithoutEmail_template_tagsInput, StatusUncheckedUpdateWithoutEmail_template_tagsInput>
    create: XOR<StatusCreateWithoutEmail_template_tagsInput, StatusUncheckedCreateWithoutEmail_template_tagsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutEmail_template_tagsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutEmail_template_tagsInput, StatusUncheckedUpdateWithoutEmail_template_tagsInput>
  }

  export type StatusUpdateWithoutEmail_template_tagsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutEmail_template_tagsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type EmailTemplateProcessTagsMappingUpsertWithWhereUniqueWithoutEmail_template_tagInput = {
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
    update: XOR<EmailTemplateProcessTagsMappingUpdateWithoutEmail_template_tagInput, EmailTemplateProcessTagsMappingUncheckedUpdateWithoutEmail_template_tagInput>
    create: XOR<EmailTemplateProcessTagsMappingCreateWithoutEmail_template_tagInput, EmailTemplateProcessTagsMappingUncheckedCreateWithoutEmail_template_tagInput>
  }

  export type EmailTemplateProcessTagsMappingUpdateWithWhereUniqueWithoutEmail_template_tagInput = {
    where: EmailTemplateProcessTagsMappingWhereUniqueInput
    data: XOR<EmailTemplateProcessTagsMappingUpdateWithoutEmail_template_tagInput, EmailTemplateProcessTagsMappingUncheckedUpdateWithoutEmail_template_tagInput>
  }

  export type EmailTemplateProcessTagsMappingUpdateManyWithWhereWithoutEmail_template_tagInput = {
    where: EmailTemplateProcessTagsMappingScalarWhereInput
    data: XOR<EmailTemplateProcessTagsMappingUpdateManyMutationInput, EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_tagInput>
  }

  export type StatusCreateWithoutEmail_template_receiver_tagsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutEmail_template_receiver_tagsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutEmail_template_receiver_tagsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutEmail_template_receiver_tagsInput, StatusUncheckedCreateWithoutEmail_template_receiver_tagsInput>
  }

  export type StatusUpsertWithoutEmail_template_receiver_tagsInput = {
    update: XOR<StatusUpdateWithoutEmail_template_receiver_tagsInput, StatusUncheckedUpdateWithoutEmail_template_receiver_tagsInput>
    create: XOR<StatusCreateWithoutEmail_template_receiver_tagsInput, StatusUncheckedCreateWithoutEmail_template_receiver_tagsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutEmail_template_receiver_tagsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutEmail_template_receiver_tagsInput, StatusUncheckedUpdateWithoutEmail_template_receiver_tagsInput>
  }

  export type StatusUpdateWithoutEmail_template_receiver_tagsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutEmail_template_receiver_tagsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type EmailTemplateProcessCreateWithoutEmail_template_groupsInput = {
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    company_id: number
    status?: StatusCreateNestedOneWithoutEmail_template_processesInput
    email_templates?: EmailTemplateCreateNestedManyWithoutEmail_template_processInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessUncheckedCreateWithoutEmail_template_groupsInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    status_id?: number
    company_id: number
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutEmail_template_processInput
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessCreateOrConnectWithoutEmail_template_groupsInput = {
    where: EmailTemplateProcessWhereUniqueInput
    create: XOR<EmailTemplateProcessCreateWithoutEmail_template_groupsInput, EmailTemplateProcessUncheckedCreateWithoutEmail_template_groupsInput>
  }

  export type EmailTemplateTagCreateWithoutEmail_template_groupsInput = {
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    company_id: number
    status?: StatusCreateNestedOneWithoutEmail_template_tagsInput
  }

  export type EmailTemplateTagUncheckedCreateWithoutEmail_template_groupsInput = {
    id?: number
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    status_id?: number
    company_id: number
  }

  export type EmailTemplateTagCreateOrConnectWithoutEmail_template_groupsInput = {
    where: EmailTemplateTagWhereUniqueInput
    create: XOR<EmailTemplateTagCreateWithoutEmail_template_groupsInput, EmailTemplateTagUncheckedCreateWithoutEmail_template_groupsInput>
  }

  export type EmailTemplateProcessUpsertWithoutEmail_template_groupsInput = {
    update: XOR<EmailTemplateProcessUpdateWithoutEmail_template_groupsInput, EmailTemplateProcessUncheckedUpdateWithoutEmail_template_groupsInput>
    create: XOR<EmailTemplateProcessCreateWithoutEmail_template_groupsInput, EmailTemplateProcessUncheckedCreateWithoutEmail_template_groupsInput>
    where?: EmailTemplateProcessWhereInput
  }

  export type EmailTemplateProcessUpdateToOneWithWhereWithoutEmail_template_groupsInput = {
    where?: EmailTemplateProcessWhereInput
    data: XOR<EmailTemplateProcessUpdateWithoutEmail_template_groupsInput, EmailTemplateProcessUncheckedUpdateWithoutEmail_template_groupsInput>
  }

  export type EmailTemplateProcessUpdateWithoutEmail_template_groupsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    status?: StatusUpdateOneRequiredWithoutEmail_template_processesNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutEmail_template_processNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateProcessUncheckedUpdateWithoutEmail_template_groupsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutEmail_template_processNestedInput
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateTagUpsertWithoutEmail_template_groupsInput = {
    update: XOR<EmailTemplateTagUpdateWithoutEmail_template_groupsInput, EmailTemplateTagUncheckedUpdateWithoutEmail_template_groupsInput>
    create: XOR<EmailTemplateTagCreateWithoutEmail_template_groupsInput, EmailTemplateTagUncheckedCreateWithoutEmail_template_groupsInput>
    where?: EmailTemplateTagWhereInput
  }

  export type EmailTemplateTagUpdateToOneWithWhereWithoutEmail_template_groupsInput = {
    where?: EmailTemplateTagWhereInput
    data: XOR<EmailTemplateTagUpdateWithoutEmail_template_groupsInput, EmailTemplateTagUncheckedUpdateWithoutEmail_template_groupsInput>
  }

  export type EmailTemplateTagUpdateWithoutEmail_template_groupsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    status?: StatusUpdateOneRequiredWithoutEmail_template_tagsNestedInput
  }

  export type EmailTemplateTagUncheckedUpdateWithoutEmail_template_groupsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type StatusCreateWithoutEmail_templatesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutEmail_templatesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutEmail_templatesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutEmail_templatesInput, StatusUncheckedCreateWithoutEmail_templatesInput>
  }

  export type EmailTemplateProcessCreateWithoutEmail_templatesInput = {
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    company_id: number
    status?: StatusCreateNestedOneWithoutEmail_template_processesInput
    email_template_groups?: EmailTemplateProcessTagsMappingCreateNestedManyWithoutEmail_template_processInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessUncheckedCreateWithoutEmail_templatesInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    status_id?: number
    company_id: number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedCreateNestedManyWithoutEmail_template_processInput
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessCreateOrConnectWithoutEmail_templatesInput = {
    where: EmailTemplateProcessWhereUniqueInput
    create: XOR<EmailTemplateProcessCreateWithoutEmail_templatesInput, EmailTemplateProcessUncheckedCreateWithoutEmail_templatesInput>
  }

  export type EmailTemplateAssignmentCreateWithoutEmail_templateInput = {
    uuid?: string
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_template_assignmentsInput
    created: UserCreateNestedOneWithoutCreated_email_template_assignmentsInput
  }

  export type EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput = {
    id?: number
    uuid?: string
    email_template_process_id: number
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
    created_by: number
  }

  export type EmailTemplateAssignmentCreateOrConnectWithoutEmail_templateInput = {
    where: EmailTemplateAssignmentWhereUniqueInput
    create: XOR<EmailTemplateAssignmentCreateWithoutEmail_templateInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput>
  }

  export type EmailTemplateAssignmentCreateManyEmail_templateInputEnvelope = {
    data: EmailTemplateAssignmentCreateManyEmail_templateInput | EmailTemplateAssignmentCreateManyEmail_templateInput[]
  }

  export type UserCreateWithoutCreated_email_templatesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_email_templatesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_email_templatesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_email_templatesInput, UserUncheckedCreateWithoutCreated_email_templatesInput>
  }

  export type UserCreateWithoutUpdated_email_templatesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_email_templatesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_email_templatesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_email_templatesInput, UserUncheckedCreateWithoutUpdated_email_templatesInput>
  }

  export type UserCreateWithoutDeleted_email_templatesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_email_templatesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_email_templatesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_email_templatesInput, UserUncheckedCreateWithoutDeleted_email_templatesInput>
  }

  export type StatusUpsertWithoutEmail_templatesInput = {
    update: XOR<StatusUpdateWithoutEmail_templatesInput, StatusUncheckedUpdateWithoutEmail_templatesInput>
    create: XOR<StatusCreateWithoutEmail_templatesInput, StatusUncheckedCreateWithoutEmail_templatesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutEmail_templatesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutEmail_templatesInput, StatusUncheckedUpdateWithoutEmail_templatesInput>
  }

  export type StatusUpdateWithoutEmail_templatesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutEmail_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type EmailTemplateProcessUpsertWithoutEmail_templatesInput = {
    update: XOR<EmailTemplateProcessUpdateWithoutEmail_templatesInput, EmailTemplateProcessUncheckedUpdateWithoutEmail_templatesInput>
    create: XOR<EmailTemplateProcessCreateWithoutEmail_templatesInput, EmailTemplateProcessUncheckedCreateWithoutEmail_templatesInput>
    where?: EmailTemplateProcessWhereInput
  }

  export type EmailTemplateProcessUpdateToOneWithWhereWithoutEmail_templatesInput = {
    where?: EmailTemplateProcessWhereInput
    data: XOR<EmailTemplateProcessUpdateWithoutEmail_templatesInput, EmailTemplateProcessUncheckedUpdateWithoutEmail_templatesInput>
  }

  export type EmailTemplateProcessUpdateWithoutEmail_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    status?: StatusUpdateOneRequiredWithoutEmail_template_processesNestedInput
    email_template_groups?: EmailTemplateProcessTagsMappingUpdateManyWithoutEmail_template_processNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateProcessUncheckedUpdateWithoutEmail_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_processNestedInput
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateAssignmentUpsertWithWhereUniqueWithoutEmail_templateInput = {
    where: EmailTemplateAssignmentWhereUniqueInput
    update: XOR<EmailTemplateAssignmentUpdateWithoutEmail_templateInput, EmailTemplateAssignmentUncheckedUpdateWithoutEmail_templateInput>
    create: XOR<EmailTemplateAssignmentCreateWithoutEmail_templateInput, EmailTemplateAssignmentUncheckedCreateWithoutEmail_templateInput>
  }

  export type EmailTemplateAssignmentUpdateWithWhereUniqueWithoutEmail_templateInput = {
    where: EmailTemplateAssignmentWhereUniqueInput
    data: XOR<EmailTemplateAssignmentUpdateWithoutEmail_templateInput, EmailTemplateAssignmentUncheckedUpdateWithoutEmail_templateInput>
  }

  export type EmailTemplateAssignmentUpdateManyWithWhereWithoutEmail_templateInput = {
    where: EmailTemplateAssignmentScalarWhereInput
    data: XOR<EmailTemplateAssignmentUpdateManyMutationInput, EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_templateInput>
  }

  export type UserUpsertWithoutCreated_email_templatesInput = {
    update: XOR<UserUpdateWithoutCreated_email_templatesInput, UserUncheckedUpdateWithoutCreated_email_templatesInput>
    create: XOR<UserCreateWithoutCreated_email_templatesInput, UserUncheckedCreateWithoutCreated_email_templatesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_email_templatesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_email_templatesInput, UserUncheckedUpdateWithoutCreated_email_templatesInput>
  }

  export type UserUpdateWithoutCreated_email_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_email_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_email_templatesInput = {
    update: XOR<UserUpdateWithoutUpdated_email_templatesInput, UserUncheckedUpdateWithoutUpdated_email_templatesInput>
    create: XOR<UserCreateWithoutUpdated_email_templatesInput, UserUncheckedCreateWithoutUpdated_email_templatesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_email_templatesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_email_templatesInput, UserUncheckedUpdateWithoutUpdated_email_templatesInput>
  }

  export type UserUpdateWithoutUpdated_email_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_email_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_email_templatesInput = {
    update: XOR<UserUpdateWithoutDeleted_email_templatesInput, UserUncheckedUpdateWithoutDeleted_email_templatesInput>
    create: XOR<UserCreateWithoutDeleted_email_templatesInput, UserUncheckedCreateWithoutDeleted_email_templatesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_email_templatesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_email_templatesInput, UserUncheckedUpdateWithoutDeleted_email_templatesInput>
  }

  export type UserUpdateWithoutDeleted_email_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_email_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type EmailTemplateProcessCreateWithoutEmail_template_assignmentsInput = {
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    company_id: number
    status?: StatusCreateNestedOneWithoutEmail_template_processesInput
    email_template_groups?: EmailTemplateProcessTagsMappingCreateNestedManyWithoutEmail_template_processInput
    email_templates?: EmailTemplateCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessUncheckedCreateWithoutEmail_template_assignmentsInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    status_id?: number
    company_id: number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedCreateNestedManyWithoutEmail_template_processInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessCreateOrConnectWithoutEmail_template_assignmentsInput = {
    where: EmailTemplateProcessWhereUniqueInput
    create: XOR<EmailTemplateProcessCreateWithoutEmail_template_assignmentsInput, EmailTemplateProcessUncheckedCreateWithoutEmail_template_assignmentsInput>
  }

  export type EmailTemplateCreateWithoutEmail_template_assignmentsInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutEmail_templatesInput
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_templatesInput
    created?: UserCreateNestedOneWithoutCreated_email_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_email_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_email_templatesInput
  }

  export type EmailTemplateUncheckedCreateWithoutEmail_template_assignmentsInput = {
    id?: number
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    deleted_by?: number | null
    company_id: number
  }

  export type EmailTemplateCreateOrConnectWithoutEmail_template_assignmentsInput = {
    where: EmailTemplateWhereUniqueInput
    create: XOR<EmailTemplateCreateWithoutEmail_template_assignmentsInput, EmailTemplateUncheckedCreateWithoutEmail_template_assignmentsInput>
  }

  export type UserCreateWithoutCreated_email_template_assignmentsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_email_template_assignmentsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_email_template_assignmentsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_email_template_assignmentsInput, UserUncheckedCreateWithoutCreated_email_template_assignmentsInput>
  }

  export type EmailTemplateProcessUpsertWithoutEmail_template_assignmentsInput = {
    update: XOR<EmailTemplateProcessUpdateWithoutEmail_template_assignmentsInput, EmailTemplateProcessUncheckedUpdateWithoutEmail_template_assignmentsInput>
    create: XOR<EmailTemplateProcessCreateWithoutEmail_template_assignmentsInput, EmailTemplateProcessUncheckedCreateWithoutEmail_template_assignmentsInput>
    where?: EmailTemplateProcessWhereInput
  }

  export type EmailTemplateProcessUpdateToOneWithWhereWithoutEmail_template_assignmentsInput = {
    where?: EmailTemplateProcessWhereInput
    data: XOR<EmailTemplateProcessUpdateWithoutEmail_template_assignmentsInput, EmailTemplateProcessUncheckedUpdateWithoutEmail_template_assignmentsInput>
  }

  export type EmailTemplateProcessUpdateWithoutEmail_template_assignmentsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    status?: StatusUpdateOneRequiredWithoutEmail_template_processesNestedInput
    email_template_groups?: EmailTemplateProcessTagsMappingUpdateManyWithoutEmail_template_processNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateProcessUncheckedUpdateWithoutEmail_template_assignmentsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_processNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateUpsertWithoutEmail_template_assignmentsInput = {
    update: XOR<EmailTemplateUpdateWithoutEmail_template_assignmentsInput, EmailTemplateUncheckedUpdateWithoutEmail_template_assignmentsInput>
    create: XOR<EmailTemplateCreateWithoutEmail_template_assignmentsInput, EmailTemplateUncheckedCreateWithoutEmail_template_assignmentsInput>
    where?: EmailTemplateWhereInput
  }

  export type EmailTemplateUpdateToOneWithWhereWithoutEmail_template_assignmentsInput = {
    where?: EmailTemplateWhereInput
    data: XOR<EmailTemplateUpdateWithoutEmail_template_assignmentsInput, EmailTemplateUncheckedUpdateWithoutEmail_template_assignmentsInput>
  }

  export type EmailTemplateUpdateWithoutEmail_template_assignmentsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_email_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_email_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_email_templatesNestedInput
  }

  export type EmailTemplateUncheckedUpdateWithoutEmail_template_assignmentsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserUpsertWithoutCreated_email_template_assignmentsInput = {
    update: XOR<UserUpdateWithoutCreated_email_template_assignmentsInput, UserUncheckedUpdateWithoutCreated_email_template_assignmentsInput>
    create: XOR<UserCreateWithoutCreated_email_template_assignmentsInput, UserUncheckedCreateWithoutCreated_email_template_assignmentsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_email_template_assignmentsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_email_template_assignmentsInput, UserUncheckedUpdateWithoutCreated_email_template_assignmentsInput>
  }

  export type UserUpdateWithoutCreated_email_template_assignmentsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_email_template_assignmentsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutEmail_process_jobsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutEmail_process_jobsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutEmail_process_jobsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutEmail_process_jobsInput, StatusUncheckedCreateWithoutEmail_process_jobsInput>
  }

  export type UserCreateWithoutCreated_email_process_jobsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_email_process_jobsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_email_process_jobsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_email_process_jobsInput, UserUncheckedCreateWithoutCreated_email_process_jobsInput>
  }

  export type StatusUpsertWithoutEmail_process_jobsInput = {
    update: XOR<StatusUpdateWithoutEmail_process_jobsInput, StatusUncheckedUpdateWithoutEmail_process_jobsInput>
    create: XOR<StatusCreateWithoutEmail_process_jobsInput, StatusUncheckedCreateWithoutEmail_process_jobsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutEmail_process_jobsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutEmail_process_jobsInput, StatusUncheckedUpdateWithoutEmail_process_jobsInput>
  }

  export type StatusUpdateWithoutEmail_process_jobsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutEmail_process_jobsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserUpsertWithoutCreated_email_process_jobsInput = {
    update: XOR<UserUpdateWithoutCreated_email_process_jobsInput, UserUncheckedUpdateWithoutCreated_email_process_jobsInput>
    create: XOR<UserCreateWithoutCreated_email_process_jobsInput, UserUncheckedCreateWithoutCreated_email_process_jobsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_email_process_jobsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_email_process_jobsInput, UserUncheckedUpdateWithoutCreated_email_process_jobsInput>
  }

  export type UserUpdateWithoutCreated_email_process_jobsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_email_process_jobsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutNotification_jobInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutNotification_jobInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutNotification_jobInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutNotification_jobInput, StatusUncheckedCreateWithoutNotification_jobInput>
  }

  export type UserCreateWithoutCreated_notification_jobInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_notification_jobInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_notification_jobInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_notification_jobInput, UserUncheckedCreateWithoutCreated_notification_jobInput>
  }

  export type StatusUpsertWithoutNotification_jobInput = {
    update: XOR<StatusUpdateWithoutNotification_jobInput, StatusUncheckedUpdateWithoutNotification_jobInput>
    create: XOR<StatusCreateWithoutNotification_jobInput, StatusUncheckedCreateWithoutNotification_jobInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutNotification_jobInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutNotification_jobInput, StatusUncheckedUpdateWithoutNotification_jobInput>
  }

  export type StatusUpdateWithoutNotification_jobInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutNotification_jobInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserUpsertWithoutCreated_notification_jobInput = {
    update: XOR<UserUpdateWithoutCreated_notification_jobInput, UserUncheckedUpdateWithoutCreated_notification_jobInput>
    create: XOR<UserCreateWithoutCreated_notification_jobInput, UserUncheckedCreateWithoutCreated_notification_jobInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_notification_jobInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_notification_jobInput, UserUncheckedUpdateWithoutCreated_notification_jobInput>
  }

  export type UserUpdateWithoutCreated_notification_jobInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_notification_jobInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutImport_templatesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutImport_templatesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutImport_templatesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutImport_templatesInput, StatusUncheckedCreateWithoutImport_templatesInput>
  }

  export type UserCreateWithoutCreated_import_templatesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_import_templatesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_import_templatesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_import_templatesInput, UserUncheckedCreateWithoutCreated_import_templatesInput>
  }

  export type UserCreateWithoutUpdated_import_templatesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_import_templatesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_import_templatesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_import_templatesInput, UserUncheckedCreateWithoutUpdated_import_templatesInput>
  }

  export type UserCreateWithoutDeleted_import_templatesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_import_templatesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_import_templatesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_import_templatesInput, UserUncheckedCreateWithoutDeleted_import_templatesInput>
  }

  export type ImportTemplateLineItemCreateWithoutImport_templateInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutImport_template_line_itemsInput
    field_type?: FieldTypeCreateNestedOneWithoutImportTemplateLineItemInput
  }

  export type ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput = {
    id?: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    status_id?: number
    created_at?: Date | string
  }

  export type ImportTemplateLineItemCreateOrConnectWithoutImport_templateInput = {
    where: ImportTemplateLineItemWhereUniqueInput
    create: XOR<ImportTemplateLineItemCreateWithoutImport_templateInput, ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput>
  }

  export type ImportTemplateLineItemCreateManyImport_templateInputEnvelope = {
    data: ImportTemplateLineItemCreateManyImport_templateInput | ImportTemplateLineItemCreateManyImport_templateInput[]
  }

  export type ImportTemplateQueriesCreateWithoutImport_templateInput = {
    query_string?: string | null
    query_name: string
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutImport_template_queriesInput
  }

  export type ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput = {
    id?: number
    query_string?: string | null
    query_name: string
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    created_at?: Date | string
  }

  export type ImportTemplateQueriesCreateOrConnectWithoutImport_templateInput = {
    where: ImportTemplateQueriesWhereUniqueInput
    create: XOR<ImportTemplateQueriesCreateWithoutImport_templateInput, ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput>
  }

  export type ImportTemplateQueriesCreateManyImport_templateInputEnvelope = {
    data: ImportTemplateQueriesCreateManyImport_templateInput | ImportTemplateQueriesCreateManyImport_templateInput[]
  }

  export type StatusUpsertWithoutImport_templatesInput = {
    update: XOR<StatusUpdateWithoutImport_templatesInput, StatusUncheckedUpdateWithoutImport_templatesInput>
    create: XOR<StatusCreateWithoutImport_templatesInput, StatusUncheckedCreateWithoutImport_templatesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutImport_templatesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutImport_templatesInput, StatusUncheckedUpdateWithoutImport_templatesInput>
  }

  export type StatusUpdateWithoutImport_templatesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutImport_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserUpsertWithoutCreated_import_templatesInput = {
    update: XOR<UserUpdateWithoutCreated_import_templatesInput, UserUncheckedUpdateWithoutCreated_import_templatesInput>
    create: XOR<UserCreateWithoutCreated_import_templatesInput, UserUncheckedCreateWithoutCreated_import_templatesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_import_templatesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_import_templatesInput, UserUncheckedUpdateWithoutCreated_import_templatesInput>
  }

  export type UserUpdateWithoutCreated_import_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_import_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_import_templatesInput = {
    update: XOR<UserUpdateWithoutUpdated_import_templatesInput, UserUncheckedUpdateWithoutUpdated_import_templatesInput>
    create: XOR<UserCreateWithoutUpdated_import_templatesInput, UserUncheckedCreateWithoutUpdated_import_templatesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_import_templatesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_import_templatesInput, UserUncheckedUpdateWithoutUpdated_import_templatesInput>
  }

  export type UserUpdateWithoutUpdated_import_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_import_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_import_templatesInput = {
    update: XOR<UserUpdateWithoutDeleted_import_templatesInput, UserUncheckedUpdateWithoutDeleted_import_templatesInput>
    create: XOR<UserCreateWithoutDeleted_import_templatesInput, UserUncheckedCreateWithoutDeleted_import_templatesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_import_templatesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_import_templatesInput, UserUncheckedUpdateWithoutDeleted_import_templatesInput>
  }

  export type UserUpdateWithoutDeleted_import_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_import_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type ImportTemplateLineItemUpsertWithWhereUniqueWithoutImport_templateInput = {
    where: ImportTemplateLineItemWhereUniqueInput
    update: XOR<ImportTemplateLineItemUpdateWithoutImport_templateInput, ImportTemplateLineItemUncheckedUpdateWithoutImport_templateInput>
    create: XOR<ImportTemplateLineItemCreateWithoutImport_templateInput, ImportTemplateLineItemUncheckedCreateWithoutImport_templateInput>
  }

  export type ImportTemplateLineItemUpdateWithWhereUniqueWithoutImport_templateInput = {
    where: ImportTemplateLineItemWhereUniqueInput
    data: XOR<ImportTemplateLineItemUpdateWithoutImport_templateInput, ImportTemplateLineItemUncheckedUpdateWithoutImport_templateInput>
  }

  export type ImportTemplateLineItemUpdateManyWithWhereWithoutImport_templateInput = {
    where: ImportTemplateLineItemScalarWhereInput
    data: XOR<ImportTemplateLineItemUpdateManyMutationInput, ImportTemplateLineItemUncheckedUpdateManyWithoutImport_templateInput>
  }

  export type ImportTemplateQueriesUpsertWithWhereUniqueWithoutImport_templateInput = {
    where: ImportTemplateQueriesWhereUniqueInput
    update: XOR<ImportTemplateQueriesUpdateWithoutImport_templateInput, ImportTemplateQueriesUncheckedUpdateWithoutImport_templateInput>
    create: XOR<ImportTemplateQueriesCreateWithoutImport_templateInput, ImportTemplateQueriesUncheckedCreateWithoutImport_templateInput>
  }

  export type ImportTemplateQueriesUpdateWithWhereUniqueWithoutImport_templateInput = {
    where: ImportTemplateQueriesWhereUniqueInput
    data: XOR<ImportTemplateQueriesUpdateWithoutImport_templateInput, ImportTemplateQueriesUncheckedUpdateWithoutImport_templateInput>
  }

  export type ImportTemplateQueriesUpdateManyWithWhereWithoutImport_templateInput = {
    where: ImportTemplateQueriesScalarWhereInput
    data: XOR<ImportTemplateQueriesUpdateManyMutationInput, ImportTemplateQueriesUncheckedUpdateManyWithoutImport_templateInput>
  }

  export type ImportTemplateQueriesScalarWhereInput = {
    AND?: ImportTemplateQueriesScalarWhereInput | ImportTemplateQueriesScalarWhereInput[]
    OR?: ImportTemplateQueriesScalarWhereInput[]
    NOT?: ImportTemplateQueriesScalarWhereInput | ImportTemplateQueriesScalarWhereInput[]
    id?: IntFilter<"ImportTemplateQueries"> | number
    import_template_id?: IntFilter<"ImportTemplateQueries"> | number
    query_string?: StringNullableFilter<"ImportTemplateQueries"> | string | null
    query_name?: StringFilter<"ImportTemplateQueries"> | string
    allow_multiple?: BoolFilter<"ImportTemplateQueries"> | boolean
    is_individual?: BoolFilter<"ImportTemplateQueries"> | boolean
    before_lineitems?: BoolFilter<"ImportTemplateQueries"> | boolean
    order_no?: DecimalFilter<"ImportTemplateQueries"> | Decimal | DecimalJsLike | number | string
    status_id?: IntFilter<"ImportTemplateQueries"> | number
    company_id?: IntFilter<"ImportTemplateQueries"> | number
    created_at?: DateTimeFilter<"ImportTemplateQueries"> | Date | string
  }

  export type StatusCreateWithoutImport_template_line_itemsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutImport_template_line_itemsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutImport_template_line_itemsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutImport_template_line_itemsInput, StatusUncheckedCreateWithoutImport_template_line_itemsInput>
  }

  export type ImportTemplateCreateWithoutLine_itemsInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_import_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_import_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_templatesInput
    queries?: ImportTemplateQueriesCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateUncheckedCreateWithoutLine_itemsInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateCreateOrConnectWithoutLine_itemsInput = {
    where: ImportTemplateWhereUniqueInput
    create: XOR<ImportTemplateCreateWithoutLine_itemsInput, ImportTemplateUncheckedCreateWithoutLine_itemsInput>
  }

  export type FieldTypeCreateWithoutImportTemplateLineItemInput = {
    field_type: string
    company_id: number
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutField_typesInput
    master_grid_lineitem?: MasterEntityLineItemCreateNestedManyWithoutField_typeInput
    exportTemplateLineItem?: ExportTemplateLineItemCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeUncheckedCreateWithoutImportTemplateLineItemInput = {
    id?: number
    field_type: string
    company_id: number
    status_id?: number
    created_at?: Date | string
    master_grid_lineitem?: MasterEntityLineItemUncheckedCreateNestedManyWithoutField_typeInput
    exportTemplateLineItem?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeCreateOrConnectWithoutImportTemplateLineItemInput = {
    where: FieldTypeWhereUniqueInput
    create: XOR<FieldTypeCreateWithoutImportTemplateLineItemInput, FieldTypeUncheckedCreateWithoutImportTemplateLineItemInput>
  }

  export type StatusUpsertWithoutImport_template_line_itemsInput = {
    update: XOR<StatusUpdateWithoutImport_template_line_itemsInput, StatusUncheckedUpdateWithoutImport_template_line_itemsInput>
    create: XOR<StatusCreateWithoutImport_template_line_itemsInput, StatusUncheckedCreateWithoutImport_template_line_itemsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutImport_template_line_itemsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutImport_template_line_itemsInput, StatusUncheckedUpdateWithoutImport_template_line_itemsInput>
  }

  export type StatusUpdateWithoutImport_template_line_itemsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutImport_template_line_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type ImportTemplateUpsertWithoutLine_itemsInput = {
    update: XOR<ImportTemplateUpdateWithoutLine_itemsInput, ImportTemplateUncheckedUpdateWithoutLine_itemsInput>
    create: XOR<ImportTemplateCreateWithoutLine_itemsInput, ImportTemplateUncheckedCreateWithoutLine_itemsInput>
    where?: ImportTemplateWhereInput
  }

  export type ImportTemplateUpdateToOneWithWhereWithoutLine_itemsInput = {
    where?: ImportTemplateWhereInput
    data: XOR<ImportTemplateUpdateWithoutLine_itemsInput, ImportTemplateUncheckedUpdateWithoutLine_itemsInput>
  }

  export type ImportTemplateUpdateWithoutLine_itemsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_import_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_templatesNestedInput
    queries?: ImportTemplateQueriesUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateWithoutLine_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutImport_templateNestedInput
  }

  export type FieldTypeUpsertWithoutImportTemplateLineItemInput = {
    update: XOR<FieldTypeUpdateWithoutImportTemplateLineItemInput, FieldTypeUncheckedUpdateWithoutImportTemplateLineItemInput>
    create: XOR<FieldTypeCreateWithoutImportTemplateLineItemInput, FieldTypeUncheckedCreateWithoutImportTemplateLineItemInput>
    where?: FieldTypeWhereInput
  }

  export type FieldTypeUpdateToOneWithWhereWithoutImportTemplateLineItemInput = {
    where?: FieldTypeWhereInput
    data: XOR<FieldTypeUpdateWithoutImportTemplateLineItemInput, FieldTypeUncheckedUpdateWithoutImportTemplateLineItemInput>
  }

  export type FieldTypeUpdateWithoutImportTemplateLineItemInput = {
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutField_typesNestedInput
    master_grid_lineitem?: MasterEntityLineItemUpdateManyWithoutField_typeNestedInput
    exportTemplateLineItem?: ExportTemplateLineItemUpdateManyWithoutField_typeNestedInput
  }

  export type FieldTypeUncheckedUpdateWithoutImportTemplateLineItemInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    master_grid_lineitem?: MasterEntityLineItemUncheckedUpdateManyWithoutField_typeNestedInput
    exportTemplateLineItem?: ExportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput
  }

  export type StatusCreateWithoutImport_template_queriesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutImport_template_queriesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutImport_template_queriesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutImport_template_queriesInput, StatusUncheckedCreateWithoutImport_template_queriesInput>
  }

  export type ImportTemplateCreateWithoutQueriesInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_import_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_import_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_templatesInput
    line_items?: ImportTemplateLineItemCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateUncheckedCreateWithoutQueriesInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateCreateOrConnectWithoutQueriesInput = {
    where: ImportTemplateWhereUniqueInput
    create: XOR<ImportTemplateCreateWithoutQueriesInput, ImportTemplateUncheckedCreateWithoutQueriesInput>
  }

  export type StatusUpsertWithoutImport_template_queriesInput = {
    update: XOR<StatusUpdateWithoutImport_template_queriesInput, StatusUncheckedUpdateWithoutImport_template_queriesInput>
    create: XOR<StatusCreateWithoutImport_template_queriesInput, StatusUncheckedCreateWithoutImport_template_queriesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutImport_template_queriesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutImport_template_queriesInput, StatusUncheckedUpdateWithoutImport_template_queriesInput>
  }

  export type StatusUpdateWithoutImport_template_queriesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutImport_template_queriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type ImportTemplateUpsertWithoutQueriesInput = {
    update: XOR<ImportTemplateUpdateWithoutQueriesInput, ImportTemplateUncheckedUpdateWithoutQueriesInput>
    create: XOR<ImportTemplateCreateWithoutQueriesInput, ImportTemplateUncheckedCreateWithoutQueriesInput>
    where?: ImportTemplateWhereInput
  }

  export type ImportTemplateUpdateToOneWithWhereWithoutQueriesInput = {
    where?: ImportTemplateWhereInput
    data: XOR<ImportTemplateUpdateWithoutQueriesInput, ImportTemplateUncheckedUpdateWithoutQueriesInput>
  }

  export type ImportTemplateUpdateWithoutQueriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_import_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_templatesNestedInput
    line_items?: ImportTemplateLineItemUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateWithoutQueriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutImport_templateNestedInput
  }

  export type StatusCreateWithoutImport_jobInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutImport_jobInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutImport_jobInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutImport_jobInput, StatusUncheckedCreateWithoutImport_jobInput>
  }

  export type UserCreateWithoutCreated_import_jobInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_import_jobInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_import_jobInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_import_jobInput, UserUncheckedCreateWithoutCreated_import_jobInput>
  }

  export type UserCreateWithoutUpdated_import_jobInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_import_jobInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_import_jobInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_import_jobInput, UserUncheckedCreateWithoutUpdated_import_jobInput>
  }

  export type UserCreateWithoutDeleted_import_jobInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
  }

  export type UserUncheckedCreateWithoutDeleted_import_jobInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
  }

  export type UserCreateOrConnectWithoutDeleted_import_jobInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_import_jobInput, UserUncheckedCreateWithoutDeleted_import_jobInput>
  }

  export type ImportJobLineItemCreateWithoutImport_jobInput = {
    row_object?: string | null
    job_status?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutImport_job_line_itemsInput
  }

  export type ImportJobLineItemUncheckedCreateWithoutImport_jobInput = {
    id?: number
    row_object?: string | null
    job_status?: string | null
    status_id?: number
    created_at?: Date | string
  }

  export type ImportJobLineItemCreateOrConnectWithoutImport_jobInput = {
    where: ImportJobLineItemWhereUniqueInput
    create: XOR<ImportJobLineItemCreateWithoutImport_jobInput, ImportJobLineItemUncheckedCreateWithoutImport_jobInput>
  }

  export type ImportJobLineItemCreateManyImport_jobInputEnvelope = {
    data: ImportJobLineItemCreateManyImport_jobInput | ImportJobLineItemCreateManyImport_jobInput[]
  }

  export type StatusUpsertWithoutImport_jobInput = {
    update: XOR<StatusUpdateWithoutImport_jobInput, StatusUncheckedUpdateWithoutImport_jobInput>
    create: XOR<StatusCreateWithoutImport_jobInput, StatusUncheckedCreateWithoutImport_jobInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutImport_jobInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutImport_jobInput, StatusUncheckedUpdateWithoutImport_jobInput>
  }

  export type StatusUpdateWithoutImport_jobInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutImport_jobInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserUpsertWithoutCreated_import_jobInput = {
    update: XOR<UserUpdateWithoutCreated_import_jobInput, UserUncheckedUpdateWithoutCreated_import_jobInput>
    create: XOR<UserCreateWithoutCreated_import_jobInput, UserUncheckedCreateWithoutCreated_import_jobInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_import_jobInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_import_jobInput, UserUncheckedUpdateWithoutCreated_import_jobInput>
  }

  export type UserUpdateWithoutCreated_import_jobInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_import_jobInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_import_jobInput = {
    update: XOR<UserUpdateWithoutUpdated_import_jobInput, UserUncheckedUpdateWithoutUpdated_import_jobInput>
    create: XOR<UserCreateWithoutUpdated_import_jobInput, UserUncheckedCreateWithoutUpdated_import_jobInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_import_jobInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_import_jobInput, UserUncheckedUpdateWithoutUpdated_import_jobInput>
  }

  export type UserUpdateWithoutUpdated_import_jobInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_import_jobInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_import_jobInput = {
    update: XOR<UserUpdateWithoutDeleted_import_jobInput, UserUncheckedUpdateWithoutDeleted_import_jobInput>
    create: XOR<UserCreateWithoutDeleted_import_jobInput, UserUncheckedCreateWithoutDeleted_import_jobInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_import_jobInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_import_jobInput, UserUncheckedUpdateWithoutDeleted_import_jobInput>
  }

  export type UserUpdateWithoutDeleted_import_jobInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_import_jobInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
  }

  export type ImportJobLineItemUpsertWithWhereUniqueWithoutImport_jobInput = {
    where: ImportJobLineItemWhereUniqueInput
    update: XOR<ImportJobLineItemUpdateWithoutImport_jobInput, ImportJobLineItemUncheckedUpdateWithoutImport_jobInput>
    create: XOR<ImportJobLineItemCreateWithoutImport_jobInput, ImportJobLineItemUncheckedCreateWithoutImport_jobInput>
  }

  export type ImportJobLineItemUpdateWithWhereUniqueWithoutImport_jobInput = {
    where: ImportJobLineItemWhereUniqueInput
    data: XOR<ImportJobLineItemUpdateWithoutImport_jobInput, ImportJobLineItemUncheckedUpdateWithoutImport_jobInput>
  }

  export type ImportJobLineItemUpdateManyWithWhereWithoutImport_jobInput = {
    where: ImportJobLineItemScalarWhereInput
    data: XOR<ImportJobLineItemUpdateManyMutationInput, ImportJobLineItemUncheckedUpdateManyWithoutImport_jobInput>
  }

  export type ImportJobLineItemScalarWhereInput = {
    AND?: ImportJobLineItemScalarWhereInput | ImportJobLineItemScalarWhereInput[]
    OR?: ImportJobLineItemScalarWhereInput[]
    NOT?: ImportJobLineItemScalarWhereInput | ImportJobLineItemScalarWhereInput[]
    id?: IntFilter<"ImportJobLineItem"> | number
    import_job_id?: IntFilter<"ImportJobLineItem"> | number
    row_object?: StringNullableFilter<"ImportJobLineItem"> | string | null
    job_status?: StringNullableFilter<"ImportJobLineItem"> | string | null
    status_id?: IntFilter<"ImportJobLineItem"> | number
    company_id?: IntFilter<"ImportJobLineItem"> | number
    created_at?: DateTimeFilter<"ImportJobLineItem"> | Date | string
  }

  export type StatusCreateWithoutImport_job_line_itemsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutImport_job_line_itemsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutImport_job_line_itemsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutImport_job_line_itemsInput, StatusUncheckedCreateWithoutImport_job_line_itemsInput>
  }

  export type ImportJobCreateWithoutLine_itemsInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutImport_jobInput
    created?: UserCreateNestedOneWithoutCreated_import_jobInput
    updated?: UserCreateNestedOneWithoutUpdated_import_jobInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_jobInput
  }

  export type ImportJobUncheckedCreateWithoutLine_itemsInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportJobCreateOrConnectWithoutLine_itemsInput = {
    where: ImportJobWhereUniqueInput
    create: XOR<ImportJobCreateWithoutLine_itemsInput, ImportJobUncheckedCreateWithoutLine_itemsInput>
  }

  export type StatusUpsertWithoutImport_job_line_itemsInput = {
    update: XOR<StatusUpdateWithoutImport_job_line_itemsInput, StatusUncheckedUpdateWithoutImport_job_line_itemsInput>
    create: XOR<StatusCreateWithoutImport_job_line_itemsInput, StatusUncheckedCreateWithoutImport_job_line_itemsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutImport_job_line_itemsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutImport_job_line_itemsInput, StatusUncheckedUpdateWithoutImport_job_line_itemsInput>
  }

  export type StatusUpdateWithoutImport_job_line_itemsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutImport_job_line_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type ImportJobUpsertWithoutLine_itemsInput = {
    update: XOR<ImportJobUpdateWithoutLine_itemsInput, ImportJobUncheckedUpdateWithoutLine_itemsInput>
    create: XOR<ImportJobCreateWithoutLine_itemsInput, ImportJobUncheckedCreateWithoutLine_itemsInput>
    where?: ImportJobWhereInput
  }

  export type ImportJobUpdateToOneWithWhereWithoutLine_itemsInput = {
    where?: ImportJobWhereInput
    data: XOR<ImportJobUpdateWithoutLine_itemsInput, ImportJobUncheckedUpdateWithoutLine_itemsInput>
  }

  export type ImportJobUpdateWithoutLine_itemsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_jobNestedInput
    created?: UserUpdateOneWithoutCreated_import_jobNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_jobNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_jobNestedInput
  }

  export type ImportJobUncheckedUpdateWithoutLine_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type StatusCreateWithoutExport_templatesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutExport_templatesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutExport_templatesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutExport_templatesInput, StatusUncheckedCreateWithoutExport_templatesInput>
  }

  export type UserCreateWithoutCreated_export_templatesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_export_templatesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_export_templatesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_export_templatesInput, UserUncheckedCreateWithoutCreated_export_templatesInput>
  }

  export type UserCreateWithoutUpdated_export_templatesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_export_templatesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_export_templatesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_export_templatesInput, UserUncheckedCreateWithoutUpdated_export_templatesInput>
  }

  export type UserCreateWithoutDeleted_export_templatesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_export_templatesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_export_templatesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_export_templatesInput, UserUncheckedCreateWithoutDeleted_export_templatesInput>
  }

  export type ExportTemplateLineItemCreateWithoutExport_templateInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutExport_template_line_itemsInput
    field_type?: FieldTypeCreateNestedOneWithoutExportTemplateLineItemInput
  }

  export type ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput = {
    id?: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    status_id?: number
    created_at?: Date | string
  }

  export type ExportTemplateLineItemCreateOrConnectWithoutExport_templateInput = {
    where: ExportTemplateLineItemWhereUniqueInput
    create: XOR<ExportTemplateLineItemCreateWithoutExport_templateInput, ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput>
  }

  export type ExportTemplateLineItemCreateManyExport_templateInputEnvelope = {
    data: ExportTemplateLineItemCreateManyExport_templateInput | ExportTemplateLineItemCreateManyExport_templateInput[]
  }

  export type ExportTemplateQueriesCreateWithoutExport_templateInput = {
    query_string?: string | null
    query_name: string
    query_procedure?: string
    is_individual?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutExport_template_queriesInput
  }

  export type ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput = {
    id?: number
    query_string?: string | null
    query_name: string
    query_procedure?: string
    is_individual?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    created_at?: Date | string
  }

  export type ExportTemplateQueriesCreateOrConnectWithoutExport_templateInput = {
    where: ExportTemplateQueriesWhereUniqueInput
    create: XOR<ExportTemplateQueriesCreateWithoutExport_templateInput, ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput>
  }

  export type ExportTemplateQueriesCreateManyExport_templateInputEnvelope = {
    data: ExportTemplateQueriesCreateManyExport_templateInput | ExportTemplateQueriesCreateManyExport_templateInput[]
  }

  export type StatusUpsertWithoutExport_templatesInput = {
    update: XOR<StatusUpdateWithoutExport_templatesInput, StatusUncheckedUpdateWithoutExport_templatesInput>
    create: XOR<StatusCreateWithoutExport_templatesInput, StatusUncheckedCreateWithoutExport_templatesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutExport_templatesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutExport_templatesInput, StatusUncheckedUpdateWithoutExport_templatesInput>
  }

  export type StatusUpdateWithoutExport_templatesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutExport_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserUpsertWithoutCreated_export_templatesInput = {
    update: XOR<UserUpdateWithoutCreated_export_templatesInput, UserUncheckedUpdateWithoutCreated_export_templatesInput>
    create: XOR<UserCreateWithoutCreated_export_templatesInput, UserUncheckedCreateWithoutCreated_export_templatesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_export_templatesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_export_templatesInput, UserUncheckedUpdateWithoutCreated_export_templatesInput>
  }

  export type UserUpdateWithoutCreated_export_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_export_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_export_templatesInput = {
    update: XOR<UserUpdateWithoutUpdated_export_templatesInput, UserUncheckedUpdateWithoutUpdated_export_templatesInput>
    create: XOR<UserCreateWithoutUpdated_export_templatesInput, UserUncheckedCreateWithoutUpdated_export_templatesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_export_templatesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_export_templatesInput, UserUncheckedUpdateWithoutUpdated_export_templatesInput>
  }

  export type UserUpdateWithoutUpdated_export_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_export_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_export_templatesInput = {
    update: XOR<UserUpdateWithoutDeleted_export_templatesInput, UserUncheckedUpdateWithoutDeleted_export_templatesInput>
    create: XOR<UserCreateWithoutDeleted_export_templatesInput, UserUncheckedCreateWithoutDeleted_export_templatesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_export_templatesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_export_templatesInput, UserUncheckedUpdateWithoutDeleted_export_templatesInput>
  }

  export type UserUpdateWithoutDeleted_export_templatesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_export_templatesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type ExportTemplateLineItemUpsertWithWhereUniqueWithoutExport_templateInput = {
    where: ExportTemplateLineItemWhereUniqueInput
    update: XOR<ExportTemplateLineItemUpdateWithoutExport_templateInput, ExportTemplateLineItemUncheckedUpdateWithoutExport_templateInput>
    create: XOR<ExportTemplateLineItemCreateWithoutExport_templateInput, ExportTemplateLineItemUncheckedCreateWithoutExport_templateInput>
  }

  export type ExportTemplateLineItemUpdateWithWhereUniqueWithoutExport_templateInput = {
    where: ExportTemplateLineItemWhereUniqueInput
    data: XOR<ExportTemplateLineItemUpdateWithoutExport_templateInput, ExportTemplateLineItemUncheckedUpdateWithoutExport_templateInput>
  }

  export type ExportTemplateLineItemUpdateManyWithWhereWithoutExport_templateInput = {
    where: ExportTemplateLineItemScalarWhereInput
    data: XOR<ExportTemplateLineItemUpdateManyMutationInput, ExportTemplateLineItemUncheckedUpdateManyWithoutExport_templateInput>
  }

  export type ExportTemplateQueriesUpsertWithWhereUniqueWithoutExport_templateInput = {
    where: ExportTemplateQueriesWhereUniqueInput
    update: XOR<ExportTemplateQueriesUpdateWithoutExport_templateInput, ExportTemplateQueriesUncheckedUpdateWithoutExport_templateInput>
    create: XOR<ExportTemplateQueriesCreateWithoutExport_templateInput, ExportTemplateQueriesUncheckedCreateWithoutExport_templateInput>
  }

  export type ExportTemplateQueriesUpdateWithWhereUniqueWithoutExport_templateInput = {
    where: ExportTemplateQueriesWhereUniqueInput
    data: XOR<ExportTemplateQueriesUpdateWithoutExport_templateInput, ExportTemplateQueriesUncheckedUpdateWithoutExport_templateInput>
  }

  export type ExportTemplateQueriesUpdateManyWithWhereWithoutExport_templateInput = {
    where: ExportTemplateQueriesScalarWhereInput
    data: XOR<ExportTemplateQueriesUpdateManyMutationInput, ExportTemplateQueriesUncheckedUpdateManyWithoutExport_templateInput>
  }

  export type ExportTemplateQueriesScalarWhereInput = {
    AND?: ExportTemplateQueriesScalarWhereInput | ExportTemplateQueriesScalarWhereInput[]
    OR?: ExportTemplateQueriesScalarWhereInput[]
    NOT?: ExportTemplateQueriesScalarWhereInput | ExportTemplateQueriesScalarWhereInput[]
    id?: IntFilter<"ExportTemplateQueries"> | number
    export_template_id?: IntFilter<"ExportTemplateQueries"> | number
    query_string?: StringNullableFilter<"ExportTemplateQueries"> | string | null
    query_name?: StringFilter<"ExportTemplateQueries"> | string
    query_procedure?: StringFilter<"ExportTemplateQueries"> | string
    is_individual?: BoolFilter<"ExportTemplateQueries"> | boolean
    order_no?: DecimalFilter<"ExportTemplateQueries"> | Decimal | DecimalJsLike | number | string
    status_id?: IntFilter<"ExportTemplateQueries"> | number
    company_id?: IntFilter<"ExportTemplateQueries"> | number
    created_at?: DateTimeFilter<"ExportTemplateQueries"> | Date | string
  }

  export type StatusCreateWithoutExport_template_line_itemsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutExport_template_line_itemsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutExport_template_line_itemsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutExport_template_line_itemsInput, StatusUncheckedCreateWithoutExport_template_line_itemsInput>
  }

  export type ExportTemplateCreateWithoutLine_itemsInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutExport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_export_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_export_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_export_templatesInput
    queries?: ExportTemplateQueriesCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateUncheckedCreateWithoutLine_itemsInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateCreateOrConnectWithoutLine_itemsInput = {
    where: ExportTemplateWhereUniqueInput
    create: XOR<ExportTemplateCreateWithoutLine_itemsInput, ExportTemplateUncheckedCreateWithoutLine_itemsInput>
  }

  export type FieldTypeCreateWithoutExportTemplateLineItemInput = {
    field_type: string
    company_id: number
    created_at?: Date | string
    status?: StatusCreateNestedOneWithoutField_typesInput
    master_grid_lineitem?: MasterEntityLineItemCreateNestedManyWithoutField_typeInput
    importTemplateLineItem?: ImportTemplateLineItemCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeUncheckedCreateWithoutExportTemplateLineItemInput = {
    id?: number
    field_type: string
    company_id: number
    status_id?: number
    created_at?: Date | string
    master_grid_lineitem?: MasterEntityLineItemUncheckedCreateNestedManyWithoutField_typeInput
    importTemplateLineItem?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeCreateOrConnectWithoutExportTemplateLineItemInput = {
    where: FieldTypeWhereUniqueInput
    create: XOR<FieldTypeCreateWithoutExportTemplateLineItemInput, FieldTypeUncheckedCreateWithoutExportTemplateLineItemInput>
  }

  export type StatusUpsertWithoutExport_template_line_itemsInput = {
    update: XOR<StatusUpdateWithoutExport_template_line_itemsInput, StatusUncheckedUpdateWithoutExport_template_line_itemsInput>
    create: XOR<StatusCreateWithoutExport_template_line_itemsInput, StatusUncheckedCreateWithoutExport_template_line_itemsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutExport_template_line_itemsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutExport_template_line_itemsInput, StatusUncheckedUpdateWithoutExport_template_line_itemsInput>
  }

  export type StatusUpdateWithoutExport_template_line_itemsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutExport_template_line_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type ExportTemplateUpsertWithoutLine_itemsInput = {
    update: XOR<ExportTemplateUpdateWithoutLine_itemsInput, ExportTemplateUncheckedUpdateWithoutLine_itemsInput>
    create: XOR<ExportTemplateCreateWithoutLine_itemsInput, ExportTemplateUncheckedCreateWithoutLine_itemsInput>
    where?: ExportTemplateWhereInput
  }

  export type ExportTemplateUpdateToOneWithWhereWithoutLine_itemsInput = {
    where?: ExportTemplateWhereInput
    data: XOR<ExportTemplateUpdateWithoutLine_itemsInput, ExportTemplateUncheckedUpdateWithoutLine_itemsInput>
  }

  export type ExportTemplateUpdateWithoutLine_itemsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutExport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_export_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_export_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_export_templatesNestedInput
    queries?: ExportTemplateQueriesUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateWithoutLine_itemsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutExport_templateNestedInput
  }

  export type FieldTypeUpsertWithoutExportTemplateLineItemInput = {
    update: XOR<FieldTypeUpdateWithoutExportTemplateLineItemInput, FieldTypeUncheckedUpdateWithoutExportTemplateLineItemInput>
    create: XOR<FieldTypeCreateWithoutExportTemplateLineItemInput, FieldTypeUncheckedCreateWithoutExportTemplateLineItemInput>
    where?: FieldTypeWhereInput
  }

  export type FieldTypeUpdateToOneWithWhereWithoutExportTemplateLineItemInput = {
    where?: FieldTypeWhereInput
    data: XOR<FieldTypeUpdateWithoutExportTemplateLineItemInput, FieldTypeUncheckedUpdateWithoutExportTemplateLineItemInput>
  }

  export type FieldTypeUpdateWithoutExportTemplateLineItemInput = {
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutField_typesNestedInput
    master_grid_lineitem?: MasterEntityLineItemUpdateManyWithoutField_typeNestedInput
    importTemplateLineItem?: ImportTemplateLineItemUpdateManyWithoutField_typeNestedInput
  }

  export type FieldTypeUncheckedUpdateWithoutExportTemplateLineItemInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    master_grid_lineitem?: MasterEntityLineItemUncheckedUpdateManyWithoutField_typeNestedInput
    importTemplateLineItem?: ImportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput
  }

  export type StatusCreateWithoutExport_template_queriesInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutExport_template_queriesInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutExport_template_queriesInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutExport_template_queriesInput, StatusUncheckedCreateWithoutExport_template_queriesInput>
  }

  export type ExportTemplateCreateWithoutQueriesInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    status?: StatusCreateNestedOneWithoutExport_templatesInput
    created?: UserCreateNestedOneWithoutCreated_export_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_export_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_export_templatesInput
    line_items?: ExportTemplateLineItemCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateUncheckedCreateWithoutQueriesInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateCreateOrConnectWithoutQueriesInput = {
    where: ExportTemplateWhereUniqueInput
    create: XOR<ExportTemplateCreateWithoutQueriesInput, ExportTemplateUncheckedCreateWithoutQueriesInput>
  }

  export type StatusUpsertWithoutExport_template_queriesInput = {
    update: XOR<StatusUpdateWithoutExport_template_queriesInput, StatusUncheckedUpdateWithoutExport_template_queriesInput>
    create: XOR<StatusCreateWithoutExport_template_queriesInput, StatusUncheckedCreateWithoutExport_template_queriesInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutExport_template_queriesInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutExport_template_queriesInput, StatusUncheckedUpdateWithoutExport_template_queriesInput>
  }

  export type StatusUpdateWithoutExport_template_queriesInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutExport_template_queriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type ExportTemplateUpsertWithoutQueriesInput = {
    update: XOR<ExportTemplateUpdateWithoutQueriesInput, ExportTemplateUncheckedUpdateWithoutQueriesInput>
    create: XOR<ExportTemplateCreateWithoutQueriesInput, ExportTemplateUncheckedCreateWithoutQueriesInput>
    where?: ExportTemplateWhereInput
  }

  export type ExportTemplateUpdateToOneWithWhereWithoutQueriesInput = {
    where?: ExportTemplateWhereInput
    data: XOR<ExportTemplateUpdateWithoutQueriesInput, ExportTemplateUncheckedUpdateWithoutQueriesInput>
  }

  export type ExportTemplateUpdateWithoutQueriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutExport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_export_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_export_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_export_templatesNestedInput
    line_items?: ExportTemplateLineItemUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateWithoutQueriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutExport_templateNestedInput
  }

  export type StatusCreateWithoutStatus_listInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutStatus_listInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutStatus_listInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutStatus_listInput, StatusUncheckedCreateWithoutStatus_listInput>
  }

  export type StatusCreateWithoutStatusInput = {
    name: string
    slug: string
    description?: string | null
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutStatusInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutStatusInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutStatusInput, StatusUncheckedCreateWithoutStatusInput>
  }

  export type StatusCreateManyStatusInputEnvelope = {
    data: StatusCreateManyStatusInput | StatusCreateManyStatusInput[]
  }

  export type UserCreateWithoutStatusInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutStatusInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutStatusInput, UserUncheckedCreateWithoutStatusInput>
  }

  export type UserCreateManyStatusInputEnvelope = {
    data: UserCreateManyStatusInput | UserCreateManyStatusInput[]
  }

  export type RequestLogCreateWithoutStatusInput = {
    id?: bigint | number
    uuid?: string
    req_method?: string | null
    req_url?: string | null
    req_body?: string | null
    res_status?: boolean
    res_code?: number
    res_message?: string | null
    req_response?: string | null
    req_headers?: string | null
    req_ip?: string | null
    req_device?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    user?: UserCreateNestedOneWithoutRequest_logsInput
  }

  export type RequestLogUncheckedCreateWithoutStatusInput = {
    id?: bigint | number
    uuid?: string
    user_id?: number | null
    req_method?: string | null
    req_url?: string | null
    req_body?: string | null
    res_status?: boolean
    res_code?: number
    res_message?: string | null
    req_response?: string | null
    req_headers?: string | null
    req_ip?: string | null
    req_device?: string | null
    company_id: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RequestLogCreateOrConnectWithoutStatusInput = {
    where: RequestLogWhereUniqueInput
    create: XOR<RequestLogCreateWithoutStatusInput, RequestLogUncheckedCreateWithoutStatusInput>
  }

  export type RequestLogCreateManyStatusInputEnvelope = {
    data: RequestLogCreateManyStatusInput | RequestLogCreateManyStatusInput[]
  }

  export type PermissionsCreateWithoutStatusInput = {
    name: string
    slug: string
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    entity?: MasterEntityCreateNestedOneWithoutPermissionsInput
    roles?: RolePermissionsCreateNestedManyWithoutPermissionInput
    users?: UserPermissionsCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsUncheckedCreateWithoutStatusInput = {
    id?: number
    name: string
    slug: string
    entity_id?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    company_id: number
    created_at?: Date | string
    roles?: RolePermissionsUncheckedCreateNestedManyWithoutPermissionInput
    users?: UserPermissionsUncheckedCreateNestedManyWithoutPermissionInput
    menus?: MenuItemsUncheckedCreateNestedManyWithoutPermissionInput
  }

  export type PermissionsCreateOrConnectWithoutStatusInput = {
    where: PermissionsWhereUniqueInput
    create: XOR<PermissionsCreateWithoutStatusInput, PermissionsUncheckedCreateWithoutStatusInput>
  }

  export type PermissionsCreateManyStatusInputEnvelope = {
    data: PermissionsCreateManyStatusInput | PermissionsCreateManyStatusInput[]
  }

  export type RoleCreateWithoutStatusInput = {
    uuid?: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: RolePermissionsCreateNestedManyWithoutRoleInput
    users?: UserRolesCreateNestedManyWithoutRoleInput
    created?: UserCreateNestedOneWithoutCreated_rolesInput
    updated?: UserCreateNestedOneWithoutUpdated_rolesInput
    deleted?: UserCreateNestedOneWithoutDeleted_rolesInput
  }

  export type RoleUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: RolePermissionsUncheckedCreateNestedManyWithoutRoleInput
    users?: UserRolesUncheckedCreateNestedManyWithoutRoleInput
  }

  export type RoleCreateOrConnectWithoutStatusInput = {
    where: RoleWhereUniqueInput
    create: XOR<RoleCreateWithoutStatusInput, RoleUncheckedCreateWithoutStatusInput>
  }

  export type RoleCreateManyStatusInputEnvelope = {
    data: RoleCreateManyStatusInput | RoleCreateManyStatusInput[]
  }

  export type LanguageCreateWithoutStatusInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    translations?: LanguageContentCreateNestedManyWithoutLanguageInput
    created?: UserCreateNestedOneWithoutCreated_languagesInput
    updated?: UserCreateNestedOneWithoutUpdated_languagesInput
    deleted?: UserCreateNestedOneWithoutDeleted_languagesInput
  }

  export type LanguageUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    translations?: LanguageContentUncheckedCreateNestedManyWithoutLanguageInput
  }

  export type LanguageCreateOrConnectWithoutStatusInput = {
    where: LanguageWhereUniqueInput
    create: XOR<LanguageCreateWithoutStatusInput, LanguageUncheckedCreateWithoutStatusInput>
  }

  export type LanguageCreateManyStatusInputEnvelope = {
    data: LanguageCreateManyStatusInput | LanguageCreateManyStatusInput[]
  }

  export type LanguageContentCreateWithoutStatusInput = {
    key_content: string
    values: string
    created_at?: Date | string
    language?: LanguageCreateNestedOneWithoutTranslationsInput
  }

  export type LanguageContentUncheckedCreateWithoutStatusInput = {
    id?: number
    language_id: number
    key_content: string
    values: string
    company_id: number
    created_at?: Date | string
  }

  export type LanguageContentCreateOrConnectWithoutStatusInput = {
    where: LanguageContentWhereUniqueInput
    create: XOR<LanguageContentCreateWithoutStatusInput, LanguageContentUncheckedCreateWithoutStatusInput>
  }

  export type LanguageContentCreateManyStatusInputEnvelope = {
    data: LanguageContentCreateManyStatusInput | LanguageContentCreateManyStatusInput[]
  }

  export type MenuItemsCreateWithoutStatusInput = {
    name: string
    target?: string | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    menus?: MenusCreateNestedOneWithoutMenuitemsInput
    entity?: MasterEntityCreateNestedOneWithoutMenusInput
    permission?: PermissionsCreateNestedOneWithoutMenusInput
    parent?: MenuItemsCreateNestedOneWithoutChildrenInput
    children?: MenuItemsCreateNestedManyWithoutParentInput
    created?: UserCreateNestedOneWithoutCreated_menu_itemsInput
    updated?: UserCreateNestedOneWithoutUpdated_menu_itemsInput
    deleted?: UserCreateNestedOneWithoutDeleted_menu_itemsInput
  }

  export type MenuItemsUncheckedCreateWithoutStatusInput = {
    id?: number
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    children?: MenuItemsUncheckedCreateNestedManyWithoutParentInput
  }

  export type MenuItemsCreateOrConnectWithoutStatusInput = {
    where: MenuItemsWhereUniqueInput
    create: XOR<MenuItemsCreateWithoutStatusInput, MenuItemsUncheckedCreateWithoutStatusInput>
  }

  export type MenuItemsCreateManyStatusInputEnvelope = {
    data: MenuItemsCreateManyStatusInput | MenuItemsCreateManyStatusInput[]
  }

  export type MenusCreateWithoutStatusInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    menuitems?: MenuItemsCreateNestedManyWithoutMenusInput
    created?: UserCreateNestedOneWithoutCreated_menusInput
    updated?: UserCreateNestedOneWithoutUpdated_menusInput
    deleted?: UserCreateNestedOneWithoutDeleted_menusInput
  }

  export type MenusUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutMenusInput
  }

  export type MenusCreateOrConnectWithoutStatusInput = {
    where: MenusWhereUniqueInput
    create: XOR<MenusCreateWithoutStatusInput, MenusUncheckedCreateWithoutStatusInput>
  }

  export type MenusCreateManyStatusInputEnvelope = {
    data: MenusCreateManyStatusInput | MenusCreateManyStatusInput[]
  }

  export type MasterEntityCreateWithoutStatusInput = {
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: PermissionsCreateNestedManyWithoutEntityInput
    line_items?: MasterEntityLineItemCreateNestedManyWithoutMaster_gridInput
    menus?: MenuItemsCreateNestedManyWithoutEntityInput
  }

  export type MasterEntityUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
    permissions?: PermissionsUncheckedCreateNestedManyWithoutEntityInput
    line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutMaster_gridInput
    menus?: MenuItemsUncheckedCreateNestedManyWithoutEntityInput
  }

  export type MasterEntityCreateOrConnectWithoutStatusInput = {
    where: MasterEntityWhereUniqueInput
    create: XOR<MasterEntityCreateWithoutStatusInput, MasterEntityUncheckedCreateWithoutStatusInput>
  }

  export type MasterEntityCreateManyStatusInputEnvelope = {
    data: MasterEntityCreateManyStatusInput | MasterEntityCreateManyStatusInput[]
  }

  export type MasterEntityLineItemCreateWithoutStatusInput = {
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    created_at?: Date | string
    master_grid: MasterEntityCreateNestedOneWithoutLine_itemsInput
    field_type?: FieldTypeCreateNestedOneWithoutMaster_grid_lineitemInput
  }

  export type MasterEntityLineItemUncheckedCreateWithoutStatusInput = {
    id?: number
    master_grid_id: number
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    field_type_id: number
    company_id: number
    created_at?: Date | string
  }

  export type MasterEntityLineItemCreateOrConnectWithoutStatusInput = {
    where: MasterEntityLineItemWhereUniqueInput
    create: XOR<MasterEntityLineItemCreateWithoutStatusInput, MasterEntityLineItemUncheckedCreateWithoutStatusInput>
  }

  export type MasterEntityLineItemCreateManyStatusInputEnvelope = {
    data: MasterEntityLineItemCreateManyStatusInput | MasterEntityLineItemCreateManyStatusInput[]
  }

  export type FieldTypeCreateWithoutStatusInput = {
    field_type: string
    company_id: number
    created_at?: Date | string
    master_grid_lineitem?: MasterEntityLineItemCreateNestedManyWithoutField_typeInput
    importTemplateLineItem?: ImportTemplateLineItemCreateNestedManyWithoutField_typeInput
    exportTemplateLineItem?: ExportTemplateLineItemCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeUncheckedCreateWithoutStatusInput = {
    id?: number
    field_type: string
    company_id: number
    created_at?: Date | string
    master_grid_lineitem?: MasterEntityLineItemUncheckedCreateNestedManyWithoutField_typeInput
    importTemplateLineItem?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput
    exportTemplateLineItem?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutField_typeInput
  }

  export type FieldTypeCreateOrConnectWithoutStatusInput = {
    where: FieldTypeWhereUniqueInput
    create: XOR<FieldTypeCreateWithoutStatusInput, FieldTypeUncheckedCreateWithoutStatusInput>
  }

  export type FieldTypeCreateManyStatusInputEnvelope = {
    data: FieldTypeCreateManyStatusInput | FieldTypeCreateManyStatusInput[]
  }

  export type menuTypeCreateWithoutStatusInput = {
    name?: string | null
    company_id: number
    created_at?: Date | string
  }

  export type menuTypeUncheckedCreateWithoutStatusInput = {
    id?: number
    name?: string | null
    company_id: number
    created_at?: Date | string
  }

  export type menuTypeCreateOrConnectWithoutStatusInput = {
    where: menuTypeWhereUniqueInput
    create: XOR<menuTypeCreateWithoutStatusInput, menuTypeUncheckedCreateWithoutStatusInput>
  }

  export type menuTypeCreateManyStatusInputEnvelope = {
    data: menuTypeCreateManyStatusInput | menuTypeCreateManyStatusInput[]
  }

  export type EmailTemplateProcessCreateWithoutStatusInput = {
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    company_id: number
    email_template_groups?: EmailTemplateProcessTagsMappingCreateNestedManyWithoutEmail_template_processInput
    email_templates?: EmailTemplateCreateNestedManyWithoutEmail_template_processInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    company_id: number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedCreateNestedManyWithoutEmail_template_processInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutEmail_template_processInput
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_template_processInput
  }

  export type EmailTemplateProcessCreateOrConnectWithoutStatusInput = {
    where: EmailTemplateProcessWhereUniqueInput
    create: XOR<EmailTemplateProcessCreateWithoutStatusInput, EmailTemplateProcessUncheckedCreateWithoutStatusInput>
  }

  export type EmailTemplateProcessCreateManyStatusInputEnvelope = {
    data: EmailTemplateProcessCreateManyStatusInput | EmailTemplateProcessCreateManyStatusInput[]
  }

  export type EmailTemplateTagCreateWithoutStatusInput = {
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    company_id: number
    email_template_groups?: EmailTemplateProcessTagsMappingCreateNestedManyWithoutEmail_template_tagInput
  }

  export type EmailTemplateTagUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    company_id: number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedCreateNestedManyWithoutEmail_template_tagInput
  }

  export type EmailTemplateTagCreateOrConnectWithoutStatusInput = {
    where: EmailTemplateTagWhereUniqueInput
    create: XOR<EmailTemplateTagCreateWithoutStatusInput, EmailTemplateTagUncheckedCreateWithoutStatusInput>
  }

  export type EmailTemplateTagCreateManyStatusInputEnvelope = {
    data: EmailTemplateTagCreateManyStatusInput | EmailTemplateTagCreateManyStatusInput[]
  }

  export type EmailTemplateRecipientTagCreateWithoutStatusInput = {
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    query_information?: string | null
    company_id: number
  }

  export type EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    query_information?: string | null
    company_id: number
  }

  export type EmailTemplateRecipientTagCreateOrConnectWithoutStatusInput = {
    where: EmailTemplateRecipientTagWhereUniqueInput
    create: XOR<EmailTemplateRecipientTagCreateWithoutStatusInput, EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput>
  }

  export type EmailTemplateRecipientTagCreateManyStatusInputEnvelope = {
    data: EmailTemplateRecipientTagCreateManyStatusInput | EmailTemplateRecipientTagCreateManyStatusInput[]
  }

  export type EmailTemplateCreateWithoutStatusInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    email_template_process: EmailTemplateProcessCreateNestedOneWithoutEmail_templatesInput
    email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutEmail_templateInput
    created?: UserCreateNestedOneWithoutCreated_email_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_email_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_email_templatesInput
  }

  export type EmailTemplateUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    deleted_by?: number | null
    company_id: number
    email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutEmail_templateInput
  }

  export type EmailTemplateCreateOrConnectWithoutStatusInput = {
    where: EmailTemplateWhereUniqueInput
    create: XOR<EmailTemplateCreateWithoutStatusInput, EmailTemplateUncheckedCreateWithoutStatusInput>
  }

  export type EmailTemplateCreateManyStatusInputEnvelope = {
    data: EmailTemplateCreateManyStatusInput | EmailTemplateCreateManyStatusInput[]
  }

  export type EmailProcessJobCreateWithoutStatusInput = {
    uuid?: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data?: string | null
    created_at?: Date | string
    created?: UserCreateNestedOneWithoutCreated_email_process_jobsInput
  }

  export type EmailProcessJobUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data?: string | null
    company_id: number
    created_at?: Date | string
    created_by?: number | null
  }

  export type EmailProcessJobCreateOrConnectWithoutStatusInput = {
    where: EmailProcessJobWhereUniqueInput
    create: XOR<EmailProcessJobCreateWithoutStatusInput, EmailProcessJobUncheckedCreateWithoutStatusInput>
  }

  export type EmailProcessJobCreateManyStatusInputEnvelope = {
    data: EmailProcessJobCreateManyStatusInput | EmailProcessJobCreateManyStatusInput[]
  }

  export type NotificationJobCreateWithoutStatusInput = {
    uuid?: string
    process_slug: string
    notification_to?: string | null
    notification_subject?: string | null
    notification_content?: string | null
    notification_cc?: string | null
    notification_bcc?: string | null
    notification_type_id: string
    notification_status_id: string
    created_at?: Date | string
    sent_at?: Date | string | null
    read_at?: Date | string | null
    created?: UserCreateNestedOneWithoutCreated_notification_jobInput
  }

  export type NotificationJobUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    process_slug: string
    notification_to?: string | null
    notification_subject?: string | null
    notification_content?: string | null
    notification_cc?: string | null
    notification_bcc?: string | null
    notification_type_id: string
    notification_status_id: string
    company_id: number
    created_at?: Date | string
    created_by?: number | null
    sent_at?: Date | string | null
    read_at?: Date | string | null
  }

  export type NotificationJobCreateOrConnectWithoutStatusInput = {
    where: NotificationJobWhereUniqueInput
    create: XOR<NotificationJobCreateWithoutStatusInput, NotificationJobUncheckedCreateWithoutStatusInput>
  }

  export type NotificationJobCreateManyStatusInputEnvelope = {
    data: NotificationJobCreateManyStatusInput | NotificationJobCreateManyStatusInput[]
  }

  export type ImportTemplateCreateWithoutStatusInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    created?: UserCreateNestedOneWithoutCreated_import_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_import_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_templatesInput
    line_items?: ImportTemplateLineItemCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutImport_templateInput
    queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutImport_templateInput
  }

  export type ImportTemplateCreateOrConnectWithoutStatusInput = {
    where: ImportTemplateWhereUniqueInput
    create: XOR<ImportTemplateCreateWithoutStatusInput, ImportTemplateUncheckedCreateWithoutStatusInput>
  }

  export type ImportTemplateCreateManyStatusInputEnvelope = {
    data: ImportTemplateCreateManyStatusInput | ImportTemplateCreateManyStatusInput[]
  }

  export type ImportTemplateLineItemCreateWithoutStatusInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    created_at?: Date | string
    import_template: ImportTemplateCreateNestedOneWithoutLine_itemsInput
    field_type?: FieldTypeCreateNestedOneWithoutImportTemplateLineItemInput
  }

  export type ImportTemplateLineItemUncheckedCreateWithoutStatusInput = {
    id?: number
    import_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    company_id: number
    created_at?: Date | string
  }

  export type ImportTemplateLineItemCreateOrConnectWithoutStatusInput = {
    where: ImportTemplateLineItemWhereUniqueInput
    create: XOR<ImportTemplateLineItemCreateWithoutStatusInput, ImportTemplateLineItemUncheckedCreateWithoutStatusInput>
  }

  export type ImportTemplateLineItemCreateManyStatusInputEnvelope = {
    data: ImportTemplateLineItemCreateManyStatusInput | ImportTemplateLineItemCreateManyStatusInput[]
  }

  export type ImportTemplateQueriesCreateWithoutStatusInput = {
    query_string?: string | null
    query_name: string
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    import_template: ImportTemplateCreateNestedOneWithoutQueriesInput
  }

  export type ImportTemplateQueriesUncheckedCreateWithoutStatusInput = {
    id?: number
    import_template_id: number
    query_string?: string | null
    query_name: string
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    company_id: number
    created_at?: Date | string
  }

  export type ImportTemplateQueriesCreateOrConnectWithoutStatusInput = {
    where: ImportTemplateQueriesWhereUniqueInput
    create: XOR<ImportTemplateQueriesCreateWithoutStatusInput, ImportTemplateQueriesUncheckedCreateWithoutStatusInput>
  }

  export type ImportTemplateQueriesCreateManyStatusInputEnvelope = {
    data: ImportTemplateQueriesCreateManyStatusInput | ImportTemplateQueriesCreateManyStatusInput[]
  }

  export type ExportTemplateCreateWithoutStatusInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    created?: UserCreateNestedOneWithoutCreated_export_templatesInput
    updated?: UserCreateNestedOneWithoutUpdated_export_templatesInput
    deleted?: UserCreateNestedOneWithoutDeleted_export_templatesInput
    line_items?: ExportTemplateLineItemCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutExport_templateInput
    queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutExport_templateInput
  }

  export type ExportTemplateCreateOrConnectWithoutStatusInput = {
    where: ExportTemplateWhereUniqueInput
    create: XOR<ExportTemplateCreateWithoutStatusInput, ExportTemplateUncheckedCreateWithoutStatusInput>
  }

  export type ExportTemplateCreateManyStatusInputEnvelope = {
    data: ExportTemplateCreateManyStatusInput | ExportTemplateCreateManyStatusInput[]
  }

  export type ExportTemplateLineItemCreateWithoutStatusInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    created_at?: Date | string
    export_template: ExportTemplateCreateNestedOneWithoutLine_itemsInput
    field_type?: FieldTypeCreateNestedOneWithoutExportTemplateLineItemInput
  }

  export type ExportTemplateLineItemUncheckedCreateWithoutStatusInput = {
    id?: number
    export_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    company_id: number
    created_at?: Date | string
  }

  export type ExportTemplateLineItemCreateOrConnectWithoutStatusInput = {
    where: ExportTemplateLineItemWhereUniqueInput
    create: XOR<ExportTemplateLineItemCreateWithoutStatusInput, ExportTemplateLineItemUncheckedCreateWithoutStatusInput>
  }

  export type ExportTemplateLineItemCreateManyStatusInputEnvelope = {
    data: ExportTemplateLineItemCreateManyStatusInput | ExportTemplateLineItemCreateManyStatusInput[]
  }

  export type ExportTemplateQueriesCreateWithoutStatusInput = {
    query_string?: string | null
    query_name: string
    query_procedure?: string
    is_individual?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    created_at?: Date | string
    export_template: ExportTemplateCreateNestedOneWithoutQueriesInput
  }

  export type ExportTemplateQueriesUncheckedCreateWithoutStatusInput = {
    id?: number
    export_template_id: number
    query_string?: string | null
    query_name: string
    query_procedure?: string
    is_individual?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    company_id: number
    created_at?: Date | string
  }

  export type ExportTemplateQueriesCreateOrConnectWithoutStatusInput = {
    where: ExportTemplateQueriesWhereUniqueInput
    create: XOR<ExportTemplateQueriesCreateWithoutStatusInput, ExportTemplateQueriesUncheckedCreateWithoutStatusInput>
  }

  export type ExportTemplateQueriesCreateManyStatusInputEnvelope = {
    data: ExportTemplateQueriesCreateManyStatusInput | ExportTemplateQueriesCreateManyStatusInput[]
  }

  export type DesignationCreateWithoutStatusInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailCreateNestedManyWithoutDesignationInput
    created?: UserCreateNestedOneWithoutCreated_designationsInput
    updated?: UserCreateNestedOneWithoutUpdated_designationsInput
    deleted?: UserCreateNestedOneWithoutDeleted_designationsInput
  }

  export type DesignationUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDesignationInput
  }

  export type DesignationCreateOrConnectWithoutStatusInput = {
    where: DesignationWhereUniqueInput
    create: XOR<DesignationCreateWithoutStatusInput, DesignationUncheckedCreateWithoutStatusInput>
  }

  export type DesignationCreateManyStatusInputEnvelope = {
    data: DesignationCreateManyStatusInput | DesignationCreateManyStatusInput[]
  }

  export type DepartmentCreateWithoutStatusInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailCreateNestedManyWithoutDepartmentInput
    department_head?: UserCreateNestedOneWithoutHead_departmentsInput
    created?: UserCreateNestedOneWithoutCreated_departmentsInput
    updated?: UserCreateNestedOneWithoutUpdated_departmentsInput
    deleted?: UserCreateNestedOneWithoutDeleted_departmentsInput
  }

  export type DepartmentUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    code: string
    name: string
    description?: string | null
    department_head_id?: number | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    users?: UserDetailUncheckedCreateNestedManyWithoutDepartmentInput
  }

  export type DepartmentCreateOrConnectWithoutStatusInput = {
    where: DepartmentWhereUniqueInput
    create: XOR<DepartmentCreateWithoutStatusInput, DepartmentUncheckedCreateWithoutStatusInput>
  }

  export type DepartmentCreateManyStatusInputEnvelope = {
    data: DepartmentCreateManyStatusInput | DepartmentCreateManyStatusInput[]
  }

  export type AuditLogCreateWithoutStatusInput = {
    operation_type: string
    table_name: string
    field_name: string
    old_value?: string | null
    new_value?: string | null
    entity_id: number
    company_id?: number | null
    created_at?: Date | string
    user?: UserCreateNestedOneWithoutAudit_logsInput
  }

  export type AuditLogUncheckedCreateWithoutStatusInput = {
    id?: number
    operation_type: string
    table_name: string
    field_name: string
    old_value?: string | null
    new_value?: string | null
    entity_id: number
    user_id?: number | null
    company_id?: number | null
    created_at?: Date | string
  }

  export type AuditLogCreateOrConnectWithoutStatusInput = {
    where: AuditLogWhereUniqueInput
    create: XOR<AuditLogCreateWithoutStatusInput, AuditLogUncheckedCreateWithoutStatusInput>
  }

  export type AuditLogCreateManyStatusInputEnvelope = {
    data: AuditLogCreateManyStatusInput | AuditLogCreateManyStatusInput[]
  }

  export type FinancialYearCreateWithoutStatusInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    document_sequence?: DocumentSequenceCreateNestedManyWithoutFinanicial_yearInput
    created?: UserCreateNestedOneWithoutCreated_fin_yearsInput
    updated?: UserCreateNestedOneWithoutUpdated_fin_yearsInput
    deleted?: UserCreateNestedOneWithoutDeleted_fin_yearsInput
  }

  export type FinancialYearUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    document_sequence?: DocumentSequenceUncheckedCreateNestedManyWithoutFinanicial_yearInput
  }

  export type FinancialYearCreateOrConnectWithoutStatusInput = {
    where: FinancialYearWhereUniqueInput
    create: XOR<FinancialYearCreateWithoutStatusInput, FinancialYearUncheckedCreateWithoutStatusInput>
  }

  export type FinancialYearCreateManyStatusInputEnvelope = {
    data: FinancialYearCreateManyStatusInput | FinancialYearCreateManyStatusInput[]
  }

  export type DocumentSequenceCreateWithoutStatusInput = {
    uuid?: string
    module_name: string
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    code_format?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    finanicial_year?: FinancialYearCreateNestedOneWithoutDocument_sequenceInput
    created?: UserCreateNestedOneWithoutCreated_doc_sequencesInput
    updated?: UserCreateNestedOneWithoutUpdated_doc_sequencesInput
    deleted?: UserCreateNestedOneWithoutDeleted_doc_sequencesInput
  }

  export type DocumentSequenceUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    code_format?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceCreateOrConnectWithoutStatusInput = {
    where: DocumentSequenceWhereUniqueInput
    create: XOR<DocumentSequenceCreateWithoutStatusInput, DocumentSequenceUncheckedCreateWithoutStatusInput>
  }

  export type DocumentSequenceCreateManyStatusInputEnvelope = {
    data: DocumentSequenceCreateManyStatusInput | DocumentSequenceCreateManyStatusInput[]
  }

  export type FileUploadLogCreateWithoutStatusInput = {
    uuid?: string
    doc_name?: string | null
    org_name?: string | null
    extension?: string | null
    description?: string | null
    company_id: number
    created_at?: Date | string
  }

  export type FileUploadLogUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    doc_name?: string | null
    org_name?: string | null
    extension?: string | null
    description?: string | null
    company_id: number
    created_at?: Date | string
  }

  export type FileUploadLogCreateOrConnectWithoutStatusInput = {
    where: FileUploadLogWhereUniqueInput
    create: XOR<FileUploadLogCreateWithoutStatusInput, FileUploadLogUncheckedCreateWithoutStatusInput>
  }

  export type FileUploadLogCreateManyStatusInputEnvelope = {
    data: FileUploadLogCreateManyStatusInput | FileUploadLogCreateManyStatusInput[]
  }

  export type DeviceRegistrationCreateWithoutStatusInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    created_device_registration: UserCreateNestedOneWithoutCreated_device_registrationInput
    updated_device_registration?: UserCreateNestedOneWithoutUpdated_device_registrationInput
    deleted_device_registration?: UserCreateNestedOneWithoutDeleted_device_registrationInput
    user: UserCreateNestedOneWithoutDeviceRegistrationInput
  }

  export type DeviceRegistrationUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    company_id: number
    device_name: string
    device_unique_id: string
    user_id: number
    created_by: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationCreateOrConnectWithoutStatusInput = {
    where: DeviceRegistrationWhereUniqueInput
    create: XOR<DeviceRegistrationCreateWithoutStatusInput, DeviceRegistrationUncheckedCreateWithoutStatusInput>
  }

  export type DeviceRegistrationCreateManyStatusInputEnvelope = {
    data: DeviceRegistrationCreateManyStatusInput | DeviceRegistrationCreateManyStatusInput[]
  }

  export type ImportJobCreateWithoutStatusInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    created?: UserCreateNestedOneWithoutCreated_import_jobInput
    updated?: UserCreateNestedOneWithoutUpdated_import_jobInput
    deleted?: UserCreateNestedOneWithoutDeleted_import_jobInput
    line_items?: ImportJobLineItemCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobUncheckedCreateWithoutStatusInput = {
    id?: number
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
    line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutImport_jobInput
  }

  export type ImportJobCreateOrConnectWithoutStatusInput = {
    where: ImportJobWhereUniqueInput
    create: XOR<ImportJobCreateWithoutStatusInput, ImportJobUncheckedCreateWithoutStatusInput>
  }

  export type ImportJobCreateManyStatusInputEnvelope = {
    data: ImportJobCreateManyStatusInput | ImportJobCreateManyStatusInput[]
  }

  export type ImportJobLineItemCreateWithoutStatusInput = {
    row_object?: string | null
    job_status?: string | null
    created_at?: Date | string
    import_job: ImportJobCreateNestedOneWithoutLine_itemsInput
  }

  export type ImportJobLineItemUncheckedCreateWithoutStatusInput = {
    id?: number
    import_job_id: number
    row_object?: string | null
    job_status?: string | null
    company_id: number
    created_at?: Date | string
  }

  export type ImportJobLineItemCreateOrConnectWithoutStatusInput = {
    where: ImportJobLineItemWhereUniqueInput
    create: XOR<ImportJobLineItemCreateWithoutStatusInput, ImportJobLineItemUncheckedCreateWithoutStatusInput>
  }

  export type ImportJobLineItemCreateManyStatusInputEnvelope = {
    data: ImportJobLineItemCreateManyStatusInput | ImportJobLineItemCreateManyStatusInput[]
  }

  export type StatusUpsertWithoutStatus_listInput = {
    update: XOR<StatusUpdateWithoutStatus_listInput, StatusUncheckedUpdateWithoutStatus_listInput>
    create: XOR<StatusCreateWithoutStatus_listInput, StatusUncheckedCreateWithoutStatus_listInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutStatus_listInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutStatus_listInput, StatusUncheckedUpdateWithoutStatus_listInput>
  }

  export type StatusUpdateWithoutStatus_listInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutStatus_listInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type StatusUpsertWithWhereUniqueWithoutStatusInput = {
    where: StatusWhereUniqueInput
    update: XOR<StatusUpdateWithoutStatusInput, StatusUncheckedUpdateWithoutStatusInput>
    create: XOR<StatusCreateWithoutStatusInput, StatusUncheckedCreateWithoutStatusInput>
  }

  export type StatusUpdateWithWhereUniqueWithoutStatusInput = {
    where: StatusWhereUniqueInput
    data: XOR<StatusUpdateWithoutStatusInput, StatusUncheckedUpdateWithoutStatusInput>
  }

  export type StatusUpdateManyWithWhereWithoutStatusInput = {
    where: StatusScalarWhereInput
    data: XOR<StatusUpdateManyMutationInput, StatusUncheckedUpdateManyWithoutStatusInput>
  }

  export type StatusScalarWhereInput = {
    AND?: StatusScalarWhereInput | StatusScalarWhereInput[]
    OR?: StatusScalarWhereInput[]
    NOT?: StatusScalarWhereInput | StatusScalarWhereInput[]
    id?: IntFilter<"Status"> | number
    name?: StringFilter<"Status"> | string
    slug?: StringFilter<"Status"> | string
    description?: StringNullableFilter<"Status"> | string | null
    status_id?: IntNullableFilter<"Status"> | number | null
  }

  export type UserUpsertWithWhereUniqueWithoutStatusInput = {
    where: UserWhereUniqueInput
    update: XOR<UserUpdateWithoutStatusInput, UserUncheckedUpdateWithoutStatusInput>
    create: XOR<UserCreateWithoutStatusInput, UserUncheckedCreateWithoutStatusInput>
  }

  export type UserUpdateWithWhereUniqueWithoutStatusInput = {
    where: UserWhereUniqueInput
    data: XOR<UserUpdateWithoutStatusInput, UserUncheckedUpdateWithoutStatusInput>
  }

  export type UserUpdateManyWithWhereWithoutStatusInput = {
    where: UserScalarWhereInput
    data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyWithoutStatusInput>
  }

  export type RequestLogUpsertWithWhereUniqueWithoutStatusInput = {
    where: RequestLogWhereUniqueInput
    update: XOR<RequestLogUpdateWithoutStatusInput, RequestLogUncheckedUpdateWithoutStatusInput>
    create: XOR<RequestLogCreateWithoutStatusInput, RequestLogUncheckedCreateWithoutStatusInput>
  }

  export type RequestLogUpdateWithWhereUniqueWithoutStatusInput = {
    where: RequestLogWhereUniqueInput
    data: XOR<RequestLogUpdateWithoutStatusInput, RequestLogUncheckedUpdateWithoutStatusInput>
  }

  export type RequestLogUpdateManyWithWhereWithoutStatusInput = {
    where: RequestLogScalarWhereInput
    data: XOR<RequestLogUpdateManyMutationInput, RequestLogUncheckedUpdateManyWithoutStatusInput>
  }

  export type PermissionsUpsertWithWhereUniqueWithoutStatusInput = {
    where: PermissionsWhereUniqueInput
    update: XOR<PermissionsUpdateWithoutStatusInput, PermissionsUncheckedUpdateWithoutStatusInput>
    create: XOR<PermissionsCreateWithoutStatusInput, PermissionsUncheckedCreateWithoutStatusInput>
  }

  export type PermissionsUpdateWithWhereUniqueWithoutStatusInput = {
    where: PermissionsWhereUniqueInput
    data: XOR<PermissionsUpdateWithoutStatusInput, PermissionsUncheckedUpdateWithoutStatusInput>
  }

  export type PermissionsUpdateManyWithWhereWithoutStatusInput = {
    where: PermissionsScalarWhereInput
    data: XOR<PermissionsUpdateManyMutationInput, PermissionsUncheckedUpdateManyWithoutStatusInput>
  }

  export type RoleUpsertWithWhereUniqueWithoutStatusInput = {
    where: RoleWhereUniqueInput
    update: XOR<RoleUpdateWithoutStatusInput, RoleUncheckedUpdateWithoutStatusInput>
    create: XOR<RoleCreateWithoutStatusInput, RoleUncheckedCreateWithoutStatusInput>
  }

  export type RoleUpdateWithWhereUniqueWithoutStatusInput = {
    where: RoleWhereUniqueInput
    data: XOR<RoleUpdateWithoutStatusInput, RoleUncheckedUpdateWithoutStatusInput>
  }

  export type RoleUpdateManyWithWhereWithoutStatusInput = {
    where: RoleScalarWhereInput
    data: XOR<RoleUpdateManyMutationInput, RoleUncheckedUpdateManyWithoutStatusInput>
  }

  export type LanguageUpsertWithWhereUniqueWithoutStatusInput = {
    where: LanguageWhereUniqueInput
    update: XOR<LanguageUpdateWithoutStatusInput, LanguageUncheckedUpdateWithoutStatusInput>
    create: XOR<LanguageCreateWithoutStatusInput, LanguageUncheckedCreateWithoutStatusInput>
  }

  export type LanguageUpdateWithWhereUniqueWithoutStatusInput = {
    where: LanguageWhereUniqueInput
    data: XOR<LanguageUpdateWithoutStatusInput, LanguageUncheckedUpdateWithoutStatusInput>
  }

  export type LanguageUpdateManyWithWhereWithoutStatusInput = {
    where: LanguageScalarWhereInput
    data: XOR<LanguageUpdateManyMutationInput, LanguageUncheckedUpdateManyWithoutStatusInput>
  }

  export type LanguageContentUpsertWithWhereUniqueWithoutStatusInput = {
    where: LanguageContentWhereUniqueInput
    update: XOR<LanguageContentUpdateWithoutStatusInput, LanguageContentUncheckedUpdateWithoutStatusInput>
    create: XOR<LanguageContentCreateWithoutStatusInput, LanguageContentUncheckedCreateWithoutStatusInput>
  }

  export type LanguageContentUpdateWithWhereUniqueWithoutStatusInput = {
    where: LanguageContentWhereUniqueInput
    data: XOR<LanguageContentUpdateWithoutStatusInput, LanguageContentUncheckedUpdateWithoutStatusInput>
  }

  export type LanguageContentUpdateManyWithWhereWithoutStatusInput = {
    where: LanguageContentScalarWhereInput
    data: XOR<LanguageContentUpdateManyMutationInput, LanguageContentUncheckedUpdateManyWithoutStatusInput>
  }

  export type MenuItemsUpsertWithWhereUniqueWithoutStatusInput = {
    where: MenuItemsWhereUniqueInput
    update: XOR<MenuItemsUpdateWithoutStatusInput, MenuItemsUncheckedUpdateWithoutStatusInput>
    create: XOR<MenuItemsCreateWithoutStatusInput, MenuItemsUncheckedCreateWithoutStatusInput>
  }

  export type MenuItemsUpdateWithWhereUniqueWithoutStatusInput = {
    where: MenuItemsWhereUniqueInput
    data: XOR<MenuItemsUpdateWithoutStatusInput, MenuItemsUncheckedUpdateWithoutStatusInput>
  }

  export type MenuItemsUpdateManyWithWhereWithoutStatusInput = {
    where: MenuItemsScalarWhereInput
    data: XOR<MenuItemsUpdateManyMutationInput, MenuItemsUncheckedUpdateManyWithoutStatusInput>
  }

  export type MenusUpsertWithWhereUniqueWithoutStatusInput = {
    where: MenusWhereUniqueInput
    update: XOR<MenusUpdateWithoutStatusInput, MenusUncheckedUpdateWithoutStatusInput>
    create: XOR<MenusCreateWithoutStatusInput, MenusUncheckedCreateWithoutStatusInput>
  }

  export type MenusUpdateWithWhereUniqueWithoutStatusInput = {
    where: MenusWhereUniqueInput
    data: XOR<MenusUpdateWithoutStatusInput, MenusUncheckedUpdateWithoutStatusInput>
  }

  export type MenusUpdateManyWithWhereWithoutStatusInput = {
    where: MenusScalarWhereInput
    data: XOR<MenusUpdateManyMutationInput, MenusUncheckedUpdateManyWithoutStatusInput>
  }

  export type MasterEntityUpsertWithWhereUniqueWithoutStatusInput = {
    where: MasterEntityWhereUniqueInput
    update: XOR<MasterEntityUpdateWithoutStatusInput, MasterEntityUncheckedUpdateWithoutStatusInput>
    create: XOR<MasterEntityCreateWithoutStatusInput, MasterEntityUncheckedCreateWithoutStatusInput>
  }

  export type MasterEntityUpdateWithWhereUniqueWithoutStatusInput = {
    where: MasterEntityWhereUniqueInput
    data: XOR<MasterEntityUpdateWithoutStatusInput, MasterEntityUncheckedUpdateWithoutStatusInput>
  }

  export type MasterEntityUpdateManyWithWhereWithoutStatusInput = {
    where: MasterEntityScalarWhereInput
    data: XOR<MasterEntityUpdateManyMutationInput, MasterEntityUncheckedUpdateManyWithoutStatusInput>
  }

  export type MasterEntityScalarWhereInput = {
    AND?: MasterEntityScalarWhereInput | MasterEntityScalarWhereInput[]
    OR?: MasterEntityScalarWhereInput[]
    NOT?: MasterEntityScalarWhereInput | MasterEntityScalarWhereInput[]
    id?: IntFilter<"MasterEntity"> | number
    uuid?: StringFilter<"MasterEntity"> | string
    name?: StringFilter<"MasterEntity"> | string
    entity_name?: StringFilter<"MasterEntity"> | string
    entity_type?: StringFilter<"MasterEntity"> | string
    primary_table?: StringNullableFilter<"MasterEntity"> | string | null
    is_admin_module?: BoolFilter<"MasterEntity"> | boolean
    associated_tables?: StringNullableFilter<"MasterEntity"> | string | null
    query_information?: StringNullableFilter<"MasterEntity"> | string | null
    form_information?: StringNullableFilter<"MasterEntity"> | string | null
    add_query_information?: StringNullableFilter<"MasterEntity"> | string | null
    edit_query_information?: StringNullableFilter<"MasterEntity"> | string | null
    preset_query_information?: StringNullableFilter<"MasterEntity"> | string | null
    static_page_content?: StringNullableFilter<"MasterEntity"> | string | null
    export_template_id?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_group_id?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_type?: StringNullableFilter<"MasterEntity"> | string | null
    dashboard_wizard_rows?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_columns?: IntNullableFilter<"MasterEntity"> | number | null
    dashboard_wizard_order_no?: DecimalNullableFilter<"MasterEntity"> | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: StringNullableFilter<"MasterEntity"> | string | null
    status_id?: IntFilter<"MasterEntity"> | number
    company_id?: IntFilter<"MasterEntity"> | number
    created_at?: DateTimeFilter<"MasterEntity"> | Date | string
    deleted_at?: DateTimeNullableFilter<"MasterEntity"> | Date | string | null
  }

  export type MasterEntityLineItemUpsertWithWhereUniqueWithoutStatusInput = {
    where: MasterEntityLineItemWhereUniqueInput
    update: XOR<MasterEntityLineItemUpdateWithoutStatusInput, MasterEntityLineItemUncheckedUpdateWithoutStatusInput>
    create: XOR<MasterEntityLineItemCreateWithoutStatusInput, MasterEntityLineItemUncheckedCreateWithoutStatusInput>
  }

  export type MasterEntityLineItemUpdateWithWhereUniqueWithoutStatusInput = {
    where: MasterEntityLineItemWhereUniqueInput
    data: XOR<MasterEntityLineItemUpdateWithoutStatusInput, MasterEntityLineItemUncheckedUpdateWithoutStatusInput>
  }

  export type MasterEntityLineItemUpdateManyWithWhereWithoutStatusInput = {
    where: MasterEntityLineItemScalarWhereInput
    data: XOR<MasterEntityLineItemUpdateManyMutationInput, MasterEntityLineItemUncheckedUpdateManyWithoutStatusInput>
  }

  export type FieldTypeUpsertWithWhereUniqueWithoutStatusInput = {
    where: FieldTypeWhereUniqueInput
    update: XOR<FieldTypeUpdateWithoutStatusInput, FieldTypeUncheckedUpdateWithoutStatusInput>
    create: XOR<FieldTypeCreateWithoutStatusInput, FieldTypeUncheckedCreateWithoutStatusInput>
  }

  export type FieldTypeUpdateWithWhereUniqueWithoutStatusInput = {
    where: FieldTypeWhereUniqueInput
    data: XOR<FieldTypeUpdateWithoutStatusInput, FieldTypeUncheckedUpdateWithoutStatusInput>
  }

  export type FieldTypeUpdateManyWithWhereWithoutStatusInput = {
    where: FieldTypeScalarWhereInput
    data: XOR<FieldTypeUpdateManyMutationInput, FieldTypeUncheckedUpdateManyWithoutStatusInput>
  }

  export type FieldTypeScalarWhereInput = {
    AND?: FieldTypeScalarWhereInput | FieldTypeScalarWhereInput[]
    OR?: FieldTypeScalarWhereInput[]
    NOT?: FieldTypeScalarWhereInput | FieldTypeScalarWhereInput[]
    id?: IntFilter<"FieldType"> | number
    field_type?: StringFilter<"FieldType"> | string
    company_id?: IntFilter<"FieldType"> | number
    status_id?: IntFilter<"FieldType"> | number
    created_at?: DateTimeFilter<"FieldType"> | Date | string
  }

  export type menuTypeUpsertWithWhereUniqueWithoutStatusInput = {
    where: menuTypeWhereUniqueInput
    update: XOR<menuTypeUpdateWithoutStatusInput, menuTypeUncheckedUpdateWithoutStatusInput>
    create: XOR<menuTypeCreateWithoutStatusInput, menuTypeUncheckedCreateWithoutStatusInput>
  }

  export type menuTypeUpdateWithWhereUniqueWithoutStatusInput = {
    where: menuTypeWhereUniqueInput
    data: XOR<menuTypeUpdateWithoutStatusInput, menuTypeUncheckedUpdateWithoutStatusInput>
  }

  export type menuTypeUpdateManyWithWhereWithoutStatusInput = {
    where: menuTypeScalarWhereInput
    data: XOR<menuTypeUpdateManyMutationInput, menuTypeUncheckedUpdateManyWithoutStatusInput>
  }

  export type menuTypeScalarWhereInput = {
    AND?: menuTypeScalarWhereInput | menuTypeScalarWhereInput[]
    OR?: menuTypeScalarWhereInput[]
    NOT?: menuTypeScalarWhereInput | menuTypeScalarWhereInput[]
    id?: IntFilter<"menuType"> | number
    name?: StringNullableFilter<"menuType"> | string | null
    status_id?: IntFilter<"menuType"> | number
    company_id?: IntFilter<"menuType"> | number
    created_at?: DateTimeFilter<"menuType"> | Date | string
  }

  export type EmailTemplateProcessUpsertWithWhereUniqueWithoutStatusInput = {
    where: EmailTemplateProcessWhereUniqueInput
    update: XOR<EmailTemplateProcessUpdateWithoutStatusInput, EmailTemplateProcessUncheckedUpdateWithoutStatusInput>
    create: XOR<EmailTemplateProcessCreateWithoutStatusInput, EmailTemplateProcessUncheckedCreateWithoutStatusInput>
  }

  export type EmailTemplateProcessUpdateWithWhereUniqueWithoutStatusInput = {
    where: EmailTemplateProcessWhereUniqueInput
    data: XOR<EmailTemplateProcessUpdateWithoutStatusInput, EmailTemplateProcessUncheckedUpdateWithoutStatusInput>
  }

  export type EmailTemplateProcessUpdateManyWithWhereWithoutStatusInput = {
    where: EmailTemplateProcessScalarWhereInput
    data: XOR<EmailTemplateProcessUpdateManyMutationInput, EmailTemplateProcessUncheckedUpdateManyWithoutStatusInput>
  }

  export type EmailTemplateProcessScalarWhereInput = {
    AND?: EmailTemplateProcessScalarWhereInput | EmailTemplateProcessScalarWhereInput[]
    OR?: EmailTemplateProcessScalarWhereInput[]
    NOT?: EmailTemplateProcessScalarWhereInput | EmailTemplateProcessScalarWhereInput[]
    id?: IntFilter<"EmailTemplateProcess"> | number
    uuid?: StringFilter<"EmailTemplateProcess"> | string
    name?: StringFilter<"EmailTemplateProcess"> | string
    slug?: StringFilter<"EmailTemplateProcess"> | string
    query_information?: StringNullableFilter<"EmailTemplateProcess"> | string | null
    status_id?: IntFilter<"EmailTemplateProcess"> | number
    company_id?: IntFilter<"EmailTemplateProcess"> | number
  }

  export type EmailTemplateTagUpsertWithWhereUniqueWithoutStatusInput = {
    where: EmailTemplateTagWhereUniqueInput
    update: XOR<EmailTemplateTagUpdateWithoutStatusInput, EmailTemplateTagUncheckedUpdateWithoutStatusInput>
    create: XOR<EmailTemplateTagCreateWithoutStatusInput, EmailTemplateTagUncheckedCreateWithoutStatusInput>
  }

  export type EmailTemplateTagUpdateWithWhereUniqueWithoutStatusInput = {
    where: EmailTemplateTagWhereUniqueInput
    data: XOR<EmailTemplateTagUpdateWithoutStatusInput, EmailTemplateTagUncheckedUpdateWithoutStatusInput>
  }

  export type EmailTemplateTagUpdateManyWithWhereWithoutStatusInput = {
    where: EmailTemplateTagScalarWhereInput
    data: XOR<EmailTemplateTagUpdateManyMutationInput, EmailTemplateTagUncheckedUpdateManyWithoutStatusInput>
  }

  export type EmailTemplateTagScalarWhereInput = {
    AND?: EmailTemplateTagScalarWhereInput | EmailTemplateTagScalarWhereInput[]
    OR?: EmailTemplateTagScalarWhereInput[]
    NOT?: EmailTemplateTagScalarWhereInput | EmailTemplateTagScalarWhereInput[]
    id?: IntFilter<"EmailTemplateTag"> | number
    uuid?: StringFilter<"EmailTemplateTag"> | string
    slug?: StringFilter<"EmailTemplateTag"> | string
    name?: StringNullableFilter<"EmailTemplateTag"> | string | null
    description?: StringNullableFilter<"EmailTemplateTag"> | string | null
    status_id?: IntFilter<"EmailTemplateTag"> | number
    company_id?: IntFilter<"EmailTemplateTag"> | number
  }

  export type EmailTemplateRecipientTagUpsertWithWhereUniqueWithoutStatusInput = {
    where: EmailTemplateRecipientTagWhereUniqueInput
    update: XOR<EmailTemplateRecipientTagUpdateWithoutStatusInput, EmailTemplateRecipientTagUncheckedUpdateWithoutStatusInput>
    create: XOR<EmailTemplateRecipientTagCreateWithoutStatusInput, EmailTemplateRecipientTagUncheckedCreateWithoutStatusInput>
  }

  export type EmailTemplateRecipientTagUpdateWithWhereUniqueWithoutStatusInput = {
    where: EmailTemplateRecipientTagWhereUniqueInput
    data: XOR<EmailTemplateRecipientTagUpdateWithoutStatusInput, EmailTemplateRecipientTagUncheckedUpdateWithoutStatusInput>
  }

  export type EmailTemplateRecipientTagUpdateManyWithWhereWithoutStatusInput = {
    where: EmailTemplateRecipientTagScalarWhereInput
    data: XOR<EmailTemplateRecipientTagUpdateManyMutationInput, EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusInput>
  }

  export type EmailTemplateRecipientTagScalarWhereInput = {
    AND?: EmailTemplateRecipientTagScalarWhereInput | EmailTemplateRecipientTagScalarWhereInput[]
    OR?: EmailTemplateRecipientTagScalarWhereInput[]
    NOT?: EmailTemplateRecipientTagScalarWhereInput | EmailTemplateRecipientTagScalarWhereInput[]
    id?: IntFilter<"EmailTemplateRecipientTag"> | number
    uuid?: StringFilter<"EmailTemplateRecipientTag"> | string
    slug?: StringFilter<"EmailTemplateRecipientTag"> | string
    name?: StringNullableFilter<"EmailTemplateRecipientTag"> | string | null
    description?: StringNullableFilter<"EmailTemplateRecipientTag"> | string | null
    query_information?: StringNullableFilter<"EmailTemplateRecipientTag"> | string | null
    status_id?: IntFilter<"EmailTemplateRecipientTag"> | number
    company_id?: IntFilter<"EmailTemplateRecipientTag"> | number
  }

  export type EmailTemplateUpsertWithWhereUniqueWithoutStatusInput = {
    where: EmailTemplateWhereUniqueInput
    update: XOR<EmailTemplateUpdateWithoutStatusInput, EmailTemplateUncheckedUpdateWithoutStatusInput>
    create: XOR<EmailTemplateCreateWithoutStatusInput, EmailTemplateUncheckedCreateWithoutStatusInput>
  }

  export type EmailTemplateUpdateWithWhereUniqueWithoutStatusInput = {
    where: EmailTemplateWhereUniqueInput
    data: XOR<EmailTemplateUpdateWithoutStatusInput, EmailTemplateUncheckedUpdateWithoutStatusInput>
  }

  export type EmailTemplateUpdateManyWithWhereWithoutStatusInput = {
    where: EmailTemplateScalarWhereInput
    data: XOR<EmailTemplateUpdateManyMutationInput, EmailTemplateUncheckedUpdateManyWithoutStatusInput>
  }

  export type EmailProcessJobUpsertWithWhereUniqueWithoutStatusInput = {
    where: EmailProcessJobWhereUniqueInput
    update: XOR<EmailProcessJobUpdateWithoutStatusInput, EmailProcessJobUncheckedUpdateWithoutStatusInput>
    create: XOR<EmailProcessJobCreateWithoutStatusInput, EmailProcessJobUncheckedCreateWithoutStatusInput>
  }

  export type EmailProcessJobUpdateWithWhereUniqueWithoutStatusInput = {
    where: EmailProcessJobWhereUniqueInput
    data: XOR<EmailProcessJobUpdateWithoutStatusInput, EmailProcessJobUncheckedUpdateWithoutStatusInput>
  }

  export type EmailProcessJobUpdateManyWithWhereWithoutStatusInput = {
    where: EmailProcessJobScalarWhereInput
    data: XOR<EmailProcessJobUpdateManyMutationInput, EmailProcessJobUncheckedUpdateManyWithoutStatusInput>
  }

  export type NotificationJobUpsertWithWhereUniqueWithoutStatusInput = {
    where: NotificationJobWhereUniqueInput
    update: XOR<NotificationJobUpdateWithoutStatusInput, NotificationJobUncheckedUpdateWithoutStatusInput>
    create: XOR<NotificationJobCreateWithoutStatusInput, NotificationJobUncheckedCreateWithoutStatusInput>
  }

  export type NotificationJobUpdateWithWhereUniqueWithoutStatusInput = {
    where: NotificationJobWhereUniqueInput
    data: XOR<NotificationJobUpdateWithoutStatusInput, NotificationJobUncheckedUpdateWithoutStatusInput>
  }

  export type NotificationJobUpdateManyWithWhereWithoutStatusInput = {
    where: NotificationJobScalarWhereInput
    data: XOR<NotificationJobUpdateManyMutationInput, NotificationJobUncheckedUpdateManyWithoutStatusInput>
  }

  export type ImportTemplateUpsertWithWhereUniqueWithoutStatusInput = {
    where: ImportTemplateWhereUniqueInput
    update: XOR<ImportTemplateUpdateWithoutStatusInput, ImportTemplateUncheckedUpdateWithoutStatusInput>
    create: XOR<ImportTemplateCreateWithoutStatusInput, ImportTemplateUncheckedCreateWithoutStatusInput>
  }

  export type ImportTemplateUpdateWithWhereUniqueWithoutStatusInput = {
    where: ImportTemplateWhereUniqueInput
    data: XOR<ImportTemplateUpdateWithoutStatusInput, ImportTemplateUncheckedUpdateWithoutStatusInput>
  }

  export type ImportTemplateUpdateManyWithWhereWithoutStatusInput = {
    where: ImportTemplateScalarWhereInput
    data: XOR<ImportTemplateUpdateManyMutationInput, ImportTemplateUncheckedUpdateManyWithoutStatusInput>
  }

  export type ImportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput = {
    where: ImportTemplateLineItemWhereUniqueInput
    update: XOR<ImportTemplateLineItemUpdateWithoutStatusInput, ImportTemplateLineItemUncheckedUpdateWithoutStatusInput>
    create: XOR<ImportTemplateLineItemCreateWithoutStatusInput, ImportTemplateLineItemUncheckedCreateWithoutStatusInput>
  }

  export type ImportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput = {
    where: ImportTemplateLineItemWhereUniqueInput
    data: XOR<ImportTemplateLineItemUpdateWithoutStatusInput, ImportTemplateLineItemUncheckedUpdateWithoutStatusInput>
  }

  export type ImportTemplateLineItemUpdateManyWithWhereWithoutStatusInput = {
    where: ImportTemplateLineItemScalarWhereInput
    data: XOR<ImportTemplateLineItemUpdateManyMutationInput, ImportTemplateLineItemUncheckedUpdateManyWithoutStatusInput>
  }

  export type ImportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput = {
    where: ImportTemplateQueriesWhereUniqueInput
    update: XOR<ImportTemplateQueriesUpdateWithoutStatusInput, ImportTemplateQueriesUncheckedUpdateWithoutStatusInput>
    create: XOR<ImportTemplateQueriesCreateWithoutStatusInput, ImportTemplateQueriesUncheckedCreateWithoutStatusInput>
  }

  export type ImportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput = {
    where: ImportTemplateQueriesWhereUniqueInput
    data: XOR<ImportTemplateQueriesUpdateWithoutStatusInput, ImportTemplateQueriesUncheckedUpdateWithoutStatusInput>
  }

  export type ImportTemplateQueriesUpdateManyWithWhereWithoutStatusInput = {
    where: ImportTemplateQueriesScalarWhereInput
    data: XOR<ImportTemplateQueriesUpdateManyMutationInput, ImportTemplateQueriesUncheckedUpdateManyWithoutStatusInput>
  }

  export type ExportTemplateUpsertWithWhereUniqueWithoutStatusInput = {
    where: ExportTemplateWhereUniqueInput
    update: XOR<ExportTemplateUpdateWithoutStatusInput, ExportTemplateUncheckedUpdateWithoutStatusInput>
    create: XOR<ExportTemplateCreateWithoutStatusInput, ExportTemplateUncheckedCreateWithoutStatusInput>
  }

  export type ExportTemplateUpdateWithWhereUniqueWithoutStatusInput = {
    where: ExportTemplateWhereUniqueInput
    data: XOR<ExportTemplateUpdateWithoutStatusInput, ExportTemplateUncheckedUpdateWithoutStatusInput>
  }

  export type ExportTemplateUpdateManyWithWhereWithoutStatusInput = {
    where: ExportTemplateScalarWhereInput
    data: XOR<ExportTemplateUpdateManyMutationInput, ExportTemplateUncheckedUpdateManyWithoutStatusInput>
  }

  export type ExportTemplateLineItemUpsertWithWhereUniqueWithoutStatusInput = {
    where: ExportTemplateLineItemWhereUniqueInput
    update: XOR<ExportTemplateLineItemUpdateWithoutStatusInput, ExportTemplateLineItemUncheckedUpdateWithoutStatusInput>
    create: XOR<ExportTemplateLineItemCreateWithoutStatusInput, ExportTemplateLineItemUncheckedCreateWithoutStatusInput>
  }

  export type ExportTemplateLineItemUpdateWithWhereUniqueWithoutStatusInput = {
    where: ExportTemplateLineItemWhereUniqueInput
    data: XOR<ExportTemplateLineItemUpdateWithoutStatusInput, ExportTemplateLineItemUncheckedUpdateWithoutStatusInput>
  }

  export type ExportTemplateLineItemUpdateManyWithWhereWithoutStatusInput = {
    where: ExportTemplateLineItemScalarWhereInput
    data: XOR<ExportTemplateLineItemUpdateManyMutationInput, ExportTemplateLineItemUncheckedUpdateManyWithoutStatusInput>
  }

  export type ExportTemplateQueriesUpsertWithWhereUniqueWithoutStatusInput = {
    where: ExportTemplateQueriesWhereUniqueInput
    update: XOR<ExportTemplateQueriesUpdateWithoutStatusInput, ExportTemplateQueriesUncheckedUpdateWithoutStatusInput>
    create: XOR<ExportTemplateQueriesCreateWithoutStatusInput, ExportTemplateQueriesUncheckedCreateWithoutStatusInput>
  }

  export type ExportTemplateQueriesUpdateWithWhereUniqueWithoutStatusInput = {
    where: ExportTemplateQueriesWhereUniqueInput
    data: XOR<ExportTemplateQueriesUpdateWithoutStatusInput, ExportTemplateQueriesUncheckedUpdateWithoutStatusInput>
  }

  export type ExportTemplateQueriesUpdateManyWithWhereWithoutStatusInput = {
    where: ExportTemplateQueriesScalarWhereInput
    data: XOR<ExportTemplateQueriesUpdateManyMutationInput, ExportTemplateQueriesUncheckedUpdateManyWithoutStatusInput>
  }

  export type DesignationUpsertWithWhereUniqueWithoutStatusInput = {
    where: DesignationWhereUniqueInput
    update: XOR<DesignationUpdateWithoutStatusInput, DesignationUncheckedUpdateWithoutStatusInput>
    create: XOR<DesignationCreateWithoutStatusInput, DesignationUncheckedCreateWithoutStatusInput>
  }

  export type DesignationUpdateWithWhereUniqueWithoutStatusInput = {
    where: DesignationWhereUniqueInput
    data: XOR<DesignationUpdateWithoutStatusInput, DesignationUncheckedUpdateWithoutStatusInput>
  }

  export type DesignationUpdateManyWithWhereWithoutStatusInput = {
    where: DesignationScalarWhereInput
    data: XOR<DesignationUpdateManyMutationInput, DesignationUncheckedUpdateManyWithoutStatusInput>
  }

  export type DepartmentUpsertWithWhereUniqueWithoutStatusInput = {
    where: DepartmentWhereUniqueInput
    update: XOR<DepartmentUpdateWithoutStatusInput, DepartmentUncheckedUpdateWithoutStatusInput>
    create: XOR<DepartmentCreateWithoutStatusInput, DepartmentUncheckedCreateWithoutStatusInput>
  }

  export type DepartmentUpdateWithWhereUniqueWithoutStatusInput = {
    where: DepartmentWhereUniqueInput
    data: XOR<DepartmentUpdateWithoutStatusInput, DepartmentUncheckedUpdateWithoutStatusInput>
  }

  export type DepartmentUpdateManyWithWhereWithoutStatusInput = {
    where: DepartmentScalarWhereInput
    data: XOR<DepartmentUpdateManyMutationInput, DepartmentUncheckedUpdateManyWithoutStatusInput>
  }

  export type AuditLogUpsertWithWhereUniqueWithoutStatusInput = {
    where: AuditLogWhereUniqueInput
    update: XOR<AuditLogUpdateWithoutStatusInput, AuditLogUncheckedUpdateWithoutStatusInput>
    create: XOR<AuditLogCreateWithoutStatusInput, AuditLogUncheckedCreateWithoutStatusInput>
  }

  export type AuditLogUpdateWithWhereUniqueWithoutStatusInput = {
    where: AuditLogWhereUniqueInput
    data: XOR<AuditLogUpdateWithoutStatusInput, AuditLogUncheckedUpdateWithoutStatusInput>
  }

  export type AuditLogUpdateManyWithWhereWithoutStatusInput = {
    where: AuditLogScalarWhereInput
    data: XOR<AuditLogUpdateManyMutationInput, AuditLogUncheckedUpdateManyWithoutStatusInput>
  }

  export type FinancialYearUpsertWithWhereUniqueWithoutStatusInput = {
    where: FinancialYearWhereUniqueInput
    update: XOR<FinancialYearUpdateWithoutStatusInput, FinancialYearUncheckedUpdateWithoutStatusInput>
    create: XOR<FinancialYearCreateWithoutStatusInput, FinancialYearUncheckedCreateWithoutStatusInput>
  }

  export type FinancialYearUpdateWithWhereUniqueWithoutStatusInput = {
    where: FinancialYearWhereUniqueInput
    data: XOR<FinancialYearUpdateWithoutStatusInput, FinancialYearUncheckedUpdateWithoutStatusInput>
  }

  export type FinancialYearUpdateManyWithWhereWithoutStatusInput = {
    where: FinancialYearScalarWhereInput
    data: XOR<FinancialYearUpdateManyMutationInput, FinancialYearUncheckedUpdateManyWithoutStatusInput>
  }

  export type DocumentSequenceUpsertWithWhereUniqueWithoutStatusInput = {
    where: DocumentSequenceWhereUniqueInput
    update: XOR<DocumentSequenceUpdateWithoutStatusInput, DocumentSequenceUncheckedUpdateWithoutStatusInput>
    create: XOR<DocumentSequenceCreateWithoutStatusInput, DocumentSequenceUncheckedCreateWithoutStatusInput>
  }

  export type DocumentSequenceUpdateWithWhereUniqueWithoutStatusInput = {
    where: DocumentSequenceWhereUniqueInput
    data: XOR<DocumentSequenceUpdateWithoutStatusInput, DocumentSequenceUncheckedUpdateWithoutStatusInput>
  }

  export type DocumentSequenceUpdateManyWithWhereWithoutStatusInput = {
    where: DocumentSequenceScalarWhereInput
    data: XOR<DocumentSequenceUpdateManyMutationInput, DocumentSequenceUncheckedUpdateManyWithoutStatusInput>
  }

  export type FileUploadLogUpsertWithWhereUniqueWithoutStatusInput = {
    where: FileUploadLogWhereUniqueInput
    update: XOR<FileUploadLogUpdateWithoutStatusInput, FileUploadLogUncheckedUpdateWithoutStatusInput>
    create: XOR<FileUploadLogCreateWithoutStatusInput, FileUploadLogUncheckedCreateWithoutStatusInput>
  }

  export type FileUploadLogUpdateWithWhereUniqueWithoutStatusInput = {
    where: FileUploadLogWhereUniqueInput
    data: XOR<FileUploadLogUpdateWithoutStatusInput, FileUploadLogUncheckedUpdateWithoutStatusInput>
  }

  export type FileUploadLogUpdateManyWithWhereWithoutStatusInput = {
    where: FileUploadLogScalarWhereInput
    data: XOR<FileUploadLogUpdateManyMutationInput, FileUploadLogUncheckedUpdateManyWithoutStatusInput>
  }

  export type FileUploadLogScalarWhereInput = {
    AND?: FileUploadLogScalarWhereInput | FileUploadLogScalarWhereInput[]
    OR?: FileUploadLogScalarWhereInput[]
    NOT?: FileUploadLogScalarWhereInput | FileUploadLogScalarWhereInput[]
    id?: IntFilter<"FileUploadLog"> | number
    uuid?: StringFilter<"FileUploadLog"> | string
    doc_name?: StringNullableFilter<"FileUploadLog"> | string | null
    org_name?: StringNullableFilter<"FileUploadLog"> | string | null
    extension?: StringNullableFilter<"FileUploadLog"> | string | null
    description?: StringNullableFilter<"FileUploadLog"> | string | null
    status_id?: IntFilter<"FileUploadLog"> | number
    company_id?: IntFilter<"FileUploadLog"> | number
    created_at?: DateTimeFilter<"FileUploadLog"> | Date | string
  }

  export type DeviceRegistrationUpsertWithWhereUniqueWithoutStatusInput = {
    where: DeviceRegistrationWhereUniqueInput
    update: XOR<DeviceRegistrationUpdateWithoutStatusInput, DeviceRegistrationUncheckedUpdateWithoutStatusInput>
    create: XOR<DeviceRegistrationCreateWithoutStatusInput, DeviceRegistrationUncheckedCreateWithoutStatusInput>
  }

  export type DeviceRegistrationUpdateWithWhereUniqueWithoutStatusInput = {
    where: DeviceRegistrationWhereUniqueInput
    data: XOR<DeviceRegistrationUpdateWithoutStatusInput, DeviceRegistrationUncheckedUpdateWithoutStatusInput>
  }

  export type DeviceRegistrationUpdateManyWithWhereWithoutStatusInput = {
    where: DeviceRegistrationScalarWhereInput
    data: XOR<DeviceRegistrationUpdateManyMutationInput, DeviceRegistrationUncheckedUpdateManyWithoutStatusInput>
  }

  export type ImportJobUpsertWithWhereUniqueWithoutStatusInput = {
    where: ImportJobWhereUniqueInput
    update: XOR<ImportJobUpdateWithoutStatusInput, ImportJobUncheckedUpdateWithoutStatusInput>
    create: XOR<ImportJobCreateWithoutStatusInput, ImportJobUncheckedCreateWithoutStatusInput>
  }

  export type ImportJobUpdateWithWhereUniqueWithoutStatusInput = {
    where: ImportJobWhereUniqueInput
    data: XOR<ImportJobUpdateWithoutStatusInput, ImportJobUncheckedUpdateWithoutStatusInput>
  }

  export type ImportJobUpdateManyWithWhereWithoutStatusInput = {
    where: ImportJobScalarWhereInput
    data: XOR<ImportJobUpdateManyMutationInput, ImportJobUncheckedUpdateManyWithoutStatusInput>
  }

  export type ImportJobLineItemUpsertWithWhereUniqueWithoutStatusInput = {
    where: ImportJobLineItemWhereUniqueInput
    update: XOR<ImportJobLineItemUpdateWithoutStatusInput, ImportJobLineItemUncheckedUpdateWithoutStatusInput>
    create: XOR<ImportJobLineItemCreateWithoutStatusInput, ImportJobLineItemUncheckedCreateWithoutStatusInput>
  }

  export type ImportJobLineItemUpdateWithWhereUniqueWithoutStatusInput = {
    where: ImportJobLineItemWhereUniqueInput
    data: XOR<ImportJobLineItemUpdateWithoutStatusInput, ImportJobLineItemUncheckedUpdateWithoutStatusInput>
  }

  export type ImportJobLineItemUpdateManyWithWhereWithoutStatusInput = {
    where: ImportJobLineItemScalarWhereInput
    data: XOR<ImportJobLineItemUpdateManyMutationInput, ImportJobLineItemUncheckedUpdateManyWithoutStatusInput>
  }

  export type UserCreateWithoutCreated_category_typesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_category_typesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_category_typesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_category_typesInput, UserUncheckedCreateWithoutCreated_category_typesInput>
  }

  export type UserCreateWithoutUpdated_category_typesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_category_typesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_category_typesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_category_typesInput, UserUncheckedCreateWithoutUpdated_category_typesInput>
  }

  export type UserCreateWithoutDeleted_category_typesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_category_typesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_category_typesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_category_typesInput, UserUncheckedCreateWithoutDeleted_category_typesInput>
  }

  export type CategoriesCreateWithoutCategory_typeInput = {
    uuid?: string
    category_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    parent?: CategoriesCreateNestedOneWithoutSubcategoriesInput
    subcategories?: CategoriesCreateNestedManyWithoutParentInput
    created_categories?: UserCreateNestedOneWithoutCreated_categoriesInput
    updated_categories?: UserCreateNestedOneWithoutUpdated_categoriesInput
    deleted_categories?: UserCreateNestedOneWithoutDeleted_categoriesInput
    configurations?: ConfigurationsCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesUncheckedCreateWithoutCategory_typeInput = {
    id?: number
    uuid?: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    subcategories?: CategoriesUncheckedCreateNestedManyWithoutParentInput
    configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesCreateOrConnectWithoutCategory_typeInput = {
    where: CategoriesWhereUniqueInput
    create: XOR<CategoriesCreateWithoutCategory_typeInput, CategoriesUncheckedCreateWithoutCategory_typeInput>
  }

  export type CategoriesCreateManyCategory_typeInputEnvelope = {
    data: CategoriesCreateManyCategory_typeInput | CategoriesCreateManyCategory_typeInput[]
  }

  export type UserUpsertWithoutCreated_category_typesInput = {
    update: XOR<UserUpdateWithoutCreated_category_typesInput, UserUncheckedUpdateWithoutCreated_category_typesInput>
    create: XOR<UserCreateWithoutCreated_category_typesInput, UserUncheckedCreateWithoutCreated_category_typesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_category_typesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_category_typesInput, UserUncheckedUpdateWithoutCreated_category_typesInput>
  }

  export type UserUpdateWithoutCreated_category_typesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_category_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_category_typesInput = {
    update: XOR<UserUpdateWithoutUpdated_category_typesInput, UserUncheckedUpdateWithoutUpdated_category_typesInput>
    create: XOR<UserCreateWithoutUpdated_category_typesInput, UserUncheckedCreateWithoutUpdated_category_typesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_category_typesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_category_typesInput, UserUncheckedUpdateWithoutUpdated_category_typesInput>
  }

  export type UserUpdateWithoutUpdated_category_typesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_category_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_category_typesInput = {
    update: XOR<UserUpdateWithoutDeleted_category_typesInput, UserUncheckedUpdateWithoutDeleted_category_typesInput>
    create: XOR<UserCreateWithoutDeleted_category_typesInput, UserUncheckedCreateWithoutDeleted_category_typesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_category_typesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_category_typesInput, UserUncheckedUpdateWithoutDeleted_category_typesInput>
  }

  export type UserUpdateWithoutDeleted_category_typesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_category_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type CategoriesUpsertWithWhereUniqueWithoutCategory_typeInput = {
    where: CategoriesWhereUniqueInput
    update: XOR<CategoriesUpdateWithoutCategory_typeInput, CategoriesUncheckedUpdateWithoutCategory_typeInput>
    create: XOR<CategoriesCreateWithoutCategory_typeInput, CategoriesUncheckedCreateWithoutCategory_typeInput>
  }

  export type CategoriesUpdateWithWhereUniqueWithoutCategory_typeInput = {
    where: CategoriesWhereUniqueInput
    data: XOR<CategoriesUpdateWithoutCategory_typeInput, CategoriesUncheckedUpdateWithoutCategory_typeInput>
  }

  export type CategoriesUpdateManyWithWhereWithoutCategory_typeInput = {
    where: CategoriesScalarWhereInput
    data: XOR<CategoriesUpdateManyMutationInput, CategoriesUncheckedUpdateManyWithoutCategory_typeInput>
  }

  export type CategoriesCreateWithoutSubcategoriesInput = {
    uuid?: string
    category_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    parent?: CategoriesCreateNestedOneWithoutSubcategoriesInput
    category_type: CategoryTypesCreateNestedOneWithoutCategoriesInput
    created_categories?: UserCreateNestedOneWithoutCreated_categoriesInput
    updated_categories?: UserCreateNestedOneWithoutUpdated_categoriesInput
    deleted_categories?: UserCreateNestedOneWithoutDeleted_categoriesInput
    configurations?: ConfigurationsCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesUncheckedCreateWithoutSubcategoriesInput = {
    id?: number
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesCreateOrConnectWithoutSubcategoriesInput = {
    where: CategoriesWhereUniqueInput
    create: XOR<CategoriesCreateWithoutSubcategoriesInput, CategoriesUncheckedCreateWithoutSubcategoriesInput>
  }

  export type CategoriesCreateWithoutParentInput = {
    uuid?: string
    category_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    subcategories?: CategoriesCreateNestedManyWithoutParentInput
    category_type: CategoryTypesCreateNestedOneWithoutCategoriesInput
    created_categories?: UserCreateNestedOneWithoutCreated_categoriesInput
    updated_categories?: UserCreateNestedOneWithoutUpdated_categoriesInput
    deleted_categories?: UserCreateNestedOneWithoutDeleted_categoriesInput
    configurations?: ConfigurationsCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesUncheckedCreateWithoutParentInput = {
    id?: number
    uuid?: string
    category_type_id: string
    category_id: string
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    subcategories?: CategoriesUncheckedCreateNestedManyWithoutParentInput
    configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCategoryInput
  }

  export type CategoriesCreateOrConnectWithoutParentInput = {
    where: CategoriesWhereUniqueInput
    create: XOR<CategoriesCreateWithoutParentInput, CategoriesUncheckedCreateWithoutParentInput>
  }

  export type CategoriesCreateManyParentInputEnvelope = {
    data: CategoriesCreateManyParentInput | CategoriesCreateManyParentInput[]
  }

  export type CategoryTypesCreateWithoutCategoriesInput = {
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    created_category_types?: UserCreateNestedOneWithoutCreated_category_typesInput
    updated_category_types?: UserCreateNestedOneWithoutUpdated_category_typesInput
    deleted_category_types?: UserCreateNestedOneWithoutDeleted_category_typesInput
  }

  export type CategoryTypesUncheckedCreateWithoutCategoriesInput = {
    id?: number
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type CategoryTypesCreateOrConnectWithoutCategoriesInput = {
    where: CategoryTypesWhereUniqueInput
    create: XOR<CategoryTypesCreateWithoutCategoriesInput, CategoryTypesUncheckedCreateWithoutCategoriesInput>
  }

  export type UserCreateWithoutCreated_categoriesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_categoriesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_categoriesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_categoriesInput, UserUncheckedCreateWithoutCreated_categoriesInput>
  }

  export type UserCreateWithoutUpdated_categoriesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_categoriesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_categoriesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_categoriesInput, UserUncheckedCreateWithoutUpdated_categoriesInput>
  }

  export type UserCreateWithoutDeleted_categoriesInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_categoriesInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_categoriesInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_categoriesInput, UserUncheckedCreateWithoutDeleted_categoriesInput>
  }

  export type ConfigurationsCreateWithoutCategoryInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
    created_configurations?: UserCreateNestedOneWithoutCreated_configurationsInput
    updated_configurations?: UserCreateNestedOneWithoutUpdated_configurationsInput
    deleted_configurations?: UserCreateNestedOneWithoutDeleted_configurationsInput
  }

  export type ConfigurationsUncheckedCreateWithoutCategoryInput = {
    id?: number
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type ConfigurationsCreateOrConnectWithoutCategoryInput = {
    where: ConfigurationsWhereUniqueInput
    create: XOR<ConfigurationsCreateWithoutCategoryInput, ConfigurationsUncheckedCreateWithoutCategoryInput>
  }

  export type ConfigurationsCreateManyCategoryInputEnvelope = {
    data: ConfigurationsCreateManyCategoryInput | ConfigurationsCreateManyCategoryInput[]
  }

  export type CategoriesUpsertWithoutSubcategoriesInput = {
    update: XOR<CategoriesUpdateWithoutSubcategoriesInput, CategoriesUncheckedUpdateWithoutSubcategoriesInput>
    create: XOR<CategoriesCreateWithoutSubcategoriesInput, CategoriesUncheckedCreateWithoutSubcategoriesInput>
    where?: CategoriesWhereInput
  }

  export type CategoriesUpdateToOneWithWhereWithoutSubcategoriesInput = {
    where?: CategoriesWhereInput
    data: XOR<CategoriesUpdateWithoutSubcategoriesInput, CategoriesUncheckedUpdateWithoutSubcategoriesInput>
  }

  export type CategoriesUpdateWithoutSubcategoriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    parent?: CategoriesUpdateOneWithoutSubcategoriesNestedInput
    category_type?: CategoryTypesUpdateOneRequiredWithoutCategoriesNestedInput
    created_categories?: UserUpdateOneWithoutCreated_categoriesNestedInput
    updated_categories?: UserUpdateOneWithoutUpdated_categoriesNestedInput
    deleted_categories?: UserUpdateOneWithoutDeleted_categoriesNestedInput
    configurations?: ConfigurationsUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateWithoutSubcategoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    configurations?: ConfigurationsUncheckedUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUpsertWithWhereUniqueWithoutParentInput = {
    where: CategoriesWhereUniqueInput
    update: XOR<CategoriesUpdateWithoutParentInput, CategoriesUncheckedUpdateWithoutParentInput>
    create: XOR<CategoriesCreateWithoutParentInput, CategoriesUncheckedCreateWithoutParentInput>
  }

  export type CategoriesUpdateWithWhereUniqueWithoutParentInput = {
    where: CategoriesWhereUniqueInput
    data: XOR<CategoriesUpdateWithoutParentInput, CategoriesUncheckedUpdateWithoutParentInput>
  }

  export type CategoriesUpdateManyWithWhereWithoutParentInput = {
    where: CategoriesScalarWhereInput
    data: XOR<CategoriesUpdateManyMutationInput, CategoriesUncheckedUpdateManyWithoutParentInput>
  }

  export type CategoryTypesUpsertWithoutCategoriesInput = {
    update: XOR<CategoryTypesUpdateWithoutCategoriesInput, CategoryTypesUncheckedUpdateWithoutCategoriesInput>
    create: XOR<CategoryTypesCreateWithoutCategoriesInput, CategoryTypesUncheckedCreateWithoutCategoriesInput>
    where?: CategoryTypesWhereInput
  }

  export type CategoryTypesUpdateToOneWithWhereWithoutCategoriesInput = {
    where?: CategoryTypesWhereInput
    data: XOR<CategoryTypesUpdateWithoutCategoriesInput, CategoryTypesUncheckedUpdateWithoutCategoriesInput>
  }

  export type CategoryTypesUpdateWithoutCategoriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created_category_types?: UserUpdateOneWithoutCreated_category_typesNestedInput
    updated_category_types?: UserUpdateOneWithoutUpdated_category_typesNestedInput
    deleted_category_types?: UserUpdateOneWithoutDeleted_category_typesNestedInput
  }

  export type CategoryTypesUncheckedUpdateWithoutCategoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserUpsertWithoutCreated_categoriesInput = {
    update: XOR<UserUpdateWithoutCreated_categoriesInput, UserUncheckedUpdateWithoutCreated_categoriesInput>
    create: XOR<UserCreateWithoutCreated_categoriesInput, UserUncheckedCreateWithoutCreated_categoriesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_categoriesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_categoriesInput, UserUncheckedUpdateWithoutCreated_categoriesInput>
  }

  export type UserUpdateWithoutCreated_categoriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_categoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_categoriesInput = {
    update: XOR<UserUpdateWithoutUpdated_categoriesInput, UserUncheckedUpdateWithoutUpdated_categoriesInput>
    create: XOR<UserCreateWithoutUpdated_categoriesInput, UserUncheckedCreateWithoutUpdated_categoriesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_categoriesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_categoriesInput, UserUncheckedUpdateWithoutUpdated_categoriesInput>
  }

  export type UserUpdateWithoutUpdated_categoriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_categoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_categoriesInput = {
    update: XOR<UserUpdateWithoutDeleted_categoriesInput, UserUncheckedUpdateWithoutDeleted_categoriesInput>
    create: XOR<UserCreateWithoutDeleted_categoriesInput, UserUncheckedCreateWithoutDeleted_categoriesInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_categoriesInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_categoriesInput, UserUncheckedUpdateWithoutDeleted_categoriesInput>
  }

  export type UserUpdateWithoutDeleted_categoriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_categoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type ConfigurationsUpsertWithWhereUniqueWithoutCategoryInput = {
    where: ConfigurationsWhereUniqueInput
    update: XOR<ConfigurationsUpdateWithoutCategoryInput, ConfigurationsUncheckedUpdateWithoutCategoryInput>
    create: XOR<ConfigurationsCreateWithoutCategoryInput, ConfigurationsUncheckedCreateWithoutCategoryInput>
  }

  export type ConfigurationsUpdateWithWhereUniqueWithoutCategoryInput = {
    where: ConfigurationsWhereUniqueInput
    data: XOR<ConfigurationsUpdateWithoutCategoryInput, ConfigurationsUncheckedUpdateWithoutCategoryInput>
  }

  export type ConfigurationsUpdateManyWithWhereWithoutCategoryInput = {
    where: ConfigurationsScalarWhereInput
    data: XOR<ConfigurationsUpdateManyMutationInput, ConfigurationsUncheckedUpdateManyWithoutCategoryInput>
  }

  export type CategoriesCreateWithoutConfigurationsInput = {
    uuid?: string
    category_id: string
    name: string
    description?: string | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    parent?: CategoriesCreateNestedOneWithoutSubcategoriesInput
    subcategories?: CategoriesCreateNestedManyWithoutParentInput
    category_type: CategoryTypesCreateNestedOneWithoutCategoriesInput
    created_categories?: UserCreateNestedOneWithoutCreated_categoriesInput
    updated_categories?: UserCreateNestedOneWithoutUpdated_categoriesInput
    deleted_categories?: UserCreateNestedOneWithoutDeleted_categoriesInput
  }

  export type CategoriesUncheckedCreateWithoutConfigurationsInput = {
    id?: number
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    subcategories?: CategoriesUncheckedCreateNestedManyWithoutParentInput
  }

  export type CategoriesCreateOrConnectWithoutConfigurationsInput = {
    where: CategoriesWhereUniqueInput
    create: XOR<CategoriesCreateWithoutConfigurationsInput, CategoriesUncheckedCreateWithoutConfigurationsInput>
  }

  export type UserCreateWithoutCreated_configurationsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_configurationsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_configurationsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_configurationsInput, UserUncheckedCreateWithoutCreated_configurationsInput>
  }

  export type UserCreateWithoutUpdated_configurationsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_configurationsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_configurationsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_configurationsInput, UserUncheckedCreateWithoutUpdated_configurationsInput>
  }

  export type UserCreateWithoutDeleted_configurationsInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_configurationsInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_configurationsInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_configurationsInput, UserUncheckedCreateWithoutDeleted_configurationsInput>
  }

  export type CategoriesUpsertWithoutConfigurationsInput = {
    update: XOR<CategoriesUpdateWithoutConfigurationsInput, CategoriesUncheckedUpdateWithoutConfigurationsInput>
    create: XOR<CategoriesCreateWithoutConfigurationsInput, CategoriesUncheckedCreateWithoutConfigurationsInput>
    where?: CategoriesWhereInput
  }

  export type CategoriesUpdateToOneWithWhereWithoutConfigurationsInput = {
    where?: CategoriesWhereInput
    data: XOR<CategoriesUpdateWithoutConfigurationsInput, CategoriesUncheckedUpdateWithoutConfigurationsInput>
  }

  export type CategoriesUpdateWithoutConfigurationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    parent?: CategoriesUpdateOneWithoutSubcategoriesNestedInput
    subcategories?: CategoriesUpdateManyWithoutParentNestedInput
    category_type?: CategoryTypesUpdateOneRequiredWithoutCategoriesNestedInput
    created_categories?: UserUpdateOneWithoutCreated_categoriesNestedInput
    updated_categories?: UserUpdateOneWithoutUpdated_categoriesNestedInput
    deleted_categories?: UserUpdateOneWithoutDeleted_categoriesNestedInput
  }

  export type CategoriesUncheckedUpdateWithoutConfigurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    subcategories?: CategoriesUncheckedUpdateManyWithoutParentNestedInput
  }

  export type UserUpsertWithoutCreated_configurationsInput = {
    update: XOR<UserUpdateWithoutCreated_configurationsInput, UserUncheckedUpdateWithoutCreated_configurationsInput>
    create: XOR<UserCreateWithoutCreated_configurationsInput, UserUncheckedCreateWithoutCreated_configurationsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_configurationsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_configurationsInput, UserUncheckedUpdateWithoutCreated_configurationsInput>
  }

  export type UserUpdateWithoutCreated_configurationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_configurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_configurationsInput = {
    update: XOR<UserUpdateWithoutUpdated_configurationsInput, UserUncheckedUpdateWithoutUpdated_configurationsInput>
    create: XOR<UserCreateWithoutUpdated_configurationsInput, UserUncheckedCreateWithoutUpdated_configurationsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_configurationsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_configurationsInput, UserUncheckedUpdateWithoutUpdated_configurationsInput>
  }

  export type UserUpdateWithoutUpdated_configurationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_configurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_configurationsInput = {
    update: XOR<UserUpdateWithoutDeleted_configurationsInput, UserUncheckedUpdateWithoutDeleted_configurationsInput>
    create: XOR<UserCreateWithoutDeleted_configurationsInput, UserUncheckedCreateWithoutDeleted_configurationsInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_configurationsInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_configurationsInput, UserUncheckedUpdateWithoutDeleted_configurationsInput>
  }

  export type UserUpdateWithoutDeleted_configurationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_configurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type StatusCreateWithoutFile_upload_logsInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutFile_upload_logsInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutFile_upload_logsInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutFile_upload_logsInput, StatusUncheckedCreateWithoutFile_upload_logsInput>
  }

  export type StatusUpsertWithoutFile_upload_logsInput = {
    update: XOR<StatusUpdateWithoutFile_upload_logsInput, StatusUncheckedUpdateWithoutFile_upload_logsInput>
    create: XOR<StatusCreateWithoutFile_upload_logsInput, StatusUncheckedCreateWithoutFile_upload_logsInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutFile_upload_logsInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutFile_upload_logsInput, StatusUncheckedUpdateWithoutFile_upload_logsInput>
  }

  export type StatusUpdateWithoutFile_upload_logsInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutFile_upload_logsInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type StatusCreateWithoutDevice_registrationInput = {
    name: string
    slug: string
    description?: string | null
    status?: StatusCreateNestedOneWithoutStatus_listInput
    status_list?: StatusCreateNestedManyWithoutStatusInput
    users?: UserCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogCreateNestedManyWithoutStatusInput
    permissions?: PermissionsCreateNestedManyWithoutStatusInput
    roles?: RoleCreateNestedManyWithoutStatusInput
    languages?: LanguageCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsCreateNestedManyWithoutStatusInput
    menus?: MenusCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesCreateNestedManyWithoutStatusInput
    designations?: DesignationCreateNestedManyWithoutStatusInput
    departments?: DepartmentCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogCreateNestedManyWithoutStatusInput
    import_job?: ImportJobCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemCreateNestedManyWithoutStatusInput
  }

  export type StatusUncheckedCreateWithoutDevice_registrationInput = {
    id?: number
    name: string
    slug: string
    description?: string | null
    status_id?: number | null
    status_list?: StatusUncheckedCreateNestedManyWithoutStatusInput
    users?: UserUncheckedCreateNestedManyWithoutStatusInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutStatusInput
    permissions?: PermissionsUncheckedCreateNestedManyWithoutStatusInput
    roles?: RoleUncheckedCreateNestedManyWithoutStatusInput
    languages?: LanguageUncheckedCreateNestedManyWithoutStatusInput
    language_contents?: LanguageContentUncheckedCreateNestedManyWithoutStatusInput
    menuitems?: MenuItemsUncheckedCreateNestedManyWithoutStatusInput
    menus?: MenusUncheckedCreateNestedManyWithoutStatusInput
    master_grids?: MasterEntityUncheckedCreateNestedManyWithoutStatusInput
    master_grid_line_items?: MasterEntityLineItemUncheckedCreateNestedManyWithoutStatusInput
    field_types?: FieldTypeUncheckedCreateNestedManyWithoutStatusInput
    menu_types?: menuTypeUncheckedCreateNestedManyWithoutStatusInput
    email_template_processes?: EmailTemplateProcessUncheckedCreateNestedManyWithoutStatusInput
    email_template_tags?: EmailTemplateTagUncheckedCreateNestedManyWithoutStatusInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedCreateNestedManyWithoutStatusInput
    email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutStatusInput
    email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutStatusInput
    notification_job?: NotificationJobUncheckedCreateNestedManyWithoutStatusInput
    import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutStatusInput
    import_template_line_items?: ImportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    import_template_queries?: ImportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutStatusInput
    export_template_line_items?: ExportTemplateLineItemUncheckedCreateNestedManyWithoutStatusInput
    export_template_queries?: ExportTemplateQueriesUncheckedCreateNestedManyWithoutStatusInput
    designations?: DesignationUncheckedCreateNestedManyWithoutStatusInput
    departments?: DepartmentUncheckedCreateNestedManyWithoutStatusInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutStatusInput
    financial_years?: FinancialYearUncheckedCreateNestedManyWithoutStatusInput
    document_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutStatusInput
    file_upload_logs?: FileUploadLogUncheckedCreateNestedManyWithoutStatusInput
    import_job?: ImportJobUncheckedCreateNestedManyWithoutStatusInput
    import_job_line_items?: ImportJobLineItemUncheckedCreateNestedManyWithoutStatusInput
  }

  export type StatusCreateOrConnectWithoutDevice_registrationInput = {
    where: StatusWhereUniqueInput
    create: XOR<StatusCreateWithoutDevice_registrationInput, StatusUncheckedCreateWithoutDevice_registrationInput>
  }

  export type UserCreateWithoutCreated_device_registrationInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutCreated_device_registrationInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutCreated_device_registrationInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutCreated_device_registrationInput, UserUncheckedCreateWithoutCreated_device_registrationInput>
  }

  export type UserCreateWithoutUpdated_device_registrationInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutUpdated_device_registrationInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutUpdated_device_registrationInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutUpdated_device_registrationInput, UserUncheckedCreateWithoutUpdated_device_registrationInput>
  }

  export type UserCreateWithoutDeleted_device_registrationInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    DeviceRegistration?: DeviceRegistrationCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeleted_device_registrationInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    DeviceRegistration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUserInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeleted_device_registrationInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeleted_device_registrationInput, UserUncheckedCreateWithoutDeleted_device_registrationInput>
  }

  export type UserCreateWithoutDeviceRegistrationInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    status?: StatusCreateNestedOneWithoutUsersInput
    user_detail?: UserDetailCreateNestedOneWithoutUserInput
    request_logs?: RequestLogCreateNestedManyWithoutUserInput
    roles?: UserRolesCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsCreateNestedManyWithoutUserInput
    otps?: OtpCreateNestedManyWithoutUserInput
    created?: UserCreateNestedOneWithoutCreated_usersInput
    updated?: UserCreateNestedOneWithoutUpdated_usersInput
    deleted?: UserCreateNestedOneWithoutDeleted_usersInput
    created_users?: UserCreateNestedManyWithoutCreatedInput
    updated_users?: UserCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailCreateNestedManyWithoutDeletedInput
    created_roles?: RoleCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageCreateNestedManyWithoutDeletedInput
    created_menus?: MenusCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationCreateNestedManyWithoutDeleted_device_registrationInput
    created_import_job?: ImportJobCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobCreateNestedManyWithoutDeletedInput
  }

  export type UserUncheckedCreateWithoutDeviceRegistrationInput = {
    id?: number
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
    user_detail?: UserDetailUncheckedCreateNestedOneWithoutUserInput
    request_logs?: RequestLogUncheckedCreateNestedManyWithoutUserInput
    roles?: UserRolesUncheckedCreateNestedManyWithoutUserInput
    permissions?: UserPermissionsUncheckedCreateNestedManyWithoutUserInput
    otps?: OtpUncheckedCreateNestedManyWithoutUserInput
    created_users?: UserUncheckedCreateNestedManyWithoutCreatedInput
    updated_users?: UserUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_users?: UserUncheckedCreateNestedManyWithoutDeletedInput
    created_user_details?: UserDetailUncheckedCreateNestedManyWithoutCreatedInput
    updated_user_details?: UserDetailUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_user_details?: UserDetailUncheckedCreateNestedManyWithoutDeletedInput
    created_roles?: RoleUncheckedCreateNestedManyWithoutCreatedInput
    updated_roles?: RoleUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_roles?: RoleUncheckedCreateNestedManyWithoutDeletedInput
    created_languages?: LanguageUncheckedCreateNestedManyWithoutCreatedInput
    updated_languages?: LanguageUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_languages?: LanguageUncheckedCreateNestedManyWithoutDeletedInput
    created_menus?: MenusUncheckedCreateNestedManyWithoutCreatedInput
    updated_menus?: MenusUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menus?: MenusUncheckedCreateNestedManyWithoutDeletedInput
    created_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutCreatedInput
    updated_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_menu_items?: MenuItemsUncheckedCreateNestedManyWithoutDeletedInput
    created_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_email_templates?: EmailTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedCreateNestedManyWithoutCreatedInput
    created_email_process_jobs?: EmailProcessJobUncheckedCreateNestedManyWithoutCreatedInput
    created_notification_job?: NotificationJobUncheckedCreateNestedManyWithoutCreatedInput
    created_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_templates?: ImportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutCreatedInput
    updated_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_export_templates?: ExportTemplateUncheckedCreateNestedManyWithoutDeletedInput
    created_departments?: DepartmentUncheckedCreateNestedManyWithoutCreatedInput
    head_departments?: DepartmentUncheckedCreateNestedManyWithoutDepartment_headInput
    updated_departments?: DepartmentUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_departments?: DepartmentUncheckedCreateNestedManyWithoutDeletedInput
    created_designations?: DesignationUncheckedCreateNestedManyWithoutCreatedInput
    updated_designations?: DesignationUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_designations?: DesignationUncheckedCreateNestedManyWithoutDeletedInput
    audit_logs?: AuditLogUncheckedCreateNestedManyWithoutUserInput
    created_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutCreated_category_typesInput
    updated_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutUpdated_category_typesInput
    deleted_category_types?: CategoryTypesUncheckedCreateNestedManyWithoutDeleted_category_typesInput
    created_categories?: CategoriesUncheckedCreateNestedManyWithoutCreated_categoriesInput
    updated_categories?: CategoriesUncheckedCreateNestedManyWithoutUpdated_categoriesInput
    deleted_categories?: CategoriesUncheckedCreateNestedManyWithoutDeleted_categoriesInput
    created_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutCreated_configurationsInput
    updated_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutUpdated_configurationsInput
    deleted_configurations?: ConfigurationsUncheckedCreateNestedManyWithoutDeleted_configurationsInput
    created_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutCreatedInput
    updated_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_fin_years?: FinancialYearUncheckedCreateNestedManyWithoutDeletedInput
    created_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutCreatedInput
    updated_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedCreateNestedManyWithoutDeletedInput
    created_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutCreated_device_registrationInput
    updated_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutUpdated_device_registrationInput
    deleted_device_registration?: DeviceRegistrationUncheckedCreateNestedManyWithoutDeleted_device_registrationInput
    created_import_job?: ImportJobUncheckedCreateNestedManyWithoutCreatedInput
    updated_import_job?: ImportJobUncheckedCreateNestedManyWithoutUpdatedInput
    deleted_import_job?: ImportJobUncheckedCreateNestedManyWithoutDeletedInput
  }

  export type UserCreateOrConnectWithoutDeviceRegistrationInput = {
    where: UserWhereUniqueInput
    create: XOR<UserCreateWithoutDeviceRegistrationInput, UserUncheckedCreateWithoutDeviceRegistrationInput>
  }

  export type StatusUpsertWithoutDevice_registrationInput = {
    update: XOR<StatusUpdateWithoutDevice_registrationInput, StatusUncheckedUpdateWithoutDevice_registrationInput>
    create: XOR<StatusCreateWithoutDevice_registrationInput, StatusUncheckedCreateWithoutDevice_registrationInput>
    where?: StatusWhereInput
  }

  export type StatusUpdateToOneWithWhereWithoutDevice_registrationInput = {
    where?: StatusWhereInput
    data: XOR<StatusUpdateWithoutDevice_registrationInput, StatusUncheckedUpdateWithoutDevice_registrationInput>
  }

  export type StatusUpdateWithoutDevice_registrationInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneWithoutStatus_listNestedInput
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutDevice_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type UserUpsertWithoutCreated_device_registrationInput = {
    update: XOR<UserUpdateWithoutCreated_device_registrationInput, UserUncheckedUpdateWithoutCreated_device_registrationInput>
    create: XOR<UserCreateWithoutCreated_device_registrationInput, UserUncheckedCreateWithoutCreated_device_registrationInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutCreated_device_registrationInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutCreated_device_registrationInput, UserUncheckedUpdateWithoutCreated_device_registrationInput>
  }

  export type UserUpdateWithoutCreated_device_registrationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreated_device_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutUpdated_device_registrationInput = {
    update: XOR<UserUpdateWithoutUpdated_device_registrationInput, UserUncheckedUpdateWithoutUpdated_device_registrationInput>
    create: XOR<UserCreateWithoutUpdated_device_registrationInput, UserUncheckedCreateWithoutUpdated_device_registrationInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutUpdated_device_registrationInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutUpdated_device_registrationInput, UserUncheckedUpdateWithoutUpdated_device_registrationInput>
  }

  export type UserUpdateWithoutUpdated_device_registrationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdated_device_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeleted_device_registrationInput = {
    update: XOR<UserUpdateWithoutDeleted_device_registrationInput, UserUncheckedUpdateWithoutDeleted_device_registrationInput>
    create: XOR<UserCreateWithoutDeleted_device_registrationInput, UserUncheckedCreateWithoutDeleted_device_registrationInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeleted_device_registrationInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeleted_device_registrationInput, UserUncheckedUpdateWithoutDeleted_device_registrationInput>
  }

  export type UserUpdateWithoutDeleted_device_registrationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeleted_device_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUpsertWithoutDeviceRegistrationInput = {
    update: XOR<UserUpdateWithoutDeviceRegistrationInput, UserUncheckedUpdateWithoutDeviceRegistrationInput>
    create: XOR<UserCreateWithoutDeviceRegistrationInput, UserUncheckedCreateWithoutDeviceRegistrationInput>
    where?: UserWhereInput
  }

  export type UserUpdateToOneWithWhereWithoutDeviceRegistrationInput = {
    where?: UserWhereInput
    data: XOR<UserUpdateWithoutDeviceRegistrationInput, UserUncheckedUpdateWithoutDeviceRegistrationInput>
  }

  export type UserUpdateWithoutDeviceRegistrationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeviceRegistrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type RequestLogCreateManyUserInput = {
    uuid?: string
    req_method?: string | null
    req_url?: string | null
    req_body?: string | null
    res_status?: boolean
    res_code?: number
    res_message?: string | null
    req_response?: string | null
    req_headers?: string | null
    req_ip?: string | null
    req_device?: string | null
    status_id?: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserRolesCreateManyUserInput = {
    role_id: number
  }

  export type UserPermissionsCreateManyUserInput = {
    permission_id: number
  }

  export type OtpCreateManyUserInput = {
    otp: string
    purpose: string
    created_at?: Date | string
  }

  export type UserCreateManyCreatedInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
  }

  export type UserCreateManyUpdatedInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
  }

  export type UserCreateManyDeletedInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    status_id?: number
    role?: string
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
  }

  export type UserDetailCreateManyCreatedInput = {
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailCreateManyUpdatedInput = {
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailCreateManyDeletedInput = {
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RoleCreateManyCreatedInput = {
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RoleCreateManyUpdatedInput = {
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RoleCreateManyDeletedInput = {
    uuid?: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type LanguageCreateManyCreatedInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type LanguageCreateManyUpdatedInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type LanguageCreateManyDeletedInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenusCreateManyCreatedInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenusCreateManyUpdatedInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenusCreateManyDeletedInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenuItemsCreateManyCreatedInput = {
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenuItemsCreateManyUpdatedInput = {
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenuItemsCreateManyDeletedInput = {
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type EmailTemplateCreateManyCreatedInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id?: number
    created_at?: Date | string
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    deleted_by?: number | null
  }

  export type EmailTemplateCreateManyUpdatedInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
    deleted_by?: number | null
  }

  export type EmailTemplateCreateManyDeletedInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
  }

  export type EmailTemplateAssignmentCreateManyCreatedInput = {
    uuid?: string
    email_template_process_id: number
    template_id: number
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
  }

  export type EmailProcessJobCreateManyCreatedInput = {
    uuid?: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data?: string | null
    status_id?: number
    created_at?: Date | string
  }

  export type NotificationJobCreateManyCreatedInput = {
    uuid?: string
    process_slug: string
    notification_to?: string | null
    notification_subject?: string | null
    notification_content?: string | null
    notification_cc?: string | null
    notification_bcc?: string | null
    notification_type_id: string
    notification_status_id: string
    status_id?: number
    created_at?: Date | string
    sent_at?: Date | string | null
    read_at?: Date | string | null
  }

  export type ImportTemplateCreateManyCreatedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportTemplateCreateManyUpdatedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportTemplateCreateManyDeletedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type ExportTemplateCreateManyCreatedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ExportTemplateCreateManyUpdatedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ExportTemplateCreateManyDeletedInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DepartmentCreateManyCreatedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    department_head_id?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DepartmentCreateManyDepartment_headInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DepartmentCreateManyUpdatedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    department_head_id?: number | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DepartmentCreateManyDeletedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    department_head_id?: number | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DesignationCreateManyCreatedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DesignationCreateManyUpdatedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DesignationCreateManyDeletedInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type AuditLogCreateManyUserInput = {
    operation_type: string
    table_name: string
    field_name: string
    old_value?: string | null
    new_value?: string | null
    entity_id: number
    status_id?: number
    company_id?: number | null
    created_at?: Date | string
  }

  export type CategoryTypesCreateManyCreated_category_typesInput = {
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type CategoryTypesCreateManyUpdated_category_typesInput = {
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type CategoryTypesCreateManyDeleted_category_typesInput = {
    uuid?: string
    category_type_id: string
    name: string
    description?: string | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type CategoriesCreateManyCreated_categoriesInput = {
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type CategoriesCreateManyUpdated_categoriesInput = {
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type CategoriesCreateManyDeleted_categoriesInput = {
    uuid?: string
    category_type_id: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type ConfigurationsCreateManyCreated_configurationsInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    category_id: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type ConfigurationsCreateManyUpdated_configurationsInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    category_id: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type ConfigurationsCreateManyDeleted_configurationsInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    category_id: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type FinancialYearCreateManyCreatedInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    status_id?: number
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type FinancialYearCreateManyUpdatedInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    status_id?: number
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type FinancialYearCreateManyDeletedInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceCreateManyCreatedInput = {
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceCreateManyUpdatedInput = {
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    created_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceCreateManyDeletedInput = {
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    created_by?: number | null
    updated_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationCreateManyCreated_device_registrationInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    user_id: number
    status_id?: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationCreateManyUpdated_device_registrationInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    user_id: number
    status_id?: number
    created_by: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationCreateManyDeleted_device_registrationInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    user_id: number
    status_id?: number
    created_by: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DeviceRegistrationCreateManyUserInput = {
    uuid?: string
    device_name: string
    device_unique_id: string
    status_id?: number
    created_by: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportJobCreateManyCreatedInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    status_id?: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportJobCreateManyUpdatedInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportJobCreateManyDeletedInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    status_id?: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RequestLogUpdateWithoutUserInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutRequest_logsNestedInput
  }

  export type RequestLogUncheckedUpdateWithoutUserInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RequestLogUncheckedUpdateManyWithoutUserInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserRolesUpdateWithoutUserInput = {
    role?: RoleUpdateOneRequiredWithoutUsersNestedInput
  }

  export type UserRolesUncheckedUpdateWithoutUserInput = {
    role_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserRolesUncheckedUpdateManyWithoutUserInput = {
    role_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserPermissionsUpdateWithoutUserInput = {
    permission?: PermissionsUpdateOneRequiredWithoutUsersNestedInput
  }

  export type UserPermissionsUncheckedUpdateWithoutUserInput = {
    permission_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserPermissionsUncheckedUpdateManyWithoutUserInput = {
    permission_id?: IntFieldUpdateOperationsInput | number
  }

  export type OtpUpdateWithoutUserInput = {
    otp?: StringFieldUpdateOperationsInput | string
    purpose?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type OtpUncheckedUpdateWithoutUserInput = {
    id?: IntFieldUpdateOperationsInput | number
    otp?: StringFieldUpdateOperationsInput | string
    purpose?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type OtpUncheckedUpdateManyWithoutUserInput = {
    id?: IntFieldUpdateOperationsInput | number
    otp?: StringFieldUpdateOperationsInput | string
    purpose?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type UserUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
  }

  export type UserUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
  }

  export type UserUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    status?: StatusUpdateOneRequiredWithoutUsersNestedInput
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    role?: StringFieldUpdateOperationsInput | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
  }

  export type UserDetailUpdateWithoutCreatedInput = {
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    designation?: DesignationUpdateOneWithoutUsersNestedInput
    department?: DepartmentUpdateOneWithoutUsersNestedInput
    user?: UserUpdateOneRequiredWithoutUser_detailNestedInput
    updated?: UserUpdateOneWithoutUpdated_user_detailsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_user_detailsNestedInput
  }

  export type UserDetailUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailUpdateWithoutUpdatedInput = {
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    designation?: DesignationUpdateOneWithoutUsersNestedInput
    department?: DepartmentUpdateOneWithoutUsersNestedInput
    user?: UserUpdateOneRequiredWithoutUser_detailNestedInput
    created?: UserUpdateOneWithoutCreated_user_detailsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_user_detailsNestedInput
  }

  export type UserDetailUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailUpdateWithoutDeletedInput = {
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    designation?: DesignationUpdateOneWithoutUsersNestedInput
    department?: DepartmentUpdateOneWithoutUsersNestedInput
    user?: UserUpdateOneRequiredWithoutUser_detailNestedInput
    created?: UserUpdateOneWithoutCreated_user_detailsNestedInput
    updated?: UserUpdateOneWithoutUpdated_user_detailsNestedInput
  }

  export type UserDetailUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RoleUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutRolesNestedInput
    permissions?: RolePermissionsUpdateManyWithoutRoleNestedInput
    users?: UserRolesUpdateManyWithoutRoleNestedInput
    updated?: UserUpdateOneWithoutUpdated_rolesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_rolesNestedInput
  }

  export type RoleUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: RolePermissionsUncheckedUpdateManyWithoutRoleNestedInput
    users?: UserRolesUncheckedUpdateManyWithoutRoleNestedInput
  }

  export type RoleUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RoleUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutRolesNestedInput
    permissions?: RolePermissionsUpdateManyWithoutRoleNestedInput
    users?: UserRolesUpdateManyWithoutRoleNestedInput
    created?: UserUpdateOneWithoutCreated_rolesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_rolesNestedInput
  }

  export type RoleUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: RolePermissionsUncheckedUpdateManyWithoutRoleNestedInput
    users?: UserRolesUncheckedUpdateManyWithoutRoleNestedInput
  }

  export type RoleUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RoleUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutRolesNestedInput
    permissions?: RolePermissionsUpdateManyWithoutRoleNestedInput
    users?: UserRolesUpdateManyWithoutRoleNestedInput
    created?: UserUpdateOneWithoutCreated_rolesNestedInput
    updated?: UserUpdateOneWithoutUpdated_rolesNestedInput
  }

  export type RoleUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: RolePermissionsUncheckedUpdateManyWithoutRoleNestedInput
    users?: UserRolesUncheckedUpdateManyWithoutRoleNestedInput
  }

  export type RoleUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type LanguageUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutLanguagesNestedInput
    translations?: LanguageContentUpdateManyWithoutLanguageNestedInput
    updated?: UserUpdateOneWithoutUpdated_languagesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_languagesNestedInput
  }

  export type LanguageUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    translations?: LanguageContentUncheckedUpdateManyWithoutLanguageNestedInput
  }

  export type LanguageUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type LanguageUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutLanguagesNestedInput
    translations?: LanguageContentUpdateManyWithoutLanguageNestedInput
    created?: UserUpdateOneWithoutCreated_languagesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_languagesNestedInput
  }

  export type LanguageUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    translations?: LanguageContentUncheckedUpdateManyWithoutLanguageNestedInput
  }

  export type LanguageUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type LanguageUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutLanguagesNestedInput
    translations?: LanguageContentUpdateManyWithoutLanguageNestedInput
    created?: UserUpdateOneWithoutCreated_languagesNestedInput
    updated?: UserUpdateOneWithoutUpdated_languagesNestedInput
  }

  export type LanguageUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    translations?: LanguageContentUncheckedUpdateManyWithoutLanguageNestedInput
  }

  export type LanguageUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenusUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutMenusNestedInput
    updated?: UserUpdateOneWithoutUpdated_menusNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menusNestedInput
  }

  export type MenusUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    menuitems?: MenuItemsUncheckedUpdateManyWithoutMenusNestedInput
  }

  export type MenusUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenusUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutMenusNestedInput
    created?: UserUpdateOneWithoutCreated_menusNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menusNestedInput
  }

  export type MenusUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    menuitems?: MenuItemsUncheckedUpdateManyWithoutMenusNestedInput
  }

  export type MenusUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenusUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutMenusNestedInput
    created?: UserUpdateOneWithoutCreated_menusNestedInput
    updated?: UserUpdateOneWithoutUpdated_menusNestedInput
  }

  export type MenusUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    menuitems?: MenuItemsUncheckedUpdateManyWithoutMenusNestedInput
  }

  export type MenusUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenuItemsUpdateWithoutCreatedInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenuitemsNestedInput
    menus?: MenusUpdateOneWithoutMenuitemsNestedInput
    entity?: MasterEntityUpdateOneWithoutMenusNestedInput
    permission?: PermissionsUpdateOneWithoutMenusNestedInput
    parent?: MenuItemsUpdateOneWithoutChildrenNestedInput
    children?: MenuItemsUpdateManyWithoutParentNestedInput
    updated?: UserUpdateOneWithoutUpdated_menu_itemsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    children?: MenuItemsUncheckedUpdateManyWithoutParentNestedInput
  }

  export type MenuItemsUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenuItemsUpdateWithoutUpdatedInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenuitemsNestedInput
    menus?: MenusUpdateOneWithoutMenuitemsNestedInput
    entity?: MasterEntityUpdateOneWithoutMenusNestedInput
    permission?: PermissionsUpdateOneWithoutMenusNestedInput
    parent?: MenuItemsUpdateOneWithoutChildrenNestedInput
    children?: MenuItemsUpdateManyWithoutParentNestedInput
    created?: UserUpdateOneWithoutCreated_menu_itemsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    children?: MenuItemsUncheckedUpdateManyWithoutParentNestedInput
  }

  export type MenuItemsUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenuItemsUpdateWithoutDeletedInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenuitemsNestedInput
    menus?: MenusUpdateOneWithoutMenuitemsNestedInput
    entity?: MasterEntityUpdateOneWithoutMenusNestedInput
    permission?: PermissionsUpdateOneWithoutMenusNestedInput
    parent?: MenuItemsUpdateOneWithoutChildrenNestedInput
    children?: MenuItemsUpdateManyWithoutParentNestedInput
    created?: UserUpdateOneWithoutCreated_menu_itemsNestedInput
    updated?: UserUpdateOneWithoutUpdated_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    children?: MenuItemsUncheckedUpdateManyWithoutParentNestedInput
  }

  export type MenuItemsUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type EmailTemplateUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_templateNestedInput
    updated?: UserUpdateOneWithoutUpdated_email_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_email_templatesNestedInput
  }

  export type EmailTemplateUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_templateNestedInput
  }

  export type EmailTemplateUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
  }

  export type EmailTemplateUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_templateNestedInput
    created?: UserUpdateOneWithoutCreated_email_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_email_templatesNestedInput
  }

  export type EmailTemplateUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_templateNestedInput
  }

  export type EmailTemplateUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
  }

  export type EmailTemplateUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_templateNestedInput
    created?: UserUpdateOneWithoutCreated_email_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_email_templatesNestedInput
  }

  export type EmailTemplateUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_templateNestedInput
  }

  export type EmailTemplateUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type EmailTemplateAssignmentUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_template_assignmentsNestedInput
    email_template?: EmailTemplateUpdateOneRequiredWithoutEmail_template_assignmentsNestedInput
  }

  export type EmailTemplateAssignmentUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    template_id?: IntFieldUpdateOperationsInput | number
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    template_id?: IntFieldUpdateOperationsInput | number
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type EmailProcessJobUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutEmail_process_jobsNestedInput
  }

  export type EmailProcessJobUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type EmailProcessJobUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type NotificationJobUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutNotification_jobNestedInput
  }

  export type NotificationJobUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type NotificationJobUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportTemplateUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_templatesNestedInput
    line_items?: ImportTemplateLineItemUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportTemplateUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_import_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_templatesNestedInput
    line_items?: ImportTemplateLineItemUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportTemplateUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_import_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_templatesNestedInput
    line_items?: ImportTemplateLineItemUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ExportTemplateUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutExport_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_export_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_export_templatesNestedInput
    line_items?: ExportTemplateLineItemUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ExportTemplateUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutExport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_export_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_export_templatesNestedInput
    line_items?: ExportTemplateLineItemUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ExportTemplateUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutExport_templatesNestedInput
    created?: UserUpdateOneWithoutCreated_export_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_export_templatesNestedInput
    line_items?: ExportTemplateLineItemUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DepartmentUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDepartmentsNestedInput
    users?: UserDetailUpdateManyWithoutDepartmentNestedInput
    department_head?: UserUpdateOneWithoutHead_departmentsNestedInput
    updated?: UserUpdateOneWithoutUpdated_departmentsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_departmentsNestedInput
  }

  export type DepartmentUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDepartmentNestedInput
  }

  export type DepartmentUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DepartmentUpdateWithoutDepartment_headInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDepartmentsNestedInput
    users?: UserDetailUpdateManyWithoutDepartmentNestedInput
    created?: UserUpdateOneWithoutCreated_departmentsNestedInput
    updated?: UserUpdateOneWithoutUpdated_departmentsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_departmentsNestedInput
  }

  export type DepartmentUncheckedUpdateWithoutDepartment_headInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDepartmentNestedInput
  }

  export type DepartmentUncheckedUpdateManyWithoutDepartment_headInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DepartmentUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDepartmentsNestedInput
    users?: UserDetailUpdateManyWithoutDepartmentNestedInput
    department_head?: UserUpdateOneWithoutHead_departmentsNestedInput
    created?: UserUpdateOneWithoutCreated_departmentsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_departmentsNestedInput
  }

  export type DepartmentUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDepartmentNestedInput
  }

  export type DepartmentUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DepartmentUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDepartmentsNestedInput
    users?: UserDetailUpdateManyWithoutDepartmentNestedInput
    department_head?: UserUpdateOneWithoutHead_departmentsNestedInput
    created?: UserUpdateOneWithoutCreated_departmentsNestedInput
    updated?: UserUpdateOneWithoutUpdated_departmentsNestedInput
  }

  export type DepartmentUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDepartmentNestedInput
  }

  export type DepartmentUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DesignationUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDesignationsNestedInput
    users?: UserDetailUpdateManyWithoutDesignationNestedInput
    updated?: UserUpdateOneWithoutUpdated_designationsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_designationsNestedInput
  }

  export type DesignationUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDesignationNestedInput
  }

  export type DesignationUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DesignationUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDesignationsNestedInput
    users?: UserDetailUpdateManyWithoutDesignationNestedInput
    created?: UserUpdateOneWithoutCreated_designationsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_designationsNestedInput
  }

  export type DesignationUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDesignationNestedInput
  }

  export type DesignationUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DesignationUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDesignationsNestedInput
    users?: UserDetailUpdateManyWithoutDesignationNestedInput
    created?: UserUpdateOneWithoutCreated_designationsNestedInput
    updated?: UserUpdateOneWithoutUpdated_designationsNestedInput
  }

  export type DesignationUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDesignationNestedInput
  }

  export type DesignationUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type AuditLogUpdateWithoutUserInput = {
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutAudit_logsNestedInput
  }

  export type AuditLogUncheckedUpdateWithoutUserInput = {
    id?: IntFieldUpdateOperationsInput | number
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type AuditLogUncheckedUpdateManyWithoutUserInput = {
    id?: IntFieldUpdateOperationsInput | number
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type CategoryTypesUpdateWithoutCreated_category_typesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    updated_category_types?: UserUpdateOneWithoutUpdated_category_typesNestedInput
    deleted_category_types?: UserUpdateOneWithoutDeleted_category_typesNestedInput
    categories?: CategoriesUpdateManyWithoutCategory_typeNestedInput
  }

  export type CategoryTypesUncheckedUpdateWithoutCreated_category_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    categories?: CategoriesUncheckedUpdateManyWithoutCategory_typeNestedInput
  }

  export type CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type CategoryTypesUpdateWithoutUpdated_category_typesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created_category_types?: UserUpdateOneWithoutCreated_category_typesNestedInput
    deleted_category_types?: UserUpdateOneWithoutDeleted_category_typesNestedInput
    categories?: CategoriesUpdateManyWithoutCategory_typeNestedInput
  }

  export type CategoryTypesUncheckedUpdateWithoutUpdated_category_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    categories?: CategoriesUncheckedUpdateManyWithoutCategory_typeNestedInput
  }

  export type CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type CategoryTypesUpdateWithoutDeleted_category_typesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created_category_types?: UserUpdateOneWithoutCreated_category_typesNestedInput
    updated_category_types?: UserUpdateOneWithoutUpdated_category_typesNestedInput
    categories?: CategoriesUpdateManyWithoutCategory_typeNestedInput
  }

  export type CategoryTypesUncheckedUpdateWithoutDeleted_category_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    categories?: CategoriesUncheckedUpdateManyWithoutCategory_typeNestedInput
  }

  export type CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type CategoriesUpdateWithoutCreated_categoriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    parent?: CategoriesUpdateOneWithoutSubcategoriesNestedInput
    subcategories?: CategoriesUpdateManyWithoutParentNestedInput
    category_type?: CategoryTypesUpdateOneRequiredWithoutCategoriesNestedInput
    updated_categories?: UserUpdateOneWithoutUpdated_categoriesNestedInput
    deleted_categories?: UserUpdateOneWithoutDeleted_categoriesNestedInput
    configurations?: ConfigurationsUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateWithoutCreated_categoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    subcategories?: CategoriesUncheckedUpdateManyWithoutParentNestedInput
    configurations?: ConfigurationsUncheckedUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateManyWithoutCreated_categoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type CategoriesUpdateWithoutUpdated_categoriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    parent?: CategoriesUpdateOneWithoutSubcategoriesNestedInput
    subcategories?: CategoriesUpdateManyWithoutParentNestedInput
    category_type?: CategoryTypesUpdateOneRequiredWithoutCategoriesNestedInput
    created_categories?: UserUpdateOneWithoutCreated_categoriesNestedInput
    deleted_categories?: UserUpdateOneWithoutDeleted_categoriesNestedInput
    configurations?: ConfigurationsUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateWithoutUpdated_categoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    subcategories?: CategoriesUncheckedUpdateManyWithoutParentNestedInput
    configurations?: ConfigurationsUncheckedUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateManyWithoutUpdated_categoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type CategoriesUpdateWithoutDeleted_categoriesInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    parent?: CategoriesUpdateOneWithoutSubcategoriesNestedInput
    subcategories?: CategoriesUpdateManyWithoutParentNestedInput
    category_type?: CategoryTypesUpdateOneRequiredWithoutCategoriesNestedInput
    created_categories?: UserUpdateOneWithoutCreated_categoriesNestedInput
    updated_categories?: UserUpdateOneWithoutUpdated_categoriesNestedInput
    configurations?: ConfigurationsUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateWithoutDeleted_categoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    subcategories?: CategoriesUncheckedUpdateManyWithoutParentNestedInput
    configurations?: ConfigurationsUncheckedUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateManyWithoutDeleted_categoriesInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsUpdateWithoutCreated_configurationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    category?: CategoriesUpdateOneRequiredWithoutConfigurationsNestedInput
    updated_configurations?: UserUpdateOneWithoutUpdated_configurationsNestedInput
    deleted_configurations?: UserUpdateOneWithoutDeleted_configurationsNestedInput
  }

  export type ConfigurationsUncheckedUpdateWithoutCreated_configurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsUpdateWithoutUpdated_configurationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    category?: CategoriesUpdateOneRequiredWithoutConfigurationsNestedInput
    created_configurations?: UserUpdateOneWithoutCreated_configurationsNestedInput
    deleted_configurations?: UserUpdateOneWithoutDeleted_configurationsNestedInput
  }

  export type ConfigurationsUncheckedUpdateWithoutUpdated_configurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsUpdateWithoutDeleted_configurationsInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    category?: CategoriesUpdateOneRequiredWithoutConfigurationsNestedInput
    created_configurations?: UserUpdateOneWithoutCreated_configurationsNestedInput
    updated_configurations?: UserUpdateOneWithoutUpdated_configurationsNestedInput
  }

  export type ConfigurationsUncheckedUpdateWithoutDeleted_configurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type FinancialYearUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutFinancial_yearsNestedInput
    document_sequence?: DocumentSequenceUpdateManyWithoutFinanicial_yearNestedInput
    updated?: UserUpdateOneWithoutUpdated_fin_yearsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_fin_yearsNestedInput
  }

  export type FinancialYearUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    document_sequence?: DocumentSequenceUncheckedUpdateManyWithoutFinanicial_yearNestedInput
  }

  export type FinancialYearUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    status_id?: IntFieldUpdateOperationsInput | number
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type FinancialYearUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutFinancial_yearsNestedInput
    document_sequence?: DocumentSequenceUpdateManyWithoutFinanicial_yearNestedInput
    created?: UserUpdateOneWithoutCreated_fin_yearsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_fin_yearsNestedInput
  }

  export type FinancialYearUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    document_sequence?: DocumentSequenceUncheckedUpdateManyWithoutFinanicial_yearNestedInput
  }

  export type FinancialYearUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type FinancialYearUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutFinancial_yearsNestedInput
    document_sequence?: DocumentSequenceUpdateManyWithoutFinanicial_yearNestedInput
    created?: UserUpdateOneWithoutCreated_fin_yearsNestedInput
    updated?: UserUpdateOneWithoutUpdated_fin_yearsNestedInput
  }

  export type FinancialYearUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    document_sequence?: DocumentSequenceUncheckedUpdateManyWithoutFinanicial_yearNestedInput
  }

  export type FinancialYearUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDocument_sequencesNestedInput
    finanicial_year?: FinancialYearUpdateOneWithoutDocument_sequenceNestedInput
    updated?: UserUpdateOneWithoutUpdated_doc_sequencesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_doc_sequencesNestedInput
  }

  export type DocumentSequenceUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDocument_sequencesNestedInput
    finanicial_year?: FinancialYearUpdateOneWithoutDocument_sequenceNestedInput
    created?: UserUpdateOneWithoutCreated_doc_sequencesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_doc_sequencesNestedInput
  }

  export type DocumentSequenceUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDocument_sequencesNestedInput
    finanicial_year?: FinancialYearUpdateOneWithoutDocument_sequenceNestedInput
    created?: UserUpdateOneWithoutCreated_doc_sequencesNestedInput
    updated?: UserUpdateOneWithoutUpdated_doc_sequencesNestedInput
  }

  export type DocumentSequenceUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUpdateWithoutCreated_device_registrationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDevice_registrationNestedInput
    updated_device_registration?: UserUpdateOneWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: UserUpdateOneWithoutDeleted_device_registrationNestedInput
    user?: UserUpdateOneRequiredWithoutDeviceRegistrationNestedInput
  }

  export type DeviceRegistrationUncheckedUpdateWithoutCreated_device_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUpdateWithoutUpdated_device_registrationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDevice_registrationNestedInput
    created_device_registration?: UserUpdateOneRequiredWithoutCreated_device_registrationNestedInput
    deleted_device_registration?: UserUpdateOneWithoutDeleted_device_registrationNestedInput
    user?: UserUpdateOneRequiredWithoutDeviceRegistrationNestedInput
  }

  export type DeviceRegistrationUncheckedUpdateWithoutUpdated_device_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUpdateWithoutDeleted_device_registrationInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDevice_registrationNestedInput
    created_device_registration?: UserUpdateOneRequiredWithoutCreated_device_registrationNestedInput
    updated_device_registration?: UserUpdateOneWithoutUpdated_device_registrationNestedInput
    user?: UserUpdateOneRequiredWithoutDeviceRegistrationNestedInput
  }

  export type DeviceRegistrationUncheckedUpdateWithoutDeleted_device_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUpdateWithoutUserInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDevice_registrationNestedInput
    created_device_registration?: UserUpdateOneRequiredWithoutCreated_device_registrationNestedInput
    updated_device_registration?: UserUpdateOneWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: UserUpdateOneWithoutDeleted_device_registrationNestedInput
  }

  export type DeviceRegistrationUncheckedUpdateWithoutUserInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutUserInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportJobUpdateWithoutCreatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_jobNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_jobNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_jobNestedInput
    line_items?: ImportJobLineItemUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobUncheckedUpdateWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportJobLineItemUncheckedUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobUncheckedUpdateManyWithoutCreatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportJobUpdateWithoutUpdatedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_jobNestedInput
    created?: UserUpdateOneWithoutCreated_import_jobNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_jobNestedInput
    line_items?: ImportJobLineItemUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobUncheckedUpdateWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportJobLineItemUncheckedUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobUncheckedUpdateManyWithoutUpdatedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportJobUpdateWithoutDeletedInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutImport_jobNestedInput
    created?: UserUpdateOneWithoutCreated_import_jobNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_jobNestedInput
    line_items?: ImportJobLineItemUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobUncheckedUpdateWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportJobLineItemUncheckedUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobUncheckedUpdateManyWithoutDeletedInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailCreateManyDesignationInput = {
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    department_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailUpdateWithoutDesignationInput = {
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    department?: DepartmentUpdateOneWithoutUsersNestedInput
    user?: UserUpdateOneRequiredWithoutUser_detailNestedInput
    created?: UserUpdateOneWithoutCreated_user_detailsNestedInput
    updated?: UserUpdateOneWithoutUpdated_user_detailsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_user_detailsNestedInput
  }

  export type UserDetailUncheckedUpdateWithoutDesignationInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailUncheckedUpdateManyWithoutDesignationInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    department_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailCreateManyDepartmentInput = {
    user_id: number
    code: string
    first_name: string
    last_name?: string | null
    designation_id?: number | null
    profile_pic?: string | null
    dob?: Date | string | null
    country_code?: string | null
    phone_number?: string | null
    gender?: string
    user_time_zone?: string | null
    address?: string | null
    culture?: string | null
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type UserDetailUpdateWithoutDepartmentInput = {
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    designation?: DesignationUpdateOneWithoutUsersNestedInput
    user?: UserUpdateOneRequiredWithoutUser_detailNestedInput
    created?: UserUpdateOneWithoutCreated_user_detailsNestedInput
    updated?: UserUpdateOneWithoutUpdated_user_detailsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_user_detailsNestedInput
  }

  export type UserDetailUncheckedUpdateWithoutDepartmentInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type UserDetailUncheckedUpdateManyWithoutDepartmentInput = {
    id?: IntFieldUpdateOperationsInput | number
    user_id?: IntFieldUpdateOperationsInput | number
    code?: StringFieldUpdateOperationsInput | string
    first_name?: StringFieldUpdateOperationsInput | string
    last_name?: NullableStringFieldUpdateOperationsInput | string | null
    designation_id?: NullableIntFieldUpdateOperationsInput | number | null
    profile_pic?: NullableStringFieldUpdateOperationsInput | string | null
    dob?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    country_code?: NullableStringFieldUpdateOperationsInput | string | null
    phone_number?: NullableStringFieldUpdateOperationsInput | string | null
    gender?: StringFieldUpdateOperationsInput | string
    user_time_zone?: NullableStringFieldUpdateOperationsInput | string | null
    address?: NullableStringFieldUpdateOperationsInput | string | null
    culture?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceCreateManyFinanicial_yearInput = {
    uuid?: string
    module_name: string
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    status_id?: number
    code_format?: string | null
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceUpdateWithoutFinanicial_yearInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutDocument_sequencesNestedInput
    created?: UserUpdateOneWithoutCreated_doc_sequencesNestedInput
    updated?: UserUpdateOneWithoutUpdated_doc_sequencesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_doc_sequencesNestedInput
  }

  export type DocumentSequenceUncheckedUpdateWithoutFinanicial_yearInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutFinanicial_yearInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RolePermissionsCreateManyPermissionInput = {
    role_id: number
  }

  export type UserPermissionsCreateManyPermissionInput = {
    user_id: number
  }

  export type MenuItemsCreateManyPermissionInput = {
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type RolePermissionsUpdateWithoutPermissionInput = {
    role?: RoleUpdateOneRequiredWithoutPermissionsNestedInput
  }

  export type RolePermissionsUncheckedUpdateWithoutPermissionInput = {
    role_id?: IntFieldUpdateOperationsInput | number
  }

  export type RolePermissionsUncheckedUpdateManyWithoutPermissionInput = {
    role_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserPermissionsUpdateWithoutPermissionInput = {
    user?: UserUpdateOneRequiredWithoutPermissionsNestedInput
  }

  export type UserPermissionsUncheckedUpdateWithoutPermissionInput = {
    user_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserPermissionsUncheckedUpdateManyWithoutPermissionInput = {
    user_id?: IntFieldUpdateOperationsInput | number
  }

  export type MenuItemsUpdateWithoutPermissionInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenuitemsNestedInput
    menus?: MenusUpdateOneWithoutMenuitemsNestedInput
    entity?: MasterEntityUpdateOneWithoutMenusNestedInput
    parent?: MenuItemsUpdateOneWithoutChildrenNestedInput
    children?: MenuItemsUpdateManyWithoutParentNestedInput
    created?: UserUpdateOneWithoutCreated_menu_itemsNestedInput
    updated?: UserUpdateOneWithoutUpdated_menu_itemsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateWithoutPermissionInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    children?: MenuItemsUncheckedUpdateManyWithoutParentNestedInput
  }

  export type MenuItemsUncheckedUpdateManyWithoutPermissionInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RolePermissionsCreateManyRoleInput = {
    permission_id: number
  }

  export type UserRolesCreateManyRoleInput = {
    user_id: number
  }

  export type RolePermissionsUpdateWithoutRoleInput = {
    permission?: PermissionsUpdateOneRequiredWithoutRolesNestedInput
  }

  export type RolePermissionsUncheckedUpdateWithoutRoleInput = {
    permission_id?: IntFieldUpdateOperationsInput | number
  }

  export type RolePermissionsUncheckedUpdateManyWithoutRoleInput = {
    permission_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserRolesUpdateWithoutRoleInput = {
    user?: UserUpdateOneRequiredWithoutRolesNestedInput
  }

  export type UserRolesUncheckedUpdateWithoutRoleInput = {
    user_id?: IntFieldUpdateOperationsInput | number
  }

  export type UserRolesUncheckedUpdateManyWithoutRoleInput = {
    user_id?: IntFieldUpdateOperationsInput | number
  }

  export type LanguageContentCreateManyLanguageInput = {
    key_content: string
    values: string
    status_id?: number
    created_at?: Date | string
  }

  export type LanguageContentUpdateWithoutLanguageInput = {
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutLanguage_contentsNestedInput
  }

  export type LanguageContentUncheckedUpdateWithoutLanguageInput = {
    id?: IntFieldUpdateOperationsInput | number
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type LanguageContentUncheckedUpdateManyWithoutLanguageInput = {
    id?: IntFieldUpdateOperationsInput | number
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MenuItemsCreateManyMenusInput = {
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenuItemsUpdateWithoutMenusInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenuitemsNestedInput
    entity?: MasterEntityUpdateOneWithoutMenusNestedInput
    permission?: PermissionsUpdateOneWithoutMenusNestedInput
    parent?: MenuItemsUpdateOneWithoutChildrenNestedInput
    children?: MenuItemsUpdateManyWithoutParentNestedInput
    created?: UserUpdateOneWithoutCreated_menu_itemsNestedInput
    updated?: UserUpdateOneWithoutUpdated_menu_itemsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateWithoutMenusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    children?: MenuItemsUncheckedUpdateManyWithoutParentNestedInput
  }

  export type MenuItemsUncheckedUpdateManyWithoutMenusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenuItemsCreateManyParentInput = {
    menu_id: number
    name: string
    target?: string | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenuItemsUpdateWithoutParentInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenuitemsNestedInput
    menus?: MenusUpdateOneWithoutMenuitemsNestedInput
    entity?: MasterEntityUpdateOneWithoutMenusNestedInput
    permission?: PermissionsUpdateOneWithoutMenusNestedInput
    children?: MenuItemsUpdateManyWithoutParentNestedInput
    created?: UserUpdateOneWithoutCreated_menu_itemsNestedInput
    updated?: UserUpdateOneWithoutUpdated_menu_itemsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateWithoutParentInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    children?: MenuItemsUncheckedUpdateManyWithoutParentNestedInput
  }

  export type MenuItemsUncheckedUpdateManyWithoutParentInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type PermissionsCreateManyEntityInput = {
    name: string
    slug: string
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    created_at?: Date | string
  }

  export type MasterEntityLineItemCreateManyMaster_gridInput = {
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    field_type_id: number
    status_id?: number
    created_at?: Date | string
  }

  export type MenuItemsCreateManyEntityInput = {
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    status_id?: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type PermissionsUpdateWithoutEntityInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutPermissionsNestedInput
    roles?: RolePermissionsUpdateManyWithoutPermissionNestedInput
    users?: UserPermissionsUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUpdateManyWithoutPermissionNestedInput
  }

  export type PermissionsUncheckedUpdateWithoutEntityInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    roles?: RolePermissionsUncheckedUpdateManyWithoutPermissionNestedInput
    users?: UserPermissionsUncheckedUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUncheckedUpdateManyWithoutPermissionNestedInput
  }

  export type PermissionsUncheckedUpdateManyWithoutEntityInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MasterEntityLineItemUpdateWithoutMaster_gridInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutMaster_grid_line_itemsNestedInput
    field_type?: FieldTypeUpdateOneWithoutMaster_grid_lineitemNestedInput
  }

  export type MasterEntityLineItemUncheckedUpdateWithoutMaster_gridInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    field_type_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MasterEntityLineItemUncheckedUpdateManyWithoutMaster_gridInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    field_type_id?: IntFieldUpdateOperationsInput | number
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MenuItemsUpdateWithoutEntityInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutMenuitemsNestedInput
    menus?: MenusUpdateOneWithoutMenuitemsNestedInput
    permission?: PermissionsUpdateOneWithoutMenusNestedInput
    parent?: MenuItemsUpdateOneWithoutChildrenNestedInput
    children?: MenuItemsUpdateManyWithoutParentNestedInput
    created?: UserUpdateOneWithoutCreated_menu_itemsNestedInput
    updated?: UserUpdateOneWithoutUpdated_menu_itemsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateWithoutEntityInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    children?: MenuItemsUncheckedUpdateManyWithoutParentNestedInput
  }

  export type MenuItemsUncheckedUpdateManyWithoutEntityInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MasterEntityLineItemCreateManyField_typeInput = {
    master_grid_id: number
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    status_id?: number
    created_at?: Date | string
  }

  export type ImportTemplateLineItemCreateManyField_typeInput = {
    import_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    status_id?: number
    created_at?: Date | string
  }

  export type ExportTemplateLineItemCreateManyField_typeInput = {
    export_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    status_id?: number
    created_at?: Date | string
  }

  export type MasterEntityLineItemUpdateWithoutField_typeInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutMaster_grid_line_itemsNestedInput
    master_grid?: MasterEntityUpdateOneRequiredWithoutLine_itemsNestedInput
  }

  export type MasterEntityLineItemUncheckedUpdateWithoutField_typeInput = {
    id?: IntFieldUpdateOperationsInput | number
    master_grid_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MasterEntityLineItemUncheckedUpdateManyWithoutField_typeInput = {
    id?: IntFieldUpdateOperationsInput | number
    master_grid_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateLineItemUpdateWithoutField_typeInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutImport_template_line_itemsNestedInput
    import_template?: ImportTemplateUpdateOneRequiredWithoutLine_itemsNestedInput
  }

  export type ImportTemplateLineItemUncheckedUpdateWithoutField_typeInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateLineItemUncheckedUpdateManyWithoutField_typeInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateLineItemUpdateWithoutField_typeInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutExport_template_line_itemsNestedInput
    export_template?: ExportTemplateUpdateOneRequiredWithoutLine_itemsNestedInput
  }

  export type ExportTemplateLineItemUncheckedUpdateWithoutField_typeInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateLineItemUncheckedUpdateManyWithoutField_typeInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type EmailTemplateProcessTagsMappingCreateManyEmail_template_processInput = {
    email_template_tag_id: number
  }

  export type EmailTemplateCreateManyEmail_template_processInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    status_id?: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    deleted_by?: number | null
  }

  export type EmailTemplateAssignmentCreateManyEmail_template_processInput = {
    uuid?: string
    template_id: number
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
    created_by: number
  }

  export type EmailTemplateProcessTagsMappingUpdateWithoutEmail_template_processInput = {
    email_template_tag?: EmailTemplateTagUpdateOneRequiredWithoutEmail_template_groupsNestedInput
  }

  export type EmailTemplateProcessTagsMappingUncheckedUpdateWithoutEmail_template_processInput = {
    email_template_tag_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_processInput = {
    email_template_tag_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateUpdateWithoutEmail_template_processInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    status?: StatusUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_templateNestedInput
    created?: UserUpdateOneWithoutCreated_email_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_email_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_email_templatesNestedInput
  }

  export type EmailTemplateUncheckedUpdateWithoutEmail_template_processInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_templateNestedInput
  }

  export type EmailTemplateUncheckedUpdateManyWithoutEmail_template_processInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
  }

  export type EmailTemplateAssignmentUpdateWithoutEmail_template_processInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    email_template?: EmailTemplateUpdateOneRequiredWithoutEmail_template_assignmentsNestedInput
    created?: UserUpdateOneRequiredWithoutCreated_email_template_assignmentsNestedInput
  }

  export type EmailTemplateAssignmentUncheckedUpdateWithoutEmail_template_processInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    template_id?: IntFieldUpdateOperationsInput | number
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_template_processInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    template_id?: IntFieldUpdateOperationsInput | number
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateProcessTagsMappingCreateManyEmail_template_tagInput = {
    email_template_process_id: number
  }

  export type EmailTemplateProcessTagsMappingUpdateWithoutEmail_template_tagInput = {
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_template_groupsNestedInput
  }

  export type EmailTemplateProcessTagsMappingUncheckedUpdateWithoutEmail_template_tagInput = {
    email_template_process_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_tagInput = {
    email_template_process_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateAssignmentCreateManyEmail_templateInput = {
    uuid?: string
    email_template_process_id: number
    recipient_type?: string
    email_to?: string | null
    mail_cc?: string | null
    mail_bcc?: string | null
    created_at?: Date | string
    created_by: number
  }

  export type EmailTemplateAssignmentUpdateWithoutEmail_templateInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_template_assignmentsNestedInput
    created?: UserUpdateOneRequiredWithoutCreated_email_template_assignmentsNestedInput
  }

  export type EmailTemplateAssignmentUncheckedUpdateWithoutEmail_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    recipient_type?: StringFieldUpdateOperationsInput | string
    email_to?: NullableStringFieldUpdateOperationsInput | string | null
    mail_cc?: NullableStringFieldUpdateOperationsInput | string | null
    mail_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: IntFieldUpdateOperationsInput | number
  }

  export type ImportTemplateLineItemCreateManyImport_templateInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    status_id?: number
    created_at?: Date | string
  }

  export type ImportTemplateQueriesCreateManyImport_templateInput = {
    query_string?: string | null
    query_name: string
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    created_at?: Date | string
  }

  export type ImportTemplateLineItemUpdateWithoutImport_templateInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutImport_template_line_itemsNestedInput
    field_type?: FieldTypeUpdateOneWithoutImportTemplateLineItemNestedInput
  }

  export type ImportTemplateLineItemUncheckedUpdateWithoutImport_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateLineItemUncheckedUpdateManyWithoutImport_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateQueriesUpdateWithoutImport_templateInput = {
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutImport_template_queriesNestedInput
  }

  export type ImportTemplateQueriesUncheckedUpdateWithoutImport_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateQueriesUncheckedUpdateManyWithoutImport_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportJobLineItemCreateManyImport_jobInput = {
    row_object?: string | null
    job_status?: string | null
    status_id?: number
    created_at?: Date | string
  }

  export type ImportJobLineItemUpdateWithoutImport_jobInput = {
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutImport_job_line_itemsNestedInput
  }

  export type ImportJobLineItemUncheckedUpdateWithoutImport_jobInput = {
    id?: IntFieldUpdateOperationsInput | number
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportJobLineItemUncheckedUpdateManyWithoutImport_jobInput = {
    id?: IntFieldUpdateOperationsInput | number
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateLineItemCreateManyExport_templateInput = {
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    status_id?: number
    created_at?: Date | string
  }

  export type ExportTemplateQueriesCreateManyExport_templateInput = {
    query_string?: string | null
    query_name: string
    query_procedure?: string
    is_individual?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    status_id?: number
    created_at?: Date | string
  }

  export type ExportTemplateLineItemUpdateWithoutExport_templateInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutExport_template_line_itemsNestedInput
    field_type?: FieldTypeUpdateOneWithoutExportTemplateLineItemNestedInput
  }

  export type ExportTemplateLineItemUncheckedUpdateWithoutExport_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateLineItemUncheckedUpdateManyWithoutExport_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateQueriesUpdateWithoutExport_templateInput = {
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    status?: StatusUpdateOneRequiredWithoutExport_template_queriesNestedInput
  }

  export type ExportTemplateQueriesUncheckedUpdateWithoutExport_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateQueriesUncheckedUpdateManyWithoutExport_templateInput = {
    id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    status_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type StatusCreateManyStatusInput = {
    name: string
    slug: string
    description?: string | null
  }

  export type UserCreateManyStatusInput = {
    uuid?: string
    username: string
    email: string
    email_verified?: boolean
    password?: string | null
    role?: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
    last_login?: Date | string | null
    last_login_device?: string | null
  }

  export type RequestLogCreateManyStatusInput = {
    uuid?: string
    user_id?: number | null
    req_method?: string | null
    req_url?: string | null
    req_body?: string | null
    res_status?: boolean
    res_code?: number
    res_message?: string | null
    req_response?: string | null
    req_headers?: string | null
    req_ip?: string | null
    req_device?: string | null
    company_id: number
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type PermissionsCreateManyStatusInput = {
    name: string
    slug: string
    entity_id?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    company_id: number
    created_at?: Date | string
  }

  export type RoleCreateManyStatusInput = {
    uuid?: string
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type LanguageCreateManyStatusInput = {
    uuid?: string
    name: string
    name_in_english?: string | null
    flag?: string | null
    code?: string | null
    rtl?: boolean
    description: string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type LanguageContentCreateManyStatusInput = {
    language_id: number
    key_content: string
    values: string
    company_id: number
    created_at?: Date | string
  }

  export type MenuItemsCreateManyStatusInput = {
    menu_id: number
    name: string
    target?: string | null
    parent_id?: number | null
    permission_id?: number | null
    entity_id?: number | null
    link_type?: number | null
    order_no?: Decimal | DecimalJsLike | number | string
    menu_img?: string | null
    short_cut_keys?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MenusCreateManyStatusInput = {
    uuid?: string
    name: string
    slug?: string | null
    description?: string | null
    menu_type: number
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MasterEntityCreateManyStatusInput = {
    uuid?: string
    name: string
    entity_name: string
    entity_type: string
    primary_table?: string | null
    is_admin_module?: boolean
    associated_tables?: string | null
    query_information?: string | null
    form_information?: string | null
    add_query_information?: string | null
    edit_query_information?: string | null
    preset_query_information?: string | null
    static_page_content?: string | null
    export_template_id?: number | null
    dashboard_wizard_group_id?: number | null
    dashboard_wizard_type?: string | null
    dashboard_wizard_rows?: number | null
    dashboard_wizard_columns?: number | null
    dashboard_wizard_order_no?: Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: string | null
    company_id: number
    created_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type MasterEntityLineItemCreateManyStatusInput = {
    master_grid_id: number
    field_name: string
    display_name: string
    order_no?: Decimal | DecimalJsLike | number | string
    is_grid_column?: boolean
    is_searchable?: boolean
    clause_type?: string
    is_sortable?: boolean
    field_type_id: number
    company_id: number
    created_at?: Date | string
  }

  export type FieldTypeCreateManyStatusInput = {
    field_type: string
    company_id: number
    created_at?: Date | string
  }

  export type menuTypeCreateManyStatusInput = {
    name?: string | null
    company_id: number
    created_at?: Date | string
  }

  export type EmailTemplateProcessCreateManyStatusInput = {
    uuid?: string
    name: string
    slug: string
    query_information?: string | null
    company_id: number
  }

  export type EmailTemplateTagCreateManyStatusInput = {
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    company_id: number
  }

  export type EmailTemplateRecipientTagCreateManyStatusInput = {
    uuid?: string
    slug: string
    name?: string | null
    description?: string | null
    query_information?: string | null
    company_id: number
  }

  export type EmailTemplateCreateManyStatusInput = {
    uuid?: string
    slug: string
    name: string
    subject: string
    template_body: string
    email_template_process_id: number
    created_at?: Date | string
    created_by?: number | null
    updated_at?: Date | string
    updated_by?: number | null
    deleted_at?: Date | string | null
    deleted_by?: number | null
    company_id: number
  }

  export type EmailProcessJobCreateManyStatusInput = {
    uuid?: string
    email_template_process_slug: string
    unique_id: string
    user_id: number
    prefill_data?: string | null
    company_id: number
    created_at?: Date | string
    created_by?: number | null
  }

  export type NotificationJobCreateManyStatusInput = {
    uuid?: string
    process_slug: string
    notification_to?: string | null
    notification_subject?: string | null
    notification_content?: string | null
    notification_cc?: string | null
    notification_bcc?: string | null
    notification_type_id: string
    notification_status_id: string
    company_id: number
    created_at?: Date | string
    created_by?: number | null
    sent_at?: Date | string | null
    read_at?: Date | string | null
  }

  export type ImportTemplateCreateManyStatusInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    ignore_error_rows?: boolean
    is_admin_module?: boolean
    job_type?: string | null
    batch_process_count?: number | null
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportTemplateLineItemCreateManyStatusInput = {
    import_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    width?: number | null
    default_value?: string | null
    check_reg_exp?: string | null
    is_nullable?: boolean
    is_unique?: boolean
    is_foreign?: boolean
    unique_query?: string | null
    foreign_query?: string | null
    is_enum?: boolean
    is_multiple?: boolean
    enum_values?: string | null
    foreign_table?: string | null
    foreign_column?: string | null
    foreign_can_create?: boolean
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    company_id: number
    created_at?: Date | string
  }

  export type ImportTemplateQueriesCreateManyStatusInput = {
    import_template_id: number
    query_string?: string | null
    query_name: string
    allow_multiple?: boolean
    is_individual?: boolean
    before_lineitems?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    company_id: number
    created_at?: Date | string
  }

  export type ExportTemplateCreateManyStatusInput = {
    uuid?: string
    name: string
    slug: string
    description?: string | null
    max_row_count?: number
    header_row?: number
    data_start_row?: number
    data_end_row?: number
    data_filepath: string
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ExportTemplateLineItemCreateManyStatusInput = {
    export_template_id: number
    field_name: string
    display_name: string
    field_table: string
    order_no?: Decimal | DecimalJsLike | number | string
    default_value?: string | null
    column_name?: string | null
    is_individual?: boolean
    individual_column?: string | null
    field_type_id?: number | null
    company_id: number
    created_at?: Date | string
  }

  export type ExportTemplateQueriesCreateManyStatusInput = {
    export_template_id: number
    query_string?: string | null
    query_name: string
    query_procedure?: string
    is_individual?: boolean
    order_no?: Decimal | DecimalJsLike | number | string
    company_id: number
    created_at?: Date | string
  }

  export type DesignationCreateManyStatusInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DepartmentCreateManyStatusInput = {
    uuid?: string
    code: string
    name: string
    description?: string | null
    department_head_id?: number | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type AuditLogCreateManyStatusInput = {
    operation_type: string
    table_name: string
    field_name: string
    old_value?: string | null
    new_value?: string | null
    entity_id: number
    user_id?: number | null
    company_id?: number | null
    created_at?: Date | string
  }

  export type FinancialYearCreateManyStatusInput = {
    uuid?: string
    name: string
    code: string
    is_freezed?: boolean
    start_date: Date | string
    end_date: Date | string
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type DocumentSequenceCreateManyStatusInput = {
    uuid?: string
    module_name: string
    financial_year_id?: number | null
    current_sequence_no?: number
    start_sequence_no?: number
    end_sequence_no?: number
    sequence_length?: number
    code_format?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type FileUploadLogCreateManyStatusInput = {
    uuid?: string
    doc_name?: string | null
    org_name?: string | null
    extension?: string | null
    description?: string | null
    company_id: number
    created_at?: Date | string
  }

  export type DeviceRegistrationCreateManyStatusInput = {
    uuid?: string
    company_id: number
    device_name: string
    device_unique_id: string
    user_id: number
    created_by: number
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportJobCreateManyStatusInput = {
    uuid?: string
    name: string
    description?: string | null
    sequence_number?: string | null
    header_details?: string | null
    table_config?: string | null
    total_rows?: number
    completed_rows?: number
    error_rows?: number
    batch_process_count?: number | null
    job_status?: string | null
    last_processed_row_id?: number | null
    company_id: number
    created_by?: number | null
    created_at?: Date | string
    updated_by?: number | null
    updated_at?: Date | string
    deleted_by?: number | null
    deleted_at?: Date | string | null
  }

  export type ImportJobLineItemCreateManyStatusInput = {
    import_job_id: number
    row_object?: string | null
    job_status?: string | null
    company_id: number
    created_at?: Date | string
  }

  export type StatusUpdateWithoutStatusInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_list?: StatusUpdateManyWithoutStatusNestedInput
    users?: UserUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUpdateManyWithoutStatusNestedInput
    roles?: RoleUpdateManyWithoutStatusNestedInput
    languages?: LanguageUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUpdateManyWithoutStatusNestedInput
    menus?: MenusUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUpdateManyWithoutStatusNestedInput
    designations?: DesignationUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    status_list?: StatusUncheckedUpdateManyWithoutStatusNestedInput
    users?: UserUncheckedUpdateManyWithoutStatusNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutStatusNestedInput
    permissions?: PermissionsUncheckedUpdateManyWithoutStatusNestedInput
    roles?: RoleUncheckedUpdateManyWithoutStatusNestedInput
    languages?: LanguageUncheckedUpdateManyWithoutStatusNestedInput
    language_contents?: LanguageContentUncheckedUpdateManyWithoutStatusNestedInput
    menuitems?: MenuItemsUncheckedUpdateManyWithoutStatusNestedInput
    menus?: MenusUncheckedUpdateManyWithoutStatusNestedInput
    master_grids?: MasterEntityUncheckedUpdateManyWithoutStatusNestedInput
    master_grid_line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutStatusNestedInput
    field_types?: FieldTypeUncheckedUpdateManyWithoutStatusNestedInput
    menu_types?: menuTypeUncheckedUpdateManyWithoutStatusNestedInput
    email_template_processes?: EmailTemplateProcessUncheckedUpdateManyWithoutStatusNestedInput
    email_template_tags?: EmailTemplateTagUncheckedUpdateManyWithoutStatusNestedInput
    email_template_receiver_tags?: EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutStatusNestedInput
    email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutStatusNestedInput
    notification_job?: NotificationJobUncheckedUpdateManyWithoutStatusNestedInput
    import_templates?: ImportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    import_template_line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    import_template_queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    export_templates?: ExportTemplateUncheckedUpdateManyWithoutStatusNestedInput
    export_template_line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutStatusNestedInput
    export_template_queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutStatusNestedInput
    designations?: DesignationUncheckedUpdateManyWithoutStatusNestedInput
    departments?: DepartmentUncheckedUpdateManyWithoutStatusNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutStatusNestedInput
    financial_years?: FinancialYearUncheckedUpdateManyWithoutStatusNestedInput
    document_sequences?: DocumentSequenceUncheckedUpdateManyWithoutStatusNestedInput
    file_upload_logs?: FileUploadLogUncheckedUpdateManyWithoutStatusNestedInput
    device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutStatusNestedInput
    import_job?: ImportJobUncheckedUpdateManyWithoutStatusNestedInput
    import_job_line_items?: ImportJobLineItemUncheckedUpdateManyWithoutStatusNestedInput
  }

  export type StatusUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
  }

  export type UserUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUpdateManyWithoutUserNestedInput
    roles?: UserRolesUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUpdateManyWithoutUserNestedInput
    otps?: OtpUpdateManyWithoutUserNestedInput
    created?: UserUpdateOneWithoutCreated_usersNestedInput
    updated?: UserUpdateOneWithoutUpdated_usersNestedInput
    deleted?: UserUpdateOneWithoutDeleted_usersNestedInput
    created_users?: UserUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
    user_detail?: UserDetailUncheckedUpdateOneWithoutUserNestedInput
    request_logs?: RequestLogUncheckedUpdateManyWithoutUserNestedInput
    roles?: UserRolesUncheckedUpdateManyWithoutUserNestedInput
    permissions?: UserPermissionsUncheckedUpdateManyWithoutUserNestedInput
    otps?: OtpUncheckedUpdateManyWithoutUserNestedInput
    created_users?: UserUncheckedUpdateManyWithoutCreatedNestedInput
    updated_users?: UserUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_users?: UserUncheckedUpdateManyWithoutDeletedNestedInput
    created_user_details?: UserDetailUncheckedUpdateManyWithoutCreatedNestedInput
    updated_user_details?: UserDetailUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_user_details?: UserDetailUncheckedUpdateManyWithoutDeletedNestedInput
    created_roles?: RoleUncheckedUpdateManyWithoutCreatedNestedInput
    updated_roles?: RoleUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_roles?: RoleUncheckedUpdateManyWithoutDeletedNestedInput
    created_languages?: LanguageUncheckedUpdateManyWithoutCreatedNestedInput
    updated_languages?: LanguageUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_languages?: LanguageUncheckedUpdateManyWithoutDeletedNestedInput
    created_menus?: MenusUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menus?: MenusUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menus?: MenusUncheckedUpdateManyWithoutDeletedNestedInput
    created_menu_items?: MenuItemsUncheckedUpdateManyWithoutCreatedNestedInput
    updated_menu_items?: MenuItemsUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_menu_items?: MenuItemsUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_templates?: EmailTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_email_templates?: EmailTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_email_templates?: EmailTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutCreatedNestedInput
    created_email_process_jobs?: EmailProcessJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_notification_job?: NotificationJobUncheckedUpdateManyWithoutCreatedNestedInput
    created_import_templates?: ImportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_templates?: ImportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_templates?: ImportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_export_templates?: ExportTemplateUncheckedUpdateManyWithoutCreatedNestedInput
    updated_export_templates?: ExportTemplateUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_export_templates?: ExportTemplateUncheckedUpdateManyWithoutDeletedNestedInput
    created_departments?: DepartmentUncheckedUpdateManyWithoutCreatedNestedInput
    head_departments?: DepartmentUncheckedUpdateManyWithoutDepartment_headNestedInput
    updated_departments?: DepartmentUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_departments?: DepartmentUncheckedUpdateManyWithoutDeletedNestedInput
    created_designations?: DesignationUncheckedUpdateManyWithoutCreatedNestedInput
    updated_designations?: DesignationUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_designations?: DesignationUncheckedUpdateManyWithoutDeletedNestedInput
    audit_logs?: AuditLogUncheckedUpdateManyWithoutUserNestedInput
    created_category_types?: CategoryTypesUncheckedUpdateManyWithoutCreated_category_typesNestedInput
    updated_category_types?: CategoryTypesUncheckedUpdateManyWithoutUpdated_category_typesNestedInput
    deleted_category_types?: CategoryTypesUncheckedUpdateManyWithoutDeleted_category_typesNestedInput
    created_categories?: CategoriesUncheckedUpdateManyWithoutCreated_categoriesNestedInput
    updated_categories?: CategoriesUncheckedUpdateManyWithoutUpdated_categoriesNestedInput
    deleted_categories?: CategoriesUncheckedUpdateManyWithoutDeleted_categoriesNestedInput
    created_configurations?: ConfigurationsUncheckedUpdateManyWithoutCreated_configurationsNestedInput
    updated_configurations?: ConfigurationsUncheckedUpdateManyWithoutUpdated_configurationsNestedInput
    deleted_configurations?: ConfigurationsUncheckedUpdateManyWithoutDeleted_configurationsNestedInput
    created_fin_years?: FinancialYearUncheckedUpdateManyWithoutCreatedNestedInput
    updated_fin_years?: FinancialYearUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_fin_years?: FinancialYearUncheckedUpdateManyWithoutDeletedNestedInput
    created_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutCreatedNestedInput
    updated_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_doc_sequences?: DocumentSequenceUncheckedUpdateManyWithoutDeletedNestedInput
    created_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutCreated_device_registrationNestedInput
    updated_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: DeviceRegistrationUncheckedUpdateManyWithoutDeleted_device_registrationNestedInput
    DeviceRegistration?: DeviceRegistrationUncheckedUpdateManyWithoutUserNestedInput
    created_import_job?: ImportJobUncheckedUpdateManyWithoutCreatedNestedInput
    updated_import_job?: ImportJobUncheckedUpdateManyWithoutUpdatedNestedInput
    deleted_import_job?: ImportJobUncheckedUpdateManyWithoutDeletedNestedInput
  }

  export type UserUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    username?: StringFieldUpdateOperationsInput | string
    email?: StringFieldUpdateOperationsInput | string
    email_verified?: BoolFieldUpdateOperationsInput | boolean
    password?: NullableStringFieldUpdateOperationsInput | string | null
    role?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    last_login_device?: NullableStringFieldUpdateOperationsInput | string | null
  }

  export type RequestLogUpdateWithoutStatusInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    user?: UserUpdateOneWithoutRequest_logsNestedInput
  }

  export type RequestLogUncheckedUpdateWithoutStatusInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    user_id?: NullableIntFieldUpdateOperationsInput | number | null
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type RequestLogUncheckedUpdateManyWithoutStatusInput = {
    id?: BigIntFieldUpdateOperationsInput | bigint | number
    uuid?: StringFieldUpdateOperationsInput | string
    user_id?: NullableIntFieldUpdateOperationsInput | number | null
    req_method?: NullableStringFieldUpdateOperationsInput | string | null
    req_url?: NullableStringFieldUpdateOperationsInput | string | null
    req_body?: NullableStringFieldUpdateOperationsInput | string | null
    res_status?: BoolFieldUpdateOperationsInput | boolean
    res_code?: IntFieldUpdateOperationsInput | number
    res_message?: NullableStringFieldUpdateOperationsInput | string | null
    req_response?: NullableStringFieldUpdateOperationsInput | string | null
    req_headers?: NullableStringFieldUpdateOperationsInput | string | null
    req_ip?: NullableStringFieldUpdateOperationsInput | string | null
    req_device?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type PermissionsUpdateWithoutStatusInput = {
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    entity?: MasterEntityUpdateOneWithoutPermissionsNestedInput
    roles?: RolePermissionsUpdateManyWithoutPermissionNestedInput
    users?: UserPermissionsUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUpdateManyWithoutPermissionNestedInput
  }

  export type PermissionsUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    roles?: RolePermissionsUncheckedUpdateManyWithoutPermissionNestedInput
    users?: UserPermissionsUncheckedUpdateManyWithoutPermissionNestedInput
    menus?: MenuItemsUncheckedUpdateManyWithoutPermissionNestedInput
  }

  export type PermissionsUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type RoleUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: RolePermissionsUpdateManyWithoutRoleNestedInput
    users?: UserRolesUpdateManyWithoutRoleNestedInput
    created?: UserUpdateOneWithoutCreated_rolesNestedInput
    updated?: UserUpdateOneWithoutUpdated_rolesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_rolesNestedInput
  }

  export type RoleUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: RolePermissionsUncheckedUpdateManyWithoutRoleNestedInput
    users?: UserRolesUncheckedUpdateManyWithoutRoleNestedInput
  }

  export type RoleUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type LanguageUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    translations?: LanguageContentUpdateManyWithoutLanguageNestedInput
    created?: UserUpdateOneWithoutCreated_languagesNestedInput
    updated?: UserUpdateOneWithoutUpdated_languagesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_languagesNestedInput
  }

  export type LanguageUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    translations?: LanguageContentUncheckedUpdateManyWithoutLanguageNestedInput
  }

  export type LanguageUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    name_in_english?: NullableStringFieldUpdateOperationsInput | string | null
    flag?: NullableStringFieldUpdateOperationsInput | string | null
    code?: NullableStringFieldUpdateOperationsInput | string | null
    rtl?: BoolFieldUpdateOperationsInput | boolean
    description?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type LanguageContentUpdateWithoutStatusInput = {
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    language?: LanguageUpdateOneWithoutTranslationsNestedInput
  }

  export type LanguageContentUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    language_id?: IntFieldUpdateOperationsInput | number
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type LanguageContentUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    language_id?: IntFieldUpdateOperationsInput | number
    key_content?: StringFieldUpdateOperationsInput | string
    values?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MenuItemsUpdateWithoutStatusInput = {
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    menus?: MenusUpdateOneWithoutMenuitemsNestedInput
    entity?: MasterEntityUpdateOneWithoutMenusNestedInput
    permission?: PermissionsUpdateOneWithoutMenusNestedInput
    parent?: MenuItemsUpdateOneWithoutChildrenNestedInput
    children?: MenuItemsUpdateManyWithoutParentNestedInput
    created?: UserUpdateOneWithoutCreated_menu_itemsNestedInput
    updated?: UserUpdateOneWithoutUpdated_menu_itemsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menu_itemsNestedInput
  }

  export type MenuItemsUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    children?: MenuItemsUncheckedUpdateManyWithoutParentNestedInput
  }

  export type MenuItemsUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    menu_id?: IntFieldUpdateOperationsInput | number
    name?: StringFieldUpdateOperationsInput | string
    target?: NullableStringFieldUpdateOperationsInput | string | null
    parent_id?: NullableIntFieldUpdateOperationsInput | number | null
    permission_id?: NullableIntFieldUpdateOperationsInput | number | null
    entity_id?: NullableIntFieldUpdateOperationsInput | number | null
    link_type?: NullableIntFieldUpdateOperationsInput | number | null
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    menu_img?: NullableStringFieldUpdateOperationsInput | string | null
    short_cut_keys?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MenusUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    menuitems?: MenuItemsUpdateManyWithoutMenusNestedInput
    created?: UserUpdateOneWithoutCreated_menusNestedInput
    updated?: UserUpdateOneWithoutUpdated_menusNestedInput
    deleted?: UserUpdateOneWithoutDeleted_menusNestedInput
  }

  export type MenusUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    menuitems?: MenuItemsUncheckedUpdateManyWithoutMenusNestedInput
  }

  export type MenusUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    menu_type?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MasterEntityUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: PermissionsUpdateManyWithoutEntityNestedInput
    line_items?: MasterEntityLineItemUpdateManyWithoutMaster_gridNestedInput
    menus?: MenuItemsUpdateManyWithoutEntityNestedInput
  }

  export type MasterEntityUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    permissions?: PermissionsUncheckedUpdateManyWithoutEntityNestedInput
    line_items?: MasterEntityLineItemUncheckedUpdateManyWithoutMaster_gridNestedInput
    menus?: MenuItemsUncheckedUpdateManyWithoutEntityNestedInput
  }

  export type MasterEntityUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    entity_name?: StringFieldUpdateOperationsInput | string
    entity_type?: StringFieldUpdateOperationsInput | string
    primary_table?: NullableStringFieldUpdateOperationsInput | string | null
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    associated_tables?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    form_information?: NullableStringFieldUpdateOperationsInput | string | null
    add_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    edit_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    preset_query_information?: NullableStringFieldUpdateOperationsInput | string | null
    static_page_content?: NullableStringFieldUpdateOperationsInput | string | null
    export_template_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_group_id?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_type?: NullableStringFieldUpdateOperationsInput | string | null
    dashboard_wizard_rows?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_columns?: NullableIntFieldUpdateOperationsInput | number | null
    dashboard_wizard_order_no?: NullableDecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string | null
    dashboard_wizard_options?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type MasterEntityLineItemUpdateWithoutStatusInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    master_grid?: MasterEntityUpdateOneRequiredWithoutLine_itemsNestedInput
    field_type?: FieldTypeUpdateOneWithoutMaster_grid_lineitemNestedInput
  }

  export type MasterEntityLineItemUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    master_grid_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    field_type_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type MasterEntityLineItemUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    master_grid_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    is_grid_column?: BoolFieldUpdateOperationsInput | boolean
    is_searchable?: BoolFieldUpdateOperationsInput | boolean
    clause_type?: StringFieldUpdateOperationsInput | string
    is_sortable?: BoolFieldUpdateOperationsInput | boolean
    field_type_id?: IntFieldUpdateOperationsInput | number
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type FieldTypeUpdateWithoutStatusInput = {
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    master_grid_lineitem?: MasterEntityLineItemUpdateManyWithoutField_typeNestedInput
    importTemplateLineItem?: ImportTemplateLineItemUpdateManyWithoutField_typeNestedInput
    exportTemplateLineItem?: ExportTemplateLineItemUpdateManyWithoutField_typeNestedInput
  }

  export type FieldTypeUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    master_grid_lineitem?: MasterEntityLineItemUncheckedUpdateManyWithoutField_typeNestedInput
    importTemplateLineItem?: ImportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput
    exportTemplateLineItem?: ExportTemplateLineItemUncheckedUpdateManyWithoutField_typeNestedInput
  }

  export type FieldTypeUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    field_type?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type menuTypeUpdateWithoutStatusInput = {
    name?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type menuTypeUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type menuTypeUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    name?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type EmailTemplateProcessUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_groups?: EmailTemplateProcessTagsMappingUpdateManyWithoutEmail_template_processNestedInput
    email_templates?: EmailTemplateUpdateManyWithoutEmail_template_processNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateProcessUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_processNestedInput
    email_templates?: EmailTemplateUncheckedUpdateManyWithoutEmail_template_processNestedInput
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_template_processNestedInput
  }

  export type EmailTemplateProcessUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateTagUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_groups?: EmailTemplateProcessTagsMappingUpdateManyWithoutEmail_template_tagNestedInput
  }

  export type EmailTemplateTagUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_groups?: EmailTemplateProcessTagsMappingUncheckedUpdateManyWithoutEmail_template_tagNestedInput
  }

  export type EmailTemplateTagUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateRecipientTagUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateRecipientTagUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateRecipientTagUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    query_information?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailTemplateUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    email_template_process?: EmailTemplateProcessUpdateOneRequiredWithoutEmail_templatesNestedInput
    email_template_assignments?: EmailTemplateAssignmentUpdateManyWithoutEmail_templateNestedInput
    created?: UserUpdateOneWithoutCreated_email_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_email_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_email_templatesNestedInput
  }

  export type EmailTemplateUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    email_template_assignments?: EmailTemplateAssignmentUncheckedUpdateManyWithoutEmail_templateNestedInput
  }

  export type EmailTemplateUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    subject?: StringFieldUpdateOperationsInput | string
    template_body?: StringFieldUpdateOperationsInput | string
    email_template_process_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
  }

  export type EmailProcessJobUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created?: UserUpdateOneWithoutCreated_email_process_jobsNestedInput
  }

  export type EmailProcessJobUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
  }

  export type EmailProcessJobUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    email_template_process_slug?: StringFieldUpdateOperationsInput | string
    unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    prefill_data?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
  }

  export type NotificationJobUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created?: UserUpdateOneWithoutCreated_notification_jobNestedInput
  }

  export type NotificationJobUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type NotificationJobUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    process_slug?: StringFieldUpdateOperationsInput | string
    notification_to?: NullableStringFieldUpdateOperationsInput | string | null
    notification_subject?: NullableStringFieldUpdateOperationsInput | string | null
    notification_content?: NullableStringFieldUpdateOperationsInput | string | null
    notification_cc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_bcc?: NullableStringFieldUpdateOperationsInput | string | null
    notification_type_id?: StringFieldUpdateOperationsInput | string
    notification_status_id?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    sent_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    read_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportTemplateUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created?: UserUpdateOneWithoutCreated_import_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_templatesNestedInput
    line_items?: ImportTemplateLineItemUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportTemplateLineItemUncheckedUpdateManyWithoutImport_templateNestedInput
    queries?: ImportTemplateQueriesUncheckedUpdateManyWithoutImport_templateNestedInput
  }

  export type ImportTemplateUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    ignore_error_rows?: BoolFieldUpdateOperationsInput | boolean
    is_admin_module?: BoolFieldUpdateOperationsInput | boolean
    job_type?: NullableStringFieldUpdateOperationsInput | string | null
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportTemplateLineItemUpdateWithoutStatusInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    import_template?: ImportTemplateUpdateOneRequiredWithoutLine_itemsNestedInput
    field_type?: FieldTypeUpdateOneWithoutImportTemplateLineItemNestedInput
  }

  export type ImportTemplateLineItemUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateLineItemUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    width?: NullableIntFieldUpdateOperationsInput | number | null
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    check_reg_exp?: NullableStringFieldUpdateOperationsInput | string | null
    is_nullable?: BoolFieldUpdateOperationsInput | boolean
    is_unique?: BoolFieldUpdateOperationsInput | boolean
    is_foreign?: BoolFieldUpdateOperationsInput | boolean
    unique_query?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_query?: NullableStringFieldUpdateOperationsInput | string | null
    is_enum?: BoolFieldUpdateOperationsInput | boolean
    is_multiple?: BoolFieldUpdateOperationsInput | boolean
    enum_values?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_table?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_column?: NullableStringFieldUpdateOperationsInput | string | null
    foreign_can_create?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateQueriesUpdateWithoutStatusInput = {
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    import_template?: ImportTemplateUpdateOneRequiredWithoutQueriesNestedInput
  }

  export type ImportTemplateQueriesUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportTemplateQueriesUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_template_id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    allow_multiple?: BoolFieldUpdateOperationsInput | boolean
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    before_lineitems?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created?: UserUpdateOneWithoutCreated_export_templatesNestedInput
    updated?: UserUpdateOneWithoutUpdated_export_templatesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_export_templatesNestedInput
    line_items?: ExportTemplateLineItemUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ExportTemplateLineItemUncheckedUpdateManyWithoutExport_templateNestedInput
    queries?: ExportTemplateQueriesUncheckedUpdateManyWithoutExport_templateNestedInput
  }

  export type ExportTemplateUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    slug?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    max_row_count?: IntFieldUpdateOperationsInput | number
    header_row?: IntFieldUpdateOperationsInput | number
    data_start_row?: IntFieldUpdateOperationsInput | number
    data_end_row?: IntFieldUpdateOperationsInput | number
    data_filepath?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ExportTemplateLineItemUpdateWithoutStatusInput = {
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    export_template?: ExportTemplateUpdateOneRequiredWithoutLine_itemsNestedInput
    field_type?: FieldTypeUpdateOneWithoutExportTemplateLineItemNestedInput
  }

  export type ExportTemplateLineItemUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateLineItemUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    field_name?: StringFieldUpdateOperationsInput | string
    display_name?: StringFieldUpdateOperationsInput | string
    field_table?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    default_value?: NullableStringFieldUpdateOperationsInput | string | null
    column_name?: NullableStringFieldUpdateOperationsInput | string | null
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    individual_column?: NullableStringFieldUpdateOperationsInput | string | null
    field_type_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateQueriesUpdateWithoutStatusInput = {
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    export_template?: ExportTemplateUpdateOneRequiredWithoutQueriesNestedInput
  }

  export type ExportTemplateQueriesUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ExportTemplateQueriesUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    export_template_id?: IntFieldUpdateOperationsInput | number
    query_string?: NullableStringFieldUpdateOperationsInput | string | null
    query_name?: StringFieldUpdateOperationsInput | string
    query_procedure?: StringFieldUpdateOperationsInput | string
    is_individual?: BoolFieldUpdateOperationsInput | boolean
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type DesignationUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUpdateManyWithoutDesignationNestedInput
    created?: UserUpdateOneWithoutCreated_designationsNestedInput
    updated?: UserUpdateOneWithoutUpdated_designationsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_designationsNestedInput
  }

  export type DesignationUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDesignationNestedInput
  }

  export type DesignationUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DepartmentUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUpdateManyWithoutDepartmentNestedInput
    department_head?: UserUpdateOneWithoutHead_departmentsNestedInput
    created?: UserUpdateOneWithoutCreated_departmentsNestedInput
    updated?: UserUpdateOneWithoutUpdated_departmentsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_departmentsNestedInput
  }

  export type DepartmentUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    users?: UserDetailUncheckedUpdateManyWithoutDepartmentNestedInput
  }

  export type DepartmentUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    department_head_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type AuditLogUpdateWithoutStatusInput = {
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    user?: UserUpdateOneWithoutAudit_logsNestedInput
  }

  export type AuditLogUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    user_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type AuditLogUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    operation_type?: StringFieldUpdateOperationsInput | string
    table_name?: StringFieldUpdateOperationsInput | string
    field_name?: StringFieldUpdateOperationsInput | string
    old_value?: NullableStringFieldUpdateOperationsInput | string | null
    new_value?: NullableStringFieldUpdateOperationsInput | string | null
    entity_id?: IntFieldUpdateOperationsInput | number
    user_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type FinancialYearUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    document_sequence?: DocumentSequenceUpdateManyWithoutFinanicial_yearNestedInput
    created?: UserUpdateOneWithoutCreated_fin_yearsNestedInput
    updated?: UserUpdateOneWithoutUpdated_fin_yearsNestedInput
    deleted?: UserUpdateOneWithoutDeleted_fin_yearsNestedInput
  }

  export type FinancialYearUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    document_sequence?: DocumentSequenceUncheckedUpdateManyWithoutFinanicial_yearNestedInput
  }

  export type FinancialYearUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    code?: StringFieldUpdateOperationsInput | string
    is_freezed?: BoolFieldUpdateOperationsInput | boolean
    start_date?: DateTimeFieldUpdateOperationsInput | Date | string
    end_date?: DateTimeFieldUpdateOperationsInput | Date | string
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    finanicial_year?: FinancialYearUpdateOneWithoutDocument_sequenceNestedInput
    created?: UserUpdateOneWithoutCreated_doc_sequencesNestedInput
    updated?: UserUpdateOneWithoutUpdated_doc_sequencesNestedInput
    deleted?: UserUpdateOneWithoutDeleted_doc_sequencesNestedInput
  }

  export type DocumentSequenceUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DocumentSequenceUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    module_name?: StringFieldUpdateOperationsInput | string
    financial_year_id?: NullableIntFieldUpdateOperationsInput | number | null
    current_sequence_no?: IntFieldUpdateOperationsInput | number
    start_sequence_no?: IntFieldUpdateOperationsInput | number
    end_sequence_no?: IntFieldUpdateOperationsInput | number
    sequence_length?: IntFieldUpdateOperationsInput | number
    code_format?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type FileUploadLogUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    doc_name?: NullableStringFieldUpdateOperationsInput | string | null
    org_name?: NullableStringFieldUpdateOperationsInput | string | null
    extension?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type FileUploadLogUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    doc_name?: NullableStringFieldUpdateOperationsInput | string | null
    org_name?: NullableStringFieldUpdateOperationsInput | string | null
    extension?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type FileUploadLogUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    doc_name?: NullableStringFieldUpdateOperationsInput | string | null
    org_name?: NullableStringFieldUpdateOperationsInput | string | null
    extension?: NullableStringFieldUpdateOperationsInput | string | null
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type DeviceRegistrationUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created_device_registration?: UserUpdateOneRequiredWithoutCreated_device_registrationNestedInput
    updated_device_registration?: UserUpdateOneWithoutUpdated_device_registrationNestedInput
    deleted_device_registration?: UserUpdateOneWithoutDeleted_device_registrationNestedInput
    user?: UserUpdateOneRequiredWithoutDeviceRegistrationNestedInput
  }

  export type DeviceRegistrationUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type DeviceRegistrationUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    company_id?: IntFieldUpdateOperationsInput | number
    device_name?: StringFieldUpdateOperationsInput | string
    device_unique_id?: StringFieldUpdateOperationsInput | string
    user_id?: IntFieldUpdateOperationsInput | number
    created_by?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportJobUpdateWithoutStatusInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created?: UserUpdateOneWithoutCreated_import_jobNestedInput
    updated?: UserUpdateOneWithoutUpdated_import_jobNestedInput
    deleted?: UserUpdateOneWithoutDeleted_import_jobNestedInput
    line_items?: ImportJobLineItemUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    line_items?: ImportJobLineItemUncheckedUpdateManyWithoutImport_jobNestedInput
  }

  export type ImportJobUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    sequence_number?: NullableStringFieldUpdateOperationsInput | string | null
    header_details?: NullableStringFieldUpdateOperationsInput | string | null
    table_config?: NullableStringFieldUpdateOperationsInput | string | null
    total_rows?: IntFieldUpdateOperationsInput | number
    completed_rows?: IntFieldUpdateOperationsInput | number
    error_rows?: IntFieldUpdateOperationsInput | number
    batch_process_count?: NullableIntFieldUpdateOperationsInput | number | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    last_processed_row_id?: NullableIntFieldUpdateOperationsInput | number | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ImportJobLineItemUpdateWithoutStatusInput = {
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    import_job?: ImportJobUpdateOneRequiredWithoutLine_itemsNestedInput
  }

  export type ImportJobLineItemUncheckedUpdateWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_job_id?: IntFieldUpdateOperationsInput | number
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type ImportJobLineItemUncheckedUpdateManyWithoutStatusInput = {
    id?: IntFieldUpdateOperationsInput | number
    import_job_id?: IntFieldUpdateOperationsInput | number
    row_object?: NullableStringFieldUpdateOperationsInput | string | null
    job_status?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
  }

  export type CategoriesCreateManyCategory_typeInput = {
    uuid?: string
    category_id: string
    parent_id?: string | null
    name: string
    description?: string | null
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type CategoriesUpdateWithoutCategory_typeInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    parent?: CategoriesUpdateOneWithoutSubcategoriesNestedInput
    subcategories?: CategoriesUpdateManyWithoutParentNestedInput
    created_categories?: UserUpdateOneWithoutCreated_categoriesNestedInput
    updated_categories?: UserUpdateOneWithoutUpdated_categoriesNestedInput
    deleted_categories?: UserUpdateOneWithoutDeleted_categoriesNestedInput
    configurations?: ConfigurationsUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateWithoutCategory_typeInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    subcategories?: CategoriesUncheckedUpdateManyWithoutParentNestedInput
    configurations?: ConfigurationsUncheckedUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateManyWithoutCategory_typeInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    parent_id?: NullableStringFieldUpdateOperationsInput | string | null
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type CategoriesCreateManyParentInput = {
    uuid?: string
    category_type_id: string
    category_id: string
    name: string
    description?: string | null
    company_id: number
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string
    deleted_at?: Date | string | null
  }

  export type ConfigurationsCreateManyCategoryInput = {
    uuid?: string
    order_no?: Decimal | DecimalJsLike | number | string
    config_key: string
    config_value?: string | null
    config_file_value?: string | null
    config_value_type: string
    config_field_type: string
    display_config?: boolean
    created_by?: number | null
    updated_by?: number | null
    deleted_by?: number | null
    created_at?: Date | string
    updated_at?: Date | string | null
    deleted_at?: Date | string | null
  }

  export type CategoriesUpdateWithoutParentInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    subcategories?: CategoriesUpdateManyWithoutParentNestedInput
    category_type?: CategoryTypesUpdateOneRequiredWithoutCategoriesNestedInput
    created_categories?: UserUpdateOneWithoutCreated_categoriesNestedInput
    updated_categories?: UserUpdateOneWithoutUpdated_categoriesNestedInput
    deleted_categories?: UserUpdateOneWithoutDeleted_categoriesNestedInput
    configurations?: ConfigurationsUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateWithoutParentInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    subcategories?: CategoriesUncheckedUpdateManyWithoutParentNestedInput
    configurations?: ConfigurationsUncheckedUpdateManyWithoutCategoryNestedInput
  }

  export type CategoriesUncheckedUpdateManyWithoutParentInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    category_type_id?: StringFieldUpdateOperationsInput | string
    category_id?: StringFieldUpdateOperationsInput | string
    name?: StringFieldUpdateOperationsInput | string
    description?: NullableStringFieldUpdateOperationsInput | string | null
    company_id?: IntFieldUpdateOperationsInput | number
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: DateTimeFieldUpdateOperationsInput | Date | string
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsUpdateWithoutCategoryInput = {
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    created_configurations?: UserUpdateOneWithoutCreated_configurationsNestedInput
    updated_configurations?: UserUpdateOneWithoutUpdated_configurationsNestedInput
    deleted_configurations?: UserUpdateOneWithoutDeleted_configurationsNestedInput
  }

  export type ConfigurationsUncheckedUpdateWithoutCategoryInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }

  export type ConfigurationsUncheckedUpdateManyWithoutCategoryInput = {
    id?: IntFieldUpdateOperationsInput | number
    uuid?: StringFieldUpdateOperationsInput | string
    order_no?: DecimalFieldUpdateOperationsInput | Decimal | DecimalJsLike | number | string
    config_key?: StringFieldUpdateOperationsInput | string
    config_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_file_value?: NullableStringFieldUpdateOperationsInput | string | null
    config_value_type?: StringFieldUpdateOperationsInput | string
    config_field_type?: StringFieldUpdateOperationsInput | string
    display_config?: BoolFieldUpdateOperationsInput | boolean
    created_by?: NullableIntFieldUpdateOperationsInput | number | null
    updated_by?: NullableIntFieldUpdateOperationsInput | number | null
    deleted_by?: NullableIntFieldUpdateOperationsInput | number | null
    created_at?: DateTimeFieldUpdateOperationsInput | Date | string
    updated_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
    deleted_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  }



  /**
   * Aliases for legacy arg types
   */
    /**
     * @deprecated Use UserCountOutputTypeDefaultArgs instead
     */
    export type UserCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use DesignationCountOutputTypeDefaultArgs instead
     */
    export type DesignationCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = DesignationCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use DepartmentCountOutputTypeDefaultArgs instead
     */
    export type DepartmentCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = DepartmentCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use FinancialYearCountOutputTypeDefaultArgs instead
     */
    export type FinancialYearCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = FinancialYearCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use PermissionsCountOutputTypeDefaultArgs instead
     */
    export type PermissionsCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PermissionsCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use RoleCountOutputTypeDefaultArgs instead
     */
    export type RoleCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RoleCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use LanguageCountOutputTypeDefaultArgs instead
     */
    export type LanguageCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = LanguageCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use MenusCountOutputTypeDefaultArgs instead
     */
    export type MenusCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MenusCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use MenuItemsCountOutputTypeDefaultArgs instead
     */
    export type MenuItemsCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MenuItemsCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use MasterEntityCountOutputTypeDefaultArgs instead
     */
    export type MasterEntityCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MasterEntityCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use FieldTypeCountOutputTypeDefaultArgs instead
     */
    export type FieldTypeCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = FieldTypeCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailTemplateProcessCountOutputTypeDefaultArgs instead
     */
    export type EmailTemplateProcessCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailTemplateProcessCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailTemplateTagCountOutputTypeDefaultArgs instead
     */
    export type EmailTemplateTagCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailTemplateTagCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailTemplateCountOutputTypeDefaultArgs instead
     */
    export type EmailTemplateCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailTemplateCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ImportTemplateCountOutputTypeDefaultArgs instead
     */
    export type ImportTemplateCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ImportTemplateCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ImportJobCountOutputTypeDefaultArgs instead
     */
    export type ImportJobCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ImportJobCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ExportTemplateCountOutputTypeDefaultArgs instead
     */
    export type ExportTemplateCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ExportTemplateCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use StatusCountOutputTypeDefaultArgs instead
     */
    export type StatusCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = StatusCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use CategoryTypesCountOutputTypeDefaultArgs instead
     */
    export type CategoryTypesCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CategoryTypesCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use CategoriesCountOutputTypeDefaultArgs instead
     */
    export type CategoriesCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CategoriesCountOutputTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use UserDefaultArgs instead
     */
    export type UserArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserDefaultArgs<ExtArgs>
    /**
     * @deprecated Use UserDetailDefaultArgs instead
     */
    export type UserDetailArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserDetailDefaultArgs<ExtArgs>
    /**
     * @deprecated Use DesignationDefaultArgs instead
     */
    export type DesignationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = DesignationDefaultArgs<ExtArgs>
    /**
     * @deprecated Use DepartmentDefaultArgs instead
     */
    export type DepartmentArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = DepartmentDefaultArgs<ExtArgs>
    /**
     * @deprecated Use RequestLogDefaultArgs instead
     */
    export type RequestLogArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RequestLogDefaultArgs<ExtArgs>
    /**
     * @deprecated Use FinancialYearDefaultArgs instead
     */
    export type FinancialYearArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = FinancialYearDefaultArgs<ExtArgs>
    /**
     * @deprecated Use DocumentSequenceDefaultArgs instead
     */
    export type DocumentSequenceArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = DocumentSequenceDefaultArgs<ExtArgs>
    /**
     * @deprecated Use AuditLogDefaultArgs instead
     */
    export type AuditLogArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = AuditLogDefaultArgs<ExtArgs>
    /**
     * @deprecated Use PermissionsDefaultArgs instead
     */
    export type PermissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = PermissionsDefaultArgs<ExtArgs>
    /**
     * @deprecated Use RoleDefaultArgs instead
     */
    export type RoleArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RoleDefaultArgs<ExtArgs>
    /**
     * @deprecated Use RolePermissionsDefaultArgs instead
     */
    export type RolePermissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = RolePermissionsDefaultArgs<ExtArgs>
    /**
     * @deprecated Use UserRolesDefaultArgs instead
     */
    export type UserRolesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserRolesDefaultArgs<ExtArgs>
    /**
     * @deprecated Use UserPermissionsDefaultArgs instead
     */
    export type UserPermissionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = UserPermissionsDefaultArgs<ExtArgs>
    /**
     * @deprecated Use OtpDefaultArgs instead
     */
    export type OtpArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = OtpDefaultArgs<ExtArgs>
    /**
     * @deprecated Use LanguageDefaultArgs instead
     */
    export type LanguageArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = LanguageDefaultArgs<ExtArgs>
    /**
     * @deprecated Use LanguageContentDefaultArgs instead
     */
    export type LanguageContentArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = LanguageContentDefaultArgs<ExtArgs>
    /**
     * @deprecated Use MenusDefaultArgs instead
     */
    export type MenusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MenusDefaultArgs<ExtArgs>
    /**
     * @deprecated Use MenuItemsDefaultArgs instead
     */
    export type MenuItemsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MenuItemsDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ActionTypeDefaultArgs instead
     */
    export type ActionTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ActionTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EntityTypeDefaultArgs instead
     */
    export type EntityTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EntityTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use WizardGroupDefaultArgs instead
     */
    export type WizardGroupArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = WizardGroupDefaultArgs<ExtArgs>
    /**
     * @deprecated Use WizardTypeDefaultArgs instead
     */
    export type WizardTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = WizardTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use MasterEntityDefaultArgs instead
     */
    export type MasterEntityArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MasterEntityDefaultArgs<ExtArgs>
    /**
     * @deprecated Use MasterEntityLineItemDefaultArgs instead
     */
    export type MasterEntityLineItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = MasterEntityLineItemDefaultArgs<ExtArgs>
    /**
     * @deprecated Use FieldTypeDefaultArgs instead
     */
    export type FieldTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = FieldTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use menuTypeDefaultArgs instead
     */
    export type menuTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = menuTypeDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailTemplateProcessDefaultArgs instead
     */
    export type EmailTemplateProcessArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailTemplateProcessDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailTemplateTagDefaultArgs instead
     */
    export type EmailTemplateTagArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailTemplateTagDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailTemplateRecipientTagDefaultArgs instead
     */
    export type EmailTemplateRecipientTagArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailTemplateRecipientTagDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailTemplateProcessTagsMappingDefaultArgs instead
     */
    export type EmailTemplateProcessTagsMappingArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailTemplateProcessTagsMappingDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailTemplateDefaultArgs instead
     */
    export type EmailTemplateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailTemplateDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailTemplateAssignmentDefaultArgs instead
     */
    export type EmailTemplateAssignmentArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailTemplateAssignmentDefaultArgs<ExtArgs>
    /**
     * @deprecated Use EmailProcessJobDefaultArgs instead
     */
    export type EmailProcessJobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = EmailProcessJobDefaultArgs<ExtArgs>
    /**
     * @deprecated Use NotificationJobDefaultArgs instead
     */
    export type NotificationJobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = NotificationJobDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ImportTemplateDefaultArgs instead
     */
    export type ImportTemplateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ImportTemplateDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ImportTemplateLineItemDefaultArgs instead
     */
    export type ImportTemplateLineItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ImportTemplateLineItemDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ImportTemplateQueriesDefaultArgs instead
     */
    export type ImportTemplateQueriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ImportTemplateQueriesDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ImportJobDefaultArgs instead
     */
    export type ImportJobArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ImportJobDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ImportJobLineItemDefaultArgs instead
     */
    export type ImportJobLineItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ImportJobLineItemDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ExportTemplateDefaultArgs instead
     */
    export type ExportTemplateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ExportTemplateDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ExportTemplateLineItemDefaultArgs instead
     */
    export type ExportTemplateLineItemArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ExportTemplateLineItemDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ExportTemplateQueriesDefaultArgs instead
     */
    export type ExportTemplateQueriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ExportTemplateQueriesDefaultArgs<ExtArgs>
    /**
     * @deprecated Use StatusDefaultArgs instead
     */
    export type StatusArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = StatusDefaultArgs<ExtArgs>
    /**
     * @deprecated Use CategoryTypesDefaultArgs instead
     */
    export type CategoryTypesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CategoryTypesDefaultArgs<ExtArgs>
    /**
     * @deprecated Use CategoriesDefaultArgs instead
     */
    export type CategoriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = CategoriesDefaultArgs<ExtArgs>
    /**
     * @deprecated Use ConfigurationsDefaultArgs instead
     */
    export type ConfigurationsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ConfigurationsDefaultArgs<ExtArgs>
    /**
     * @deprecated Use FileUploadLogDefaultArgs instead
     */
    export type FileUploadLogArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = FileUploadLogDefaultArgs<ExtArgs>
    /**
     * @deprecated Use DataTransferQueriesDefaultArgs instead
     */
    export type DataTransferQueriesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = DataTransferQueriesDefaultArgs<ExtArgs>
    /**
     * @deprecated Use DeviceRegistrationDefaultArgs instead
     */
    export type DeviceRegistrationArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = DeviceRegistrationDefaultArgs<ExtArgs>

  /**
   * Batch Payload for updateMany & deleteMany & createMany
   */

  export type BatchPayload = {
    count: number
  }

  /**
   * DMMF
   */
  export const dmmf: runtime.BaseDMMF
}